/usr/sbin/psrinfo -p gives the no. of physical processors
$ /usr/sbin/psrinfo -p
8
$ /usr/sbin/psrinfo -pv
The UltraSPARC-IV physical processor has 2 virtual processors (8, 520)
The UltraSPARC-IV physical processor has 2 virtual processors (9, 521)
The UltraSPARC-IV physical processor has 2 virtual processors (10, 522)
The UltraSPARC-IV physical processor has 2 virtual processors (11, 523)
The UltraSPARC-IV physical processor has 2 virtual processors (16, 528)
The UltraSPARC-IV physical processor has 2 virtual processors (17, 529)
The UltraSPARC-IV physical processor has 2 virtual processors (18, 530)
The UltraSPARC-IV physical processor has 2 virtual processors (19, 531)
/usr/sbin/psrinfo gives the no. of cores
$ /usr/sbin/psrinfo |wc -l
16
uname -X also gives similar information
$ uname -X
System = SunOS
Node = exampleserver
Release = 5.8
KernelID = Generic_117350-35
Machine = sun4u
BusType =
Serial =
Users =
OEM# = 0
Origin# = 1
NumCPU = 16
In Linux the same information can be obtained by grepping /proc/cpuinfo:
grep -c processor /proc/cpuinfo
[root@rel12 ~]# grep -c processor /proc/cpuinfo
2
No comments:
Post a Comment