Re: how many processors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Canfield escribió:
   Ray Van Dolson wrote:

 "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

   True. Curiosity got the best of me when I ran your "type 4" method and 2
   returned when I knew I only had one CPU installed...after looking at the
   output, you are right, it's clear the second processor is not installed.

   ...I'm surprised no one has mentioned the "open the case" option :)

   -Jim


Another possibility could be:

#more /proc/cpuinfo
and look the "physical id" feature.

By this way with two processors hyper threading, you'll see:
	4 processors: two with "physical id"=0 plus two with "physical id"=3

So you could assume that there are 2 real processors.

Thanks
Emilio C.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux