nobleit
asked on
physical cpu
Is there any way to calculate the amount of physical CPUs a Unix Box possesses or LINUX and
Solaris..
Solaris..
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
In Solaris:
# psrinfo -p
# 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.
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.