Open abitrolly opened 2 years ago
top -o %MEM
by https://man7.org/linux/man-pages/man1/top.1.html
ps aux --sort -rss | head
ps aux | sort -nk +4 | tail -n 10
I want something people can remember and quickly lookup params without internet. top
UX from 19xx doesn't fit this requirement.
➜ ~ top -h
procps-ng 3.3.17
Usage:
top -hv | -bcEeHiOSs1 -d secs -n max -u|U user -p pid(s) -o field -w [cols]
It is also not possible to copy/paste contents while the top
is updating itself.
Problems with
ps
.ps faux
, but I can't explain what it does without https://explainshell.com/explain?cmd=ps+faux (and even with it)Draft of the ideal solution.
The above, with tree sorted by memory usage in human readable form, stat legend or omitted, colors, vsz+rss merged (or replaced with mem+swap), tty removed (no idea how it is useful, but -v, --verbosity flag may turn it back).
The goal is to give a clear understanding which tree is using the most memory. Much like
neofetch
gives understanding which OS and hardware is used. For that it probably makes sense to sort tree such that last screen contains the branch and processes with most memory usage. It would also help to see the graph of most memory usage over time, with spikes or OOM events, maybe in interactive interface likevisidata
.