Re: cpu frequencies
Re: cpu frequencies
- Subject: Re: cpu frequencies
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 20 Jun 2008 10:36:25 +0200
Le 20 juin 08 à 09:56, Jean-luc Chasseriau a écrit :
Hi!
I'm please to be a new member of darwin-dev so here is the first
question :)
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?
Currently I'm using the asm instruction "rdtsc" (which retrieve the
number of tick elapsed since the cpu started) then using a timer to
calculate the frequency.
This is working fine, but this is not reliable for multi-cpu/core
architecture.
Do you have an idea of how to solve this problem?
Thanks to all!
jeanluc
Have a look at sysctl. This function can tell you a lot about your OS
and your machine.
man 3 sysctl.
You can also type "sysctl -a" in your terminal to get a preview of
which info you can retreive using this function.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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