On Tue, 9 Jan 2007, Darren J Moffat wrote:
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.
does anyone know of any resources that explains about how these T1 cpu's
operate in everyday use. I think many people may not fully understand how
the threading can be an advantage or how to make better use of it.
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org