标签:customer cache form origin view com hover ble called
/proc/meminfo output.free -k to cat /proc/meminfo./proc/meminfo fields in Red Hat Enterprise Linux (RHEL) releases prior to RHEL 5, please look at What is indicated by each value in /proc/meminfo?cat /proc/meminfo will be discussed in the Diagnostics Steps.free command see How do I view system memory utilization in Red Hat Enterprise Linux?MemAvailable in /proc/meminfofree commandfree -k output (RHEL 5 and RHEL 6): total used free shared buffers cached
Mem: 7778104 2971960 4806144 0 211756 1071092
-/+ buffers/cache: 1689112 6088992
Swap: 4194296 0 4194296
free -k output (RHEL 7): total used free shared buff/cache available
Mem: 1012952 252740 158732 11108 601480 543584
Swap: 1048572 5380 1043192
/proc/meminfo to match them against the output of free -k:MemTotal: 7778104 kB
MemFree: 4806144 kB
Buffers: 211756 kB
Cached: 1071092 kB
SwapTotal: 4194296 kB
SwapFree: 4194296 kB
-/+ buffers/cache line:MemAvailable: 543584 kB
free -k to /proc/meminfoThe following table shows how to get the free output matched to the /proc/meminfo fields in Red Hat Enterprise Linux 5, 6 and 7.0.
free output | coresponding /proc/meminfo fields |
|---|---|
Mem: total |
MemTotal |
Mem: used |
MemTotal - MemFree |
Mem: free |
MemFree |
Mem: shared (can be ignored nowadays. It has no meaning.) |
N/A |
Mem: buffers |
Buffers |
Mem: cached |
Cached |
-/+ buffers/cache: used |
MemTotal - (MemFree + Buffers + Cached) |
-/+ buffers/cache: free |
MemFree + Buffers + Cached |
Swap: total |
SwapTotal |
Swap: used |
SwapTotal - SwapFree |
Swap: free |
SwapFree |
The following table shows how to get the free output matched to the /proc/meminfo fields in Red Hat Enterprise Linux 7.1 or later (procps-ng 3.3.10).
free output | coresponding /proc/meminfo fields |
|---|---|
Mem: total |
MemTotal |
Mem: used |
MemTotal - MemFree - Buffers - Cached - Slab |
Mem: free |
MemFree |
Mem: shared |
Shmem |
Mem: buff/cache |
Buffers + Cached + Slab |
Mem:available |
MemAvailable |
Swap: total |
SwapTotal |
Swap: used |
SwapTotal - SwapFree |
Swap: free |
SwapFree |
Most stuff is taken from the kernel documentation (Documentation/filesystems/proc.txt and Documentation/vm/hugetlbpage.txt)
mlock() system call. Mlocked pages are also Unevictable.bounce buffersvm.overcommit_ratio), this is the total amount of memory currently available to be allocated on the system. This limit is only adhered to if strict overcommit accounting is enabled (mode 2 in vm.overcommit_memory).vm.nr_hugepages)hugepage (usually 2MB on an Intel based system)vm.nr_hugepages. The maximum number of surplus hugepages is controlled by vm.nr_overcommit_hugepages.hugepages (usually 2MB in size)Interpreting /proc/meminfo and free output for Red Hat Enterprise Linux 5, 6 and 7
标签:customer cache form origin view com hover ble called
原文地址:https://www.cnblogs.com/DataArt/p/10047015.html