• 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
Detecting CPU Speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting CPU Speed


  • Subject: Detecting CPU Speed
  • From: Gary Pederson <email@hidden>
  • Date: Sat, 24 Mar 2007 19:55:25 -0500

I've been detecting CPU speed in my InstallationCheck scripts using `sysctl -n hw.cpufrequency` and `sysctl -n hw.cpufrequency_max`

These are returning the correct values on most machines, but the wrong values on other machines (at least 867MHz G4 PowerBooks in 10.3.9) -- So some of our customers get a confusing message about their CPU being too slow.

On those systems, sysctl returns
	hw.cpufrequency: 533333332
	hw.cpufrequency_min: 533333332
	hw.cpufrequency_max: 533333332
When it should report
	hw.cpufrequency: 867000000
	hw.cpufrequency_min: 533333332
	hw.cpufrequency_max: 867000000

Is there a way to accurately detect the maximum cpu speed on all OS X Macs? Or at least on the ones I need to support (G4, G5, x86 -- 10.3.9 and later)?

Thanks,
Gary Pederson


_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Detecting CPU Speed
      • From: Luke Bellandi <email@hidden>
  • Prev by Date: Re: Fixing file permissions pre-build
  • Next by Date: Installer project directory clarifications
  • Previous by thread: Re: Fixing file permissions pre-build
  • Next by thread: Re: Detecting CPU Speed
  • Index(es):
    • Date
    • Thread