dimanche 17 février 2008

Know CPU frequency On Mac OS X (tiger/leopard)

Hi !
Today a little tips about Mac OS X.

to know cpu frequency on Mac OS X you have to use sysctl. (it's like /proc on linux).

sysctl -a | grep cpu


return for my PowerPC G4 1.5Ghz

hw.ncpu = 1
hw.cpufrequency = 1499999994
hw.availcpu = 1
hw.ncpu: 1
hw.activecpu: 1
hw.cpufrequency_max: 1499999994
hw.cpufrequency_min: 1499999994
hw.cpufrequency: 1499999994
hw.cpufamily: 2009171118
hw.cpu64bit_capable: 0
hw.cpusubtype: 11
hw.cputype: 18
hw.logicalcpu_max: 1
hw.logicalcpu: 1
hw.physicalcpu_max: 1
hw.physicalcpu: 1


frequency is given in Herz you have to div it by 1000000000 (1Billion)

Cédric :: sonique

Aucun commentaire:

Enregistrer un commentaire