2026-03-12 20:23:15
This commit is contained in:
3
vdh/top_10_swap_users.sh
Normal file
3
vdh/top_10_swap_users.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
for proc in `ls -1 /proc/*/smaps`; do procnbr=`echo $proc | tr -d '[:alpha:]/'`; grep Swap $proc |awk -v proc=$procnbr 'BEGIN {total=0} {total += $2} END {print proc " " total}'; done | sort -nrk 2 | head -n 10
|
||||
Reference in New Issue
Block a user