how many processors

Ray Van Dolson rvandolson at esri.com
Wed May 9 18:38:38 UTC 2007


On Wed, May 09, 2007 at 01:35:46PM -0500, Jim Canfield wrote:
> I think this is a pretty reliable way:
> >  # /usr/sbin/dmidecode | grep -i "type 4" | wc -l
> >
> >Ray
> >
> >  
> 
> "type 4" will count available slots regardless of the CPU existing.  How 
> about this one...
> 
> # grep physical /proc/cpuinfo
> 
> You should have unique ids for each physical CPU.  I don't have a dual 
> core at my disposal but it works for hyper threading.
> 
> -Jim

Interesting.  If you actually look through the information from the
type 4 second, I'm guessing it would be clear to the eye that there is
or isn't a processor installed though, correct?

Sounds like your way is the easiest though.

Ray




More information about the redhat-list mailing list