Fast memory rollup
One-shot Rss/Pss/Swap totals without parsing full smaps; cheap on huge maps
cat /proc/<pid>/smaps_rollup
- tool
- troubleshooting32 commands
More troubleshooting commands
-
pmap -x <pid> | sort -k3 -rn | headTop RSS mappings by region; spot a leaking heap, mmap or shared lib bloat
-
slabtop -o -s c | head -20Sort slab caches by size; dentry/inode bloat explains kernel memory pressure
-
grep -E 'Slab|SReclaimable|SUnreclaim' /proc/meminfoSplit slab into reclaimable vs unreclaimable; high SUnreclaim = real kernel leak
-
dmesg -T | grep -iE 'killed process|out of memory' | tailFind OOM victims with human timestamps; -T avoids unreadable kernel ticks
-
cat /proc/<pid>/oom_score /proc/<pid>/oom_score_adjHigher oom_score = likelier victim; set oom_score_adj -1000 to immunize a pid