Re: cpu frequencies
Re: cpu frequencies
- Subject: Re: cpu frequencies
- From: Ryan McGann <email@hidden>
- Date: Fri, 20 Jun 2008 17:56:51 -0700
I would like to retrieve the current cpu frequency of each cpu/core
installed (this frequency can change depending on the use -thanks to
the
intel speedstep technology-).
Does anyone know which system call should be use to do so?
I believe everybody so far has misread your question. As I read it,
you want to know the CPU frequency of EACH core, and as you rightly
state, individual cores can be throttled and/or shut down on newer
Intels. sysctl only gives you information for *A* core, not all cores.
Whether or not Mac OS X takes advantage of this feature of SpeedStep,
I am not sure.
I believe you might have to step into the Mach interfaces for host
info; start researching <mach/host_info.h>. I've used host_info only
sparingly, so I'll let somebody iwth more experience tell you if you
those interfaces can give you the information you need and how to use
them.
Also, somebody from Apple will (rightly) discourage you, as these
interfaces are "SPI" and not API--as I like to say "somewhat private
interfaces" that might change in the future.
Ryan
email@hidden
_______________________________________________
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