Skip to content
Your Name edited this page Sep 14, 2023 · 1 revision

Memory

Heap Resident Set Size Swap

Process

OS

List user memory usage

❯ smem --percent --users
User     Count     Swap      USS      PSS      RSS
topi       143    1.50%   47.79%   51.22%   70.90%

List process by swap memory usage

for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | head
zsh 1412 kB
zsh 1336 kB
Clone this wiki locally