AIX and Linux view CPU and memory parameters

Source: Internet
Author: User

AIX Operating system
the hardware information for AIX can be seen through the prtconf command.
1. View the number of logical CPUs
#pmcycles-M
CPU 0 runs at 4204 MHz
CPU 1 runs at 4204 MHz
CPU 2 runs at 4204 MHz
CPU 3 runs at 4204 MHz
CPU 4 runs at 4204 MHz
CPU 5 runs at 4204 MHz
CPU 6 runs at 4204 MHz
CPU 7 runs at 4204 MHz
It is described above with 8 cpu,cpu with a frequency of 4.2G Hz

2. View the number of physical CPUs
#prtconf |grep Processors
Number of processors:4

3. Determine if the CPU is a few cores
dividing the logical CPU by the physical CPU is the number of cores.

4. View the details of a single CPU
#lsattr-e-L PROC0
frequency 4204000000 Processor speed False
smt_enabled true Processor SMT enabled False
smt_threads 2 Processor SMT Threads False
State enable Processor State False
type Powerpc_power6 Processor type False

Linux Operating system
Linux CPU information is all in/proc/cpuinfo this file, can be opened directly to see.

1. View the number of physical CPUs
#cat/proc/cpuinfo |grep "Physical id" |sort |uniq|wc-l
**uniq Command: delete duplicate rows; wc–l command: Count rows * *


2. View the number of logical CPUs
#cat/proc/cpuinfo |grep "Processor" |wc-l

3. View CPU is a few cores
#cat/proc/cpuinfo |grep "Cores" |uniq

4. Check the CPU frequency
#cat/proc/cpuinfo |grep mhz|uniq

5 View CPU Models

# Cat/proc/cpuinfo | grep ' model name ' |uniq
Model Name:intel (R) Xeon (r) CPU E5630 @ 2.53GHz

Summary: The server has 2 4-core CPUs, Model Intel (R) Xeon (r) CPU E5630 @ 2.53GHz



View Memory command under AIX

keywords: Aix memory command
1.
# LSDEV-CC Memory
to view the configured physical memory device, here is an example of its output:
l2cache0 Available L2 Cache
mem0 Available Memory
# Lsattr-el Mem0
the output resembles the following:
goodsize 7936 Amount of usable physical memory in Mbytes False
size 7936 Total amount of physical memory in Mbytes False
This example shows that the physical memory of the machine is 5888MB. If the previous Lsdev output has a device name of MEM1, use the same command to see its corresponding size and so on.
2.
# Bootinfo-r
8126464
This example shows that the physical memory of the machine is 8126464kB.

3.
# prtconf
the output looks similar to the following:
---- 
---- 
Memory size:7936 MB
---- 
---- 
This command will print detailed configuration information for the current host, with the memory Size property in the output indicating its current physical memory size

4.
# svmon-g
the output looks similar to the following:
size InUse free pin virtual
memory 2031616 1474504 557112 210251 440972
pg Space 131072 1555
Work Pers CLNT
pin 210251 0 0
In use 440972 0 1033532
PageSize poolsize inuse pgsp pin virtual
s 4 KB-1426984 1555 187531 393452
m KB-2970 0 1420 2970
Where: size represents the actual physical memory, in 4k. So the current physical memory size is 4K*2031616=8126464KB


View memory commands under Linux

2 Viewing memory

2.1 View Total Memory

#cat/proc/meminfo | grep memtotal
memtotal:32941268 KB//Memory 32G






AIX and Linux view CPU and memory parameters

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.