Monday, December 31, 2012

CPU Details


Physical CPU Count
cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l

CPU Cores Count
cat /proc/cpuinfo | grep "cpu cores" | uniq

(1 means Single Core, 2 means Dual Core 4 means Quad core).

Virtual Processors Count
cat /proc/cpuinfo | grep "^processor" | wc -l

Hyper Threading

If
Virtual Processors Count is more than (Physical CPU Count*CPU Cores Count), Then the processor is Hyper threaded.

No comments:

Post a Comment