Friday, November 22, 2024

macos – Getting variety of efficiency cores and effectivity cores of MacBook Professional in Terminal

The next command reveals the variety of efficiency cores and effectivity cores and the CPU sort:

sysctl -a|egrep 'brand_string|(perflevel.*(physicalcpu:|title))'

On my MacBook Professional M1 this provides the next output:

hw.perflevel0.physicalcpu: 8
hw.perflevel0.title: Efficiency
hw.perflevel1.physicalcpu: 2
hw.perflevel1.title: Effectivity
machdep.cpu.brand_string: Apple M1 Professional

You can even enter this shorter command to get the caches sizes as nicely:

sysctl -a|grep perfl

On my MacBook Professional M1 this produces:

hw.perflevel0.physicalcpu: 8
hw.perflevel0.physicalcpu_max: 8
hw.perflevel0.logicalcpu: 8
hw.perflevel0.logicalcpu_max: 8
hw.perflevel0.l1icachesize: 196608 
hw.perflevel0.l1dcachesize: 131072
hw.perflevel0.l2cachesize: 12582912
hw.perflevel0.cpusperl2: 4
hw.perflevel0.title: Efficiency
hw.perflevel1.physicalcpu: 2
hw.perflevel1.physicalcpu_max: 2
hw.perflevel1.logicalcpu: 2
hw.perflevel1.logicalcpu_max: 2
hw.perflevel1.l1icachesize: 131072
hw.perflevel1.l1dcachesize: 65536
hw.perflevel1.l2cachesize: 4194304
hw.perflevel1.cpusperl2: 2
hw.perflevel1.title: Effectivity
hw.nperflevels: 2

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles