New answers tagged memory-usage
watch -n1 'ps ax -o "vsize cmd" | sort -n | tail' Run ps command with custom output format, sort numerically from lowest to highest memory usage, get the last few entries (optional). And run it continuously with watch and two single quotes to treat the piped command as literals
Quoted from the great answer in SE here: First, repeat this mantra for a little while: "unused memory is wasted memory". The Linux kernel keeps around huge amounts of file metadata and files that were requested, until something that looks more important pushes that data out. It's why you can run: find /home -type f -name '*.mp3' find /home -type f ...
Top 50 recent answers are included