2026-10-07 12:21:09 +01:00
2026-10-07 12:21:09 +01:00
2026-10-07 12:21:09 +01:00
2026-10-07 12:21:09 +01:00
2026-10-07 12:21:09 +01:00
2026-10-07 12:21:09 +01:00
2026-10-07 12:21:09 +01:00
2026-10-07 12:21:09 +01:00

swaptop

htop-style view of who is using swap and how. Linux only.

go build -o swaptop . && sudo ./swaptop

Without root you only see full detail for your own processes, and the actions need root.

Header: swap bar split into green (owned by processes), yellow (swap cache: in RAM and holding a swap slot, i.e. reserved but not really swapped out) and magenta (tmpfs/shm, not owned by a process). zswap and zram figures appear when present.

Columns: SWAP (in swap now), SWPPSS (proportional share of shared pages), DELTA (change since last refresh), RSS, SWAPPED (share of the process that is in swap).

Keys: Enter per-mapping breakdown · F7 swap a process back in · F8 page a process out (process_madvise, Linux 5.10+) · F2 flush every swap device (swapoff+swapon) · F9 kill · F3 / search · F6 s sort · z show zero-swap processes · c full command line · F1 help · q quit.

S
Description
htop-style view of which processes are using swap, and how
Readme GPL-3.0
72 KiB
swaptop 1.0.1
Latest
2026-10-07 13:32:27 +02:00
Languages
Go 81.2%
Shell 15.8%
Makefile 3%