#linux #memory #swap

app smapview

A simple program to view processes' different kinds of memory usage on Linux

1 unstable release

0.2.0 Aug 28, 2025

#697 in Unix APIs

21 downloads per month

BSD-3-Clause

6KB
111 lines

smapview is a simple program to view processes' different kinds of memory usage on Linux.

This project has been renamed from "swapview" to "smapview", as it can now be used for any data in /proc/PID/smap_rollup. It looks at swap usage by default and can be changed, e.g. to view transparent hugepage usage:

smapview -f AnonHugePages

This is the version for daily use. For implementations in different programming languages, see swapview-rosetta.

Install:

cargo install smapview

Tips: you can continuously monitor swap usage in a terminal with

watch -n 1 "smapview | tail -\$((\$LINES - 2)) | cut -b -\$COLUMNS"

Dependencies

~1.9–2.6MB
~49K SLoC