• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cpu frequencies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >cpu frequencies (From: "Jean-luc Chasseriau" <email@hidden>)

  • Prev by Date: Re: cpu frequencies
  • Next by Date: Re: cpu frequencies
  • Previous by thread: Re: cpu frequencies
  • Next by thread: Re: cpu frequencies
  • Index(es):
    • Date
    • Thread