Easily Understand Your Linux RAM Usage With Smem

Published on:

|

Categories:

|

Modified Date:

Linux memory usage can be difficult to interpret and hard to understand. With smem it’s easy to find out what memory a process is using, and which processes are using the most.



Commands:
sudo apt install smem
smem
smem -p
smem -k
smem -k -t
smem -u
sudo smem -u
smem -m -k -t
smem -w -k -t
smem -c pss -P firefox -k -t | tail -n 1
smem –pie name -s uss



Chpters:
0:00 Intro
0:23 The smem utility
1:44 Refining the report
2:54 Reporting on a single program
3:34 Generating graphs
4:36 End screen



What you will learn:
1. The smem Utility
a. How to report memory used by processes, users, mapping, or system-wide
b. How to install smem utility
c. How to see list of the processes that are using RAM
d. How to see The process ID of the process that’s using the memory
e. How to see The username of the user who owns the process
f. How to see The command line that launched the process
g. How to see How much swap space the process is using
h. How to see The Unique Set Size
i. How to see The Proportional Set Size
j. How to see The Resident Set Size
k. How to see the sizes expressed as percentages
l. How To see the figures rendered in a more human-friendly form
m. How to shrinks the figures and adds unit indicators
n. How to see the sizes megabytes, gigabytes, and so on o. How to add a totals line
2. Refining the Report
a. How to ask smem to report on the memory usage by users, mapping (libraries), or system-wide
b. How to see more than just your own usage
c. How to see the usage mapped to the libraries that are in use, regardless of which processes are using the libraries, nor which users own those processes
3. Reporting on a Single Program
a. How you can report on a single program and all of its sub-processes
b. How to tell smem to use human-readable values and to provide a total
c. What is a quick and neat way to find out the RAM consumption of a program and its child processes
4. Generating Graphs
a. How You can pass the –pie or –bar options to have smem generate graphs
b. How to see graph of uss, pss and rss


















Song: Dennis Kumar – Riverside (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.
Video Link: https://youtu.be/OzV_4FOYdBA

#computereverywhere #easily #understand #linux #ram #usage #smem

Posted by

in

Leave a Reply

Your email address will not be published. Required fields are marked *