How to Install SMEM Memory Usage Tool in Ubuntu

Smem is a free & open source memory reporting tool. It is a command line utility. It gives the numerous reports on memory usage on systems. Using Smem, we can listings or filtering the memory usage by using process, mapping,& user.

There are some steps to setup Smem on ubuntu:

Step 1: Update the System.

apt-get update

Step 2: Install Smem on system.

apt-get install smem

Step 3: Smem Syntax & Examples:

  • Run the following command to see a report of memory usage by all system user.

smem

  • Here is the command output.

  • To display system wide memory consumption.

smem -w

  • Here is the command output.

  • To list report memory usage by mappings.

smem -m

  • Here is the command output.

  • To display memory usage on a per-user basis.

smem -u

  • Here is the command output.

  • To filter the output by process name.

smem --processfilter="firefox"

  • Here is the command output.

  • To list specific columns in the report.

smem -c "name user pss rss"

  • Here is the command output.

  • To list memory usage in percentages.

smem -p

  • Here is the command output.

  • To list totals at the end of each column.

smem -t

  • Here is the command output.

Leave a Reply