![]() available: Estimation of how much memory is available for starting new applications, without swapping.Ģ) How to Check Memory Usage on Linux Using the /proc/meminfo File.cache: Size of the page cache that holds recently used files in RAM.buffers: Memory reserved by the kernel to hold a process queue request.shared: Memory shared between two or more processes (multiple processes).free: Unused memory (free= total – used – buff/cache).used: Memory is currently in use by running processes (used= total – free – buff/cache).Total used free shared buff/cache available ![]() ![]() These information is gathered from the “/proc/meminfo” file. But it provides very little information compared to the “/proc/meminfo” file.įree command displays the total amount of free and used physical and swap memory on the system, as well as buffers and caches used by the kernel. The following commands can help you check memory usage in Linux in different ways.ġ) How to Check Memory Usage on Linux Using the free Commandįree command is the most powerful command widely used by the Linux administrator. In this tutorial, we will show you eight powerful commands to check memory usage on a Linux system, including RAM and swap.Ĭreating swap space on a Linux system is very important. In Linux, there are commands for everything, so use the corresponding commands. If you want to find out the top 10 memory (RAM) consumption processes in Linux, go to the following article. If there are any applications that use too much resources on the system to run your system at the optimum level you need to find and fix. The data is continuously updated, which allows you to follow the processes in real-time.Linux is not like Windows and you will not get a GUI always, especially in a server environment.Īs a Linux administrator, it is important to know how to check your available and used resources, such as memory, CPU, disk space, etc. The top command is useful to check memory and CPU usage per process. st: Time stolen from a virtual machine.Before Linux 2.5.41, this includes IO-wait time. us: Time spent running non-kernel code.CPU – These are percentages of total CPU time.cs: number of context switches per second.in: number of interrupts per second, including the clock.bo: Blocks sent to a block device (blocks/s).bi: Blocks received from a block device (blocks/s).buff: the amount of memory used as buffers.b: number of processes in uninterruptible sleep.r: number of processes waiting for run time.The detailed description listed below provides an explanation for each value in case you need assistance in analyzing the results. The table below lists the most useful variations of the free command. The free command has multiple options to format the output so that it better matches your requirements. The key figure being the available value as it displays how much memory is still available for running new applications. Memory reserved by the OS to allocate as buffers when process need themĮstimation of how much memory is available for starting new applications, without swapping.Ĭompared to the /proc/meminfo file, the free command provides less information. Unused memory (free= total – used – buff/cache) Memory currently in use by running processes (used= total – free – buff/cache) The data represents the used/available memory and the swap memory figures in kilobytes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |