Re: Detecting CPU Speed
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=X7yJgSlUD/czBBhZPNgDRSrb7r0sjGFLc2rJflCk/RH6PdyP0i/0wSf+OtFOPxe8+MRzI3FRBpDv1xDJatP/ksuptKHWaeLCy/cPhbZY8kwMQzJ3PTO6F6IPdS38BdRbUVplfaKLE8+SBDSecmAnIW/9qHFPgHSz2TOXgDceD+k= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=FOtGQZ3/FSYHTTicVCva5c7azp9mH1OHUfDYE+QHA7F54foKJqj9UUmJGQGoHMa1tFaWEmkNL5NqEG/JDAap41ze1wRdgei9gV+M7nr/WHLCUm346epCMEGLqt/ZRxMINX6zRmZtSCP7fq3eXeTXrjnW0aNuNGsqH0HKGd1qToc= The incorrect values are from /usr/sbin/sysctl. On Mar 26, 2007, at 11:52 AM, Luke Bellandi wrote: Gary, On Mar 24, 2007, at 5:55 PM, Gary Pederson wrote: 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 - Luke Thanks, Gary Pederson _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/luke%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... In an earlier email, Daniel Soderberg suggested using the following command: system_profiler SPHardwareDataType | grep Speed I haven't gotten back to those systems to see if it works, but I'll post the results within a few days. 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. Are these values returned from your Javascript functions in your distribution, or are they the values returned from /usr/sbin/sysctl? If they're coming from your Javascript, check what /usr/sbin/sysctl is returning for that property and let us know if that's correct. 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)? This email sent to luke@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Gary Pederson