2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

3
vdh/top_10_swap_users.sh Normal file
View 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