diff options
| author | Michael John <amstelchen@gmx.at> | 2024-04-02 12:16:49 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-02 12:16:49 +0200 | 
| commit | 15f5f0b7660ddf232eb43ef6bf20e8ad94d9803d (patch) | |
| tree | e3ab59dd43d7349555d41849355398a2b8a3ebb5 /modules | |
| parent | 60796c2dbfe8e467ba30130024cb0f858b4d2aa5 (diff) | |
Added missing memory usage field descriptions (#20)
* Added missing memory usage field descriptions
* Further shortened memory usage field descriptions
---------
Co-authored-by: Michael John <michael.john@gmx.at>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/computer/memory_usage.c | 71 | 
1 files changed, 62 insertions, 9 deletions
| diff --git a/modules/computer/memory_usage.c b/modules/computer/memory_usage.c index 12c62fe7..2598283f 100644 --- a/modules/computer/memory_usage.c +++ b/modules/computer/memory_usage.c @@ -103,15 +103,68 @@ void init_memory_labels(void)          char *proc_label;          char *real_label;      } proc2real[] = { -        { "MemTotal",   N_("Total Memory") }, -        { "MemFree",    N_("Free Memory") }, -        { "SwapCached", N_("Cached Swap") }, -        { "HighTotal",  N_("High Memory") }, -        { "HighFree",   N_("Free High Memory") }, -        { "LowTotal",   N_("Low Memory") }, -        { "LowFree",    N_("Free Low Memory") }, -        { "SwapTotal",  N_("Virtual Memory") }, -        { "SwapFree",   N_("Free Virtual Memory") }, +        /* https://docs.kernel.org/filesystems/proc.html */ +        { "MemTotal",       N_("Total physical memory usable by the system") }, +        { "MemFree",        N_("Free memory which is not used for anything") }, +        { "SwapTotal",      N_("Virtual memory, total swap space available") }, +        { "SwapFree",       N_("Virtual memory, remaining swap space available") }, +        { "SwapCached",     N_("Memory present within main memory and in the swapfile") }, +        { "HighTotal",      N_("HighTotal value can vary based on the type of kernel used") }, +        { "HighFree",       N_("Amount of memory that is not directly mapped into kernel space") }, +        { "LowTotal",       N_("LowTotal value can vary based on the type of kernel used") }, +        { "LowFree",        N_("Total and free memory directly mapped into kernel space") }, +        { "MemAvailable",   N_("Available memory for allocation to any process, without swapping") }, +        { "Buffers",        N_("Memory in buffer cache, temporary storage for raw disk blocks") }, +        { "Cached",         N_("Memory in the page cache (diskcache, shared memory, tmpfs and shmem)") }, +        { "Active",         N_("Memory used more recently and not swapped out or reclaimed") }, +        { "Inactive",       N_("Memory not been used recently and can be swapped out or reclaimed") }, +        { "Active(anon)",   N_("Anonymous memory used more recently and not swapped out") }, +        { "Inactive(anon)", N_("Anonymous memory not been used and can be swapped out") }, +        { "Active(file)",   N_("Pagecache memory been used more recently and not reclaimed") }, +        { "Inactive(file)", N_("Pagecache memory reclaimable without huge performance impact") }, +        { "Unevictable",    N_("Unevictable pages can't be swapped out for a variety of reasons") }, +        { "Mlocked",        N_("Pages locked to memory using the mlock() system call") }, +        { "Zswap",          N_("Memory consumed by the zswap backend (compressed size)") }, +        { "Zswapped",       N_("Amount of anonymous memory stored in zswap (original size)") }, +        { "Dirty",          N_("Memory waiting to be written back to disk") }, +        { "Writeback",      N_(" Memory which is actively being written back to disk") }, +        { "AnonPages",      N_("Non-file backed pages mapped into userspace page tables") }, +        { "Mapped",         N_("Files which have been mmapped, such as libraries") }, +        { "Shmem",          N_("Total memory used by shared memory (shmem) and tmpfs") }, +        { "KReclaimable",   N_("Kernel allocations reclaimable under memory pressure") }, +        { "Slab",           N_("In-kernel data structures cache") }, +        { "SReclaimable",   N_("Part of Slab, that might be reclaimed, such as caches") }, +        { "SUnreclaim",     N_("Part of Slab, that cannot be reclaimed on memory pressure") }, +        { "KernelStack",    N_("Memory consumed by the kernel stacks of all tasks") }, +        { "PageTables",     N_("Memory consumed by userspace page tables") }, +        { "SecPageTables",  N_("Memory consumed by secondary page tables") }, +        { "NFS_Unstable",   N_("Previous counted pages which had been written to the server") }, +        { "Bounce",         N_("Memory used for block device bounce buffers") }, +        { "WritebackTmp",   N_("Memory used by FUSE for temporary writeback buffers") }, +        { "CommitLimit",    N_("Total memory currently available to be allocated on the system") }, +        { "Committed_AS",   N_("The amount of memory presently allocated on the system") }, +        { "VmallocTotal",   N_("Total size of vmalloc virtual address space") }, +        { "VmallocUsed",    N_("Amount of vmalloc area which is used") }, +        { "VmallocChunk",   N_("Largest contiguous block of vmalloc area which is free") }, +        { "Percpu",         N_("Memory allocated to the percpu allocator") }, +        { "HardwareCorrupted", N_("Amount of memory the kernel identifies as corrupted") }, +        { "AnonHugePages",  N_("Non-file backed huge pages mapped into userspace page tables") }, +        { "ShmemHugePages", N_("Memory used by shmem and tmpfs allocated with huge pages") }, +        { "ShmemPmdMapped", N_("Shared memory mapped into userspace with huge pages") }, +        { "FileHugePages",  N_("Memory used for fs data (page cache) allocated with huge pages") }, +        { "FilePmdMapped",  N_("Page cache mapped into userspace with huge pages") }, +        { "CmaTotal",       N_("Memory reserved for the Contiguous Memory Allocator (CMA)") }, +        { "CmaFree",        N_("Free remaining memory in the CMA reserves") }, +        { "Unaccepted",     N_("Amount of unaccepted memory usable by the kernel") }, +        { "HugePages_Total", N_("Size of the pool of huge pages") }, +        { "HugePages_Free", N_("Number of huge pages available") }, +        { "HugePages_Rsvd", N_("Number of huge pages reserved") }, +        { "HugePages_Surp", N_("Number of huge pages surplus") }, +        { "Hugepagesize",   N_("Huge page size, used in conjunction with hugepages parameter") }, +        { "Hugetlb",        N_("Total amount of memory consumed by huge pages of all sizes") }, +        { "DirectMap4k",    N_("Breakdown of page table sizes of 4k size") }, +        { "DirectMap2M",    N_("Breakdown of page table sizes of 2M size") }, +        { "DirectMap1G",    N_("Breakdown of page table sizes of 1G size") },          { NULL },      };      gint i; | 
