Home > Article > Operation and Maintenance > What is the command to check the memory size in Linux?
The command to check the memory size in Linux is the "What is the command to check the memory size in Linux?" command; you can check the system's memory usage through the "What is the command to check the memory size in Linux?" command, and the memory size unit is KB; you can check the system's memory usage through the "What is the command to check the memory size in Linux? -m" command , the memory size unit is MB; use the "What is the command to check the memory size in Linux? -g" command to check the system's memory usage, the memory size unit is GB.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What is the command to check the memory size in Linux?
Check the actual available memory size of the Linux system through the What is the command to check the memory size in Linux? command
What is the command to check the memory size in Linux? command to check the memory usage of the system. The memory size unit is KB. The execution result is as shown in the figure below:
Use the
What is the command to check the memory size in Linux? -m command to check the memory usage of the system. The memory size unit is MB. The execution result is as shown below:
Through
The What is the command to check the memory size in Linux? -g command checks the memory usage of the system. The unit of memory size is GB. The execution result is as shown in the figure below:
What is the command to check the memory size in Linux? command is executed, two lines of data
Mem and
Swap will be displayed, where
Mem represents the usage of physical memory,
Swap represents the usage of Swap partition.
What is Swap partition?The Swap partition is a space opened by the operating system on the hard disk. When the physical memory block is exhausted, the system will transfer the memory of some processes that have not been used for a long time to the Swap partition; when the physical memory is released, the Swap The data in the area will gradually be returned to the physical memory as the process uses it.
1. Mem attribute description is shown in the following table:
Attribute value | Description | |
---|---|---|
8192MB | Total physical memory size | |
601MB | Physical memory size used | |
3998MB | Not allocated Physical memory size | |
0MB | Shared physical memory size | |
3591MB | In order to improve the read and write speed of the system (including disk read and write, file inode read and write, etc.), the operating system uses part of the memory as a cache. This value is occupied by the cache. Physical memory size | |
3998MB | Available physical memory size |
2. See the table below for Swap attribute description:
Attribute value | Description | |
---|---|---|
0MB | The total size of the Swap partition | |
0MB | Used Swap partition size | |
0MB | Unused Swap partition size |
Attribute | Attribute value | Description |
---|---|---|
0MB | The size of PageCache that can be recycled, the calculation formula is shown in the figure above | |
0MB | The SlabCache size that can be recycled, the calculation formula is shown in the figure above | |
0MB | The minimum supported system usage Water level, the calculation formula is shown in the figure above |
Linux Video Tutorial"
The above is the detailed content of What is the command to check the memory size in Linux?. For more information, please follow other related articles on the PHP Chinese website!