linux poison RSS
linux poison Email

Detail Memory Reporting Tool for Linux System - smem

smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system.

Because large portions of physical memory are typically shared among multiple applications, the standard measure of memory usage known as resident set size (RSS) will significantly overestimate memory usage. PSS instead measures each application's "fair share" of each shared area to give a realistic measure.

smem has many features:
 * system overview listing
 * listings by process, mapping, user
 * filtering by process, mapping, or user
 * configurable columns from multiple data sources
 * configurable output units and percentages
 * configurable headers and totals
 * reading live data from /proc
 * reading data snapshots from directory mirrors or compressed tarballs
 * lightweight capture tool for embedded systems
 * built-in chart generation

smem Installation:
For Ubuntu user, open up the terminal (Applications > Accessories > Terminal) and type following command to install smem:
sudo apt-get install smem
smem usage:
Show basic process information: smem
Show library-oriented view: smem -m
Show user-oriented view: smem -u
Show system view: smem -R 4G -K /path/to/vmlinux -w
Show totals and percentages: smem -t -p
Show different columns: smem -c "name user pss"
Sort by reverse RSS: smem -s rss -r
Show processes filtered by mapping: smem -M libxml
Show mappings filtered by process: smem -m -P [e]volution
Show a bar chart labeled by pid: smem --bar pid -c "pss uss"
Show a pie chart of RSS labeled by name: smem --pie name -s rss

Here is the output of smem command: smem --bar pid -c "pss uss"


CD Replication said...

I never heard about it before, i hope this tool will be good for all of us, thanks for your work.

Post a Comment

Related Posts with Thumbnails