Tuesday, March 1, 2011

OSX Processor Details From The CLI

Being the geek that I am, I wanted to know how to see the processor details from the command line of Apple's OSX operating system.  The easiest way to report this is by running the sysctl command returning the properties of interest.  In my case, I want to see the processor type, speed, core count and thread count.






Here is the output from a 2008 MacBook Pro (MacBookPro4,1):

$ sysctl machdep.cpu.brand_string machdep.cpu.core_count  machdep.cpu.thread_count
machdep.cpu.brand_string: Intel(R) Core(TM)2 Duo CPU     T8300  @ 2.40GHz
machdep.cpu.core_count: 2
machdep.cpu.thread_count: 2

Here is the output from a 2011 MacBook Pro (MacBookPro8,2):
$ sysctl machdep.cpu.brand_string machdep.cpu.core_count  machdep.cpu.thread_count
machdep.cpu.brand_string: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz
machdep.cpu.core_count: 4
machdep.cpu.thread_count: 8

Way cool!

Have a very blessed day!


Brad
If this information has helped you, please consider helping me through investing in your health and in the health of those you love through purchasing Mannatech wellness products. Ambrotose is the key ingredient of all Mannatech Wellness products.  Place your order at my Mannatech Web Store today.

0 comments: