From: http://hi.baidu.com/rocsky/item/9376ef4d002397ea1e19bcd8
I. Aix
1. view the number of CPUs:
(1) Since aix5.3, smtctl introduces the SMT (simultaneousmulti-threading) function for power5 machines. It allows two processing threads to run on the same processor, for an operating system, a physical processor logically becomes two processing units (logical processor ). SMT function enabled: the number of logical CPUs is twice the number of physical CPUs. SMT function disabled: the number of logical CPUs is equal to the number of physical CPUs.
(2) bindprocessor-Q to view the number of logical CPUs
(3) Run vmstat to view the number of logical CPUs
(4) view the number of physical CPUs in prtconf
(5) lsdev-CC processor to view the number of physical CPUs
(6) lscfg | grep proc lsattr-El proc0 lscfg | grep mem lsattr-El mem0
2. View mem size
(1) lsdev-c | grep mem
(2) lsattr-El mem0 lsattr-e-l sys0-A realmem
3. View virtual memory
LSPs-
4. View System digits
Hardware: bootinfo-y
Operating System: bootinfo-K
2. HP-UNIX
1. view the number of CPUs
(1) echo runningprocs/d | ADB-k/STAND/vmunix/dev/MEM
(2) SAR-M 1 1 | awk 'end {print NR-5 }'
(3) ioscan-fnk | grep processor | WC-l
(4) machinfo
(5) lscfg | grep proc lsattr-El proc0 lscfg | grep mem lsattr-El mem0
(6) psrinfo-v | grep "Status of processor" | WC-l
(7) ioscan-fncprocessor
2. view memory
(1) dmesg | grep-I physical
(2) SAM
(3) Non-root users can use: CAT/var/adm/syslog. log | grep physical
3. View System digits
Print_manifest
Iii. Linux
1. view the number of CPUs
(1) CAT/proc/cpuinfo processor COUNT = number of logical CPUs; number of unique physical IDs = number of physical CPUs
2. view memory
(1) CAT/proc/meminfo
(2) free
(3) Top
3. View System digits
Getconf long_bit