KReclaimable: It represents the memory allocations of the kernel that the kernel would attempt for reclaiming when the memory demand is severe enough. Slab: It describes the cache of in-kernel data structures. Shmem: It represents the consumed memory amount inside the tmpfs pseudo-file systems. Mapped: It defines files (such as libraries) that can be mapped into the memory. Writeback: It describes the memory which is being actively written back to a disk.ĪnonPages: It describes backed pages (non-file) mapped into the page tables of user-space. SwapTotal: It addresses the swap space amount available.ĭirty: It defines the memory amount delaying to be written back to a disk. SwapFree: It addresses the swap space amount that is unused currently. MmapCopy: It defines the memory amount that is been mapped to the file data. LowFree: It describes the free LowMem amount. It is present for every similar use as HighMem and also to use for the kernel for its purposes. HighFree: It describes the free HighMem amount. Although, it is not very fast for it to authorize than LowMem. The kernel can authorize this memory zone. It is used by page cache and user-space programs. HighTotal: It defines the total HighMem amount. Mlocked: It defines the total memory amount as not evictable due to it is locked via many user-space processes. However, it is not evictable because it is locked within the memory via user-space processes. Unevictable: It addresses the memory amount that must be evictable. Also, this file has been used from the previous cycle of memory reclamation. Inactive (file): It describes the file cache memory amount read through any hard drive that's an applicant to reclaim.Īctive (file): It defines the file cache memory amount in use. Besides, anonymous files do not locate on the hard drive. Inactive (anon): It defines the amount of shmem, tmpfs, and anonymous memory that is an applicant for eviction (or memory reclamation).Īctive (anon): It defines the memory that is allocated to the files made inside the tmpfs pseudo-file system. Likely, it is an applicant for reclamation.Īctive: It addresses the memory that is been used recently. However, it should not be used most recently. Inactive: It addresses the memory that is been used. A copy will remain within the swap space. SwapCached: It describes the memory that was back in and swapped out. Also, it speeds up access for consecutive requests for similar data due to it is already within the memory.Ĭached: It specifies cached pages read through files over the hard drive (except SwapCached). It will reduce the input and output of the hard drive. MemAvailable: It defines estimated memory exist to begin new applications with no swapping.īuffers: It specifies temporary storage for disk blocks (raw). MemFree: It specifies The sum of HighFree+LowFree. MemTotal: It describes total RAM which is usable (apart from some reserved bits and the binary code of the kernel). If we wish to get fancy with the /proc/meminfo file, we can apply it in conjunction using the egrep command. We will wish to inspect the values for in particular: Rather the /proc/meminfo file is a virtual file that includes dynamic and real-time details of the system. One thing we must learn about the /proc/meminfo file is that it is not an actual file. We can scroll down and up through that output for finding what we need exactly with the help of the less command. We can read this file directly by using a command, i.e., less /proc/meminfo. In a few cases, the commands get the information with the help of a file named /proc/meminfo. It is an instance of what the file, i.e., /proc/meminfo looks like in Linux Ubuntu 20.04: Note: The command line shows the details in Kbs. The result may differ according to the operating system and architecture slightly. It includes real-time details about the memory of the system as well as the shared and buffer memory used via the kernel. It is a virtual file that tells the amount of used and available memory. Typing cat /proc/meminfo in our command line opens a file, i.e., /proc/meminfo. Authorities to a terminal or command lineĬommands for checking the usage of memory in Linux cat command to display Linux memory details.The results and the commands are represented using Ubuntu 20.04 version. The commands will execute almost every distribution of Linux. We will understand some of the important commands for checking the usage of memory in Linux in this topic.Īlso, we will give explanations in detail of what are they doing and more essentially how to illustrate the outputs. Some simple commands of the terminal give access to each corresponding information and support us monitor statistics. It is necessary that our Linux system executes at an excellent level. Next → ← prev How to Inspect the Memory in Linux Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |