Link to home
Create AccountLog in
Avatar of nobleit
nobleit

asked on

physical cpu

Is there any way to calculate the amount of physical CPUs a Unix Box possesses or LINUX and
Solaris..
Avatar of Abhishek_Chib
Abhishek_Chib
Flag of India image

Hi,

Use the following commands :

[abhishekc@abhishekc ~]$ cat /proc/cpuinfo | grep processor ( For number of Virtual processor )
processor      : 0
processor      : 1

[abhishekc@abhishekc ~]$ cat /proc/cpuinfo | grep "physical id" ( For number of Physical CPU )
physical id      : 0
physical id      : 0

Note : 0 means 1 Physical CPU and so on.
ASKER CERTIFIED SOLUTION
Avatar of Abhishek_Chib
Abhishek_Chib
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Joseph Gan
In Solaris:
# psrinfo -p
Solaris 9 added the -p option to psrinfo to distinguish between physical processors and cores. UltraSPARC IV and IV+ CPU's have two cores per processor - psrinfo and psrinfo -v will display each core as a processor, possibly leading to confusion. psrinfo -vp will help clear this up.