Essential System Utils

smem2 – reports on memory usage on Linux systems

smem2 is a command line utility for Linux that reports process and system memory usage with a focus on proportional set size (PSS), giving a more realistic picture of shared memory use than RSS alone.

It reads live data from procfs, can generate reports for processes, users, mappings, and the whole system, and also works as a Python library for scripted use.

This is free and open source software.

Key Features

  • Reports memory usage for processes, users, mappings, and the whole system.
  • Shows proportional set size, unique set size, resident set size, and swap figures.
  • Supports filtering by process, mapping, user, or specific PID.
  • Offers totals, percentages, human-readable units, and configurable columns.
  • Exports output in raw text or JSON format.
  • Can be run with uvx or pipx, installed with pip, or imported as a Python library.
  • Includes Docker support for running the tool and its test suite.

Website: github.com/slhck/smem2
Support:
Developer: Werner Robitza
License: GNU General Public License v2.0 or later

smem2 help

smem2 is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Process Memory Tools
ps_memAccurately reports memory usage of programs
pscircleVisualizes Linux processes in a form of radial tree
psrecordRecord the CPU and memory activity of a process
process-memDisplay memory used by processes
process-mapVisualize the virtual memory of a process
mstatMeasure memory usage of a program over time
alramHelps when available memory is below threshold, with optional task killer

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted