Find out how many actual processors are on your server

By: Saurabh Garg

October 18, 2006 12:00 am






To find out the number of actual (physical) processors present on your server.


Normally while specifying the server configuration, the number of processors is specified. But when it is stated that a server is two processor or four processor etc we don’t know the actual physical processors present. It might be the case that the server is enabled with hyper threading so that a server having two physical processors emulates four processor behavior.

To resolve this confusion, we can use the CPU information file of a system to determine if hyper threading is enabled or not.

To find out if hyper-threading is enabled on the processor:

cat /proc/cpuinfo 

check out the flags field.

wp          : yes

flags       : mmx fxsr sse sse2 ss ht tm pbe cid

bogomips    : 199.16

If hyper threading is enabled, it will show flag set to ‘ht’ otherwise it will display it as ‘noht’.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized

Disclaimer: As with everything else in the SUSE Blog, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.