Home >Operation and Maintenance >Linux Operation and Maintenance >One article explains what Linux /proc/meminfo is?

One article explains what Linux /proc/meminfo is?

藏色散人
藏色散人forward
2021-11-09 16:58:502750browse

The following column linux system tutorial will introduce to you the meaning of /proc/meminfo in Linux. I hope it will be helpful to friends in need!

Embedded development is very sensitive to memory leaks, and you pay more attention to the location of the leak. This article records the meaning of each parameter in /proc/meminfo collected from the Internet. It is not complete yet and needs to be completed.

Reference

Understanding of /proc/meminfo
linux/Documentation/filesystems/proc.txt

Note

The following items are not every They are available on every Linux system. Depending on your Linux design and version, there may be more or less items.
The second item in the reference material is the latest Linux documentation

Memory that has been infrequently used recently. This can easily be moved by the system to other uses##Active(anon)##Inactive(anon)UnevictableMlockedHighTotalLowTotalHighFreeLowFreeSwapTotalSwapFreeDirtyWriteBackMappedAnonPagesShmemSlabSReclaimableSUnreclaimKernelStackPageTablesNFS_UnstableBonceWritebackTmpCommitLimitCommitted_ASVmallocTotal VmallocUsedVmallocChunkRecommended study:《linux video tutorial》
Project name Description
MemTotal All available RAM size, physical memory minus reserved bits and kernel usage
MemFree LowFree HighFree
Buffers The size used to cache block devices (file system metadata, tracking in-flight pages)
Cached Buffer size of the file
SwapCached Memory that has been swapped out. Related to I/O
Active Frequently (recently) used memory
##Inactive
?
?
?
?
All in 860MB (0x35C00000) the space above. Mainly the space below 860MB for user space programs or cache pages
. If this space is used up, the system may experience an exception
860MB or more free space
860MB of free space below
Total swap space
The size of RAM temporarily stored in Swap
Size of data waiting to be written back
Size of data being written back
Mapped file size
Mapped to user Non-file page table size of space
?
Kernel data structure cache
Part of Slab. When the memory pressure is high, you can reclaim
You cannot reclaim Slab
?
The memory space of the bottom page table
The page table that has been sent to the NFS server but has not yet been confirmed (committed) and written to stable storage
?
Memory used by FUSE for temporary writeback buffers
CommitLimit = ('vm.overcommit_ratio' * Physical RAM)
The amount of memory presently allocated on the system. (The memory currently allocated in the system?)
vmalloc memory size
The virtual memory size that has been used
The size of the largest contiguous memory block available in the vmalloc area

The above is the detailed content of One article explains what Linux /proc/meminfo is?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete