View the CPU count, memory size, and system Count of Unix/Linux

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.