Memory lsattr-El mem0
CPU lsdev-c | grep proc
CPU information lsattr-El proc0
# Bootinfo-R
View physical memory
Run # lsdev-CC memory
View the configured physical memory device. The following is an example of its output:
Mem0 available 00-00 memory
L2cache0 available 00-00 L2 cache
Use the command # lsattr-El mem0
Output:
Size 512 total amount of physical memory in Mbytes false
Goodsize 512 amount of usable physical memory in Mbytes false
In this example, the physical memory of the machine is 512 MB. If there is mem1 in the output of lsdev, run the same command to view the corresponding size and push it accordingly.
Add another method.
Svmon-G
[Email protected]/etc> svmon-G
Size inuse free pin virtual
Memory 4194304 1088794 3105510 274650 690272
PG space 2097152 3775
Work pers clnt lpage
Pin 274650 0 0 0
In use 690290 257951 140553 0
[Email protected]/etc>
Where: size indicates the actual physical memory size, in the unit of 4 K
Prtconf can also view all information about the system, such as CPU memory hard disk, and try to use prfconf | grep mem
Topas and nmon can be used.
However, in Aix, how do I view memory usage?
You cannot view the memory usage of Aix through the average topas and vmstat.
Because IBM's memory management is very special, first understand the memory points, pay special attention to the file-type memory management method.
The data displayed by svmon can be used for calculation.
Vmstat-V can output a status quo of memory. The data such as num perf, num client, free page, and so on can be used to describe the current memory of Aix.
Netstat-V is similar to vmstat-V. It can output the NIC status. When checking whether there is a problem with the network connection quality, you can refer to the relevant output data.
Other useful tools include iostat and lvmstat. You can refer to the AIX command reference for help.
There are several commands to view the CPU:
If the system is aix5l
# Prtconf | more
# Lsconf
# Sar-u 1 10
Turn
There are many commands in the system to view the number of CPUs, but which command outputs the number of logical CPUs and the number of physical CPUs? The following is a brief introduction. Answer:
Since aix5.3, the SMT (simultaneousmulti-threading) function has been introduced for power5 machines. It allows two processing threads to run on the same processor. For the operating system, A physical processor logically becomes two processing units (logical processor ). That is to say, when the SMT function is enabled, the number of logical CPUs is twice the number of physical CPUs. When the SMT function is disabled, the number of logical CPUs is equal to the number of physical CPUs.
The following describes how to use various commands to check the number of physical CPUs and logical CPUs in the system.
1. 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
As you can see, the system has SMT capabilities and the current SMT function has been enabled. Four physical CPUs correspond to eight logical CPUs.
2. bindprocessor
# Bindprocessor-Q
The available processors are: 0 1 2 3 4 5 6 7
The number of available logical CPUs is 8 (0-7 ).
3. prtconf
# Prtconf
System Model: IBM, 9131-52a
Machine serial number: 0677a5g
Processor type: powerpc_power5
Number of processors: 4 = 4 physical CPUs
Processor clock speed: 1648 MHz
CPU type: 64-bit
Kernel type: 64-bit
Lpar info: 1 06-77a5g
4. lsdev
# Lsdev-CC Processor
Proc0 available 00-00 Processor
Proc2 available 00-02 Processor
Proc4 available 00-04 Processor
Proc6 available 00-06 Processor
The system has four physical CPUs.
5. vmstat
# Vmstat
System Configuration: lcpu = 8 mem = 7936 MB
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 99
We can see that the system has eight logical CPUs.
View memory and CPU configuration information on AIX