Re: sysctlbyname( "hw.availcpu" ) fails
Re: sysctlbyname( "hw.availcpu" ) fails
- Subject: Re: sysctlbyname( "hw.availcpu" ) fails
- From: Terry Lambert <email@hidden>
- Date: Fri, 6 Jul 2007 13:12:48 -0700
On Jul 6, 2007, at 4:35 AM, Daniel Vollmer wrote:
On 29.06.2007, at 19:27, Eric Schlegel wrote:
On Jun 29, 2007, at 1:33 AM, Steve Checkoway wrote:
That's more time than I'd care to take on start up. I appreciate
the suggestions though. I've been using Gestalt and figured I
should maybe move to some newer interface.
Is Gestalt failing to give you the info you need in some way?
Note that I'm not the original poster, but yes there is. :)
MenuMeters (which displays your CPU type as well as the number of
processors — so only cosmetic in a sense) for example is terribly
incorrect on Intel Macs. NXGetLocalArchInfo() always returns "Intel
80486" and Gestalt gives "i586" (Pentium) for every CPU type.
I've fixed a version of MenuMeters for my personal use to use
"system_profiler" for now, as I have not found a programmatic way to
obtain the information (number of physical processors, not core
count (as "2 x Intel Core 2 Duo" is incorrect!) as well as the cpuid
string).
Please file a bug against NXGetLocalArchInfo() and another one against
Gestalt.
In general, we class our CPUs by their capability bits, not their
CPUID information, and anyone not using capability bits is going to be
unhappy.
-- Terry _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden