Re: how many processors

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

 



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

--
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