How to view the physical memory size of AIX

How do you know the memory size of Aix operating system? Let me introduce the method of viewing physical memory under AIX operating system. I hope it will be helpful to you!

The memory utilization of Aix cannot be observed through general Topas and vmstat.

Because IBM's memory management is very special, first understand the memory division, and pay special attention to the management mode of file memory.

It can be calculated through the data displayed by svmon.

Vmstat - V can output a status of memory. The num perf, Num client, free page and other related data can give an overview of the current memory of Aix.

Netstat - V, which is similar to vmstat - V, can output the status of the network card. When checking whether there is a problem with the quality of the network connection, you can refer to the relevant output data.

Other useful are iostat, lvmstat, etc. you can refer to the AIX Command Reference Daquan for corresponding help.

If the system is AIX 5L

  #prtconf | more

  #lsconf

  #sar -u 1 10

There are many commands in the system to check the number of CPUs, but which command outputs the number of logical CPUs and which is the number of physical CPUs? Let me make a brief introduction. answer:

From AIX 5 Since 3, for power5 machines, the system has introduced the function of SMT (simultaneous multi threading), which allows two processing threads to run on the same processor. For the operating system, a physical processor will logically become two processing units (logical processors). That is, when the SMT function is enabled, the number of logical CPUs is twice the number of physical CPUs, while when the SMT function is disabled, the number of logical CPUs is equal to the number of physical CPUs.

  smtctl

  # smtctl

  This system is SMT capable.

  SMT is currently enabled.

  SMT boot mode is not set.

  SMT threads are bound to the same physical processor.

  proc0 has 2 SMT threads.

  Bind processor 0 is bound with proc0

  Bind processor 1 is bound with proc0

  proc2 has 2 SMT threads.

  Bind processor 2 is bound with proc2

  Bind processor 3 is bound with proc2

  proc4 has 2 SMT threads.

  Bind processor 4 is bound with proc4

  Bind processor 5 is bound with proc4

  proc6 has 2 SMT threads.

  Bind processor 6 is bound with proc6

  Bind processor 7 is bound with proc6

It can be seen that the system has SMT capability and the current SMT function has been enabled. Four physical CPUs correspond to eight logical CPUs.

  bindprocessor

  # bindprocessor -q

  The available processors are: 0 1 2 3 4 5 6 7

You can see that the number of available logical CPUs is 8 (0-7).

  prtconf

  # prtconf

  System Model: IBM,9131-52A

  Machine Serial Number: 0677A5G

  Processor Type: PowerPC_ POWER5

Number of processors: 4 = = "there are 4 physical CPUs

  Processor Clock Speed: 1648 MHz

  CPU Type: 64-bit

  Kernel Type: 64-bit

  LPAR Info: 1 06-77A5G

  lsdev

  # lsdev -Cc processor

  proc0 Available 00-00 Processor

  proc2 Available 00-02 Processor

  proc4 Available 00-04 Processor

  proc6 Available 00-06 Processor

You can see that there are four physical CPUs in the system.

  vmstat

  # vmstat

  System configuration: lcpu=8 mem=7936MB

  kthr memory page faults cpu

  ----- ----------- ------------------------ ------------ -----------

  r b avm fre re pi po fr sr cy in sy cs us sy id wa

  1 1 428238 41599 0 0 0 13 25 0 40 1639 182 0 0 99

You can see that there are eight logical CPUs in the system.

View physical memory size

Use the command # lsdev - CC memory

View the configured physical memory device, and the following is an example of its output:

  mem0 Available 00-00 Memory

  L2cache0 Available 00-00 L2 Cache

Then use the command # Lsattr - El mem0

The output is as follows

  size 512 Total amount of physical memory in Mbytes False

  goodsize 512 Amount of usable physical memory in Mbytes False

This example shows that the physical memory of the machine is 512MB. If there is a device name MEM1 in the previous lsdev output, use the same command to check its corresponding size and so on.