Hi,
Is there a command that I can use to see the number of CPU's in the system?
Thanks
How can I see the number of CPU's in Linux
-
- Posts: 8
- Joined: Sun Aug 31, 2008 12:16 am
Re: How can I see the number of CPU's in Linux
You can see the cpu info in /proc/cpuinfo
Note: Processors with 2 cores(Or more) can be shown twice (Or more)
On Solaris you can do:
Or you can do the following:
Shows the number of physical processors
Shows the number of virtual processors (Number of cores x Number of threads)
Code: Select all
less /proc/cpuinfo
On Solaris you can do:
Code: Select all
uname -X
Code: Select all
psrinfo -p
Code: Select all
psrinfo -pv
Re: How can I see the number of CPU's in Linux
You can also use
But you might need to install it first
on debian/ubuntu
Code: Select all
x86info a
on debian/ubuntu
Code: Select all
apt-get install x86info