Admin
-
How to find the actual memory usage by each process
Checking RSS gives you an idea how much physical memory is consumed at the moment. However, there are shared area such as shared object (.so), shared memory (shmget), etc. To get real amount consumed by application side, those shared area should be divided by the number of processes which is done by kernel in /proc/*/smaps… Continue reading
-
How to check memory usage in Linux – part 1.2 – Per-process level memory usage check
ps This is the basic command to see process list with memory usage. Here the memory related columns is %MEM, VSZ and RSS. pmap pmap shows the memory allocation layout in a process. You can check what shared object (.so) files are loaded, how much is allocated in heap, how much is used for stack,… Continue reading
-
How to check memory usage in Linux – part 1.1 – System level memory usage check
free It is showing the overall memory usage in the system and how much is available to use. We are usually focusing on used and free column to see how much memory was consumed and how much is available to use. There are some monitoring tools focus on those two columns only and alarming if… Continue reading
-
How to check memory usage in Linux – part 1. User space
Here I am explaining how to check memory usage in the user space, especially from the command line. There are two perspective to see memory usage – System level and per-process level. System level memory usage check Per-process level memory usage check System level memory usage check free top /proc/meminfo /proc/buddyinfo /proc/pagetypeinfo vmstat /var/log/sa/ You… Continue reading
About Me
A software engineer who loves any technologies that makes life easier. That’s why I love Linux and Mac at the same time.
Recent Posts
- How to find the actual memory usage by each process
- How to check memory usage in Linux – part 1.2 – Per-process level memory usage check
- How to check memory usage in Linux – part 1.1 – System level memory usage check
- How to check memory usage in Linux – part 1. User space
- How to track SLAB usage using slub_debug=U