Essential System Utils

9 Best Free and Open Source Process Memory Tools

Linux provides a variety of utilities for investigating how much memory is consumed by running processes. Familiar commands such as ps, top and free give useful information, but understanding an application’s actual memory footprint can require more detailed analysis.

Measuring process memory is not as straightforward as it first appears. A process may share libraries and other memory pages with several programs, so simply adding together resident memory figures can produce misleading totals. Proportional Set Size (PSS) accounts for shared pages, while Unique Set Size (USS) identifies memory that belongs exclusively to a process. These measurements are particularly useful when comparing applications or investigating unexpectedly high RAM consumption.

Other tools approach memory analysis from a different perspective. Some record memory consumption over time, helping identify gradual increases or sudden spikes. Memory profilers can go further by tracing allocations to particular functions, making it easier to investigate memory leaks, excessive allocations and inefficient resource use.

This roundup examines utilities for measuring, recording and visualising process memory usage on Linux. The selection ranges from lightweight command-line tools to specialised profilers with graphical reports.

Here’s our verdict captured in a legendary LinuxLinks-style ratings chart. Only free and open source software is eligible for inclusion.

Ratings chart

Let’s explore the process memory tools at hand. For each title we have compiled its own portal page, providing a description of the software, an analysis of its features, and links to relevant resources.

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
smem2Reports on memory usage on Linux systems
process-memDisplay memory used by processes
process-mapVisualize the virtual memory of a process
SmemstatReports the physical memory usage
mstatMeasure memory usage of a program over time
alramHelps when available memory is below threshold, with optional task killer

This article has been updated to reflect the changes outlined in our recent announcement.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
2 Comments
Oldest
Newest Most Voted
Sam
Sam
10 months ago

ps_mem is very useful. Thanks

Oz Q
Oz Q
9 months ago
Reply to  Sam

Shame that it isn’t maintained.