Nikolay Piskun wrote:
I am trying to implement in C++ something like what I get from:
kstat -m cpu_info | grep core_id
That isn't what I was asking.
Once you know the number of cores vs threads vs sockets etc what are you
planning on doing with the information in your application ?
I very very very strongly advise against any application code making
scheduling or optimisation or scaling decisions based on this
information. I guarantee even if you get it correct now the next
processor will change things for you (no that isn't a prediction on
Sun's next hardware being different just a fact that for applications
this just isn't meaningful information).
One type of application where I think it is okay to know this
information is one giving information about the platform - for example a
management agent for SNMP or something like that.
--
Darren J Moffat
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org