It is similar to top, also allows you to see all the processes running on the system, with their full command lines. This program can display the amount of used and free memory, i.e. The program atop is an interactive monitor to view the load on a Linux system. You will some output like below: 7996284 total memory The vmstat command with the s option, lays out the memory usage statistics much like the proc command. You will some output like below: procs -memory-swap-io-system-cpu. Vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity. – o: use old format (no -/+buffers/cache line) – l: show detailed low and high memory statistics b,-k,-m,-g: show output in bytes, KB, MB, or GB You will get some output like below: total used free shared buffers cached You can check the total free and used physical and swap memory as well as the buffer used using free command. You will get some output like below: MemTotal: 7996284 kB # egrep -color 'Mem|Cache|Swap' /proc/meminfo The same file is used to know the free and other utilities report of free and used memory (both physical and swap) on the system. You can check memory usage is to read the /proc/meminfo file. Check Memory Usage on Linuxįollow the below command to check memory usage on Linux machine. In this article I will describe lots of way to check the memory usage on Linux. The top command can display system summary information as well as a list of the process currently being managed by the Linux kernel. The “ top” command provides a dynamic real-time view of a running system. The “ free” command usually displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel. Linux comes with many commands to check memory usage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |