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 is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Process Memory Tools | |
|---|---|
| ps_mem | Accurately reports memory usage of programs |
| pscircle | Visualizes Linux processes in a form of radial tree |
| psrecord | Record the CPU and memory activity of a process |
| process-mem | Display memory used by processes |
| process-map | Visualize the virtual memory of a process |
| mstat | Measure memory usage of a program over time |
| alram | Helps when available memory is below threshold, with optional task killer |
Read our verdict in the software roundup.
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. |

