df -hvmstat -z | tail +3 | awk -F '[:,] *' 'BEGIN { total=0; cache=0; used=0 } {u = $2 * $4; c = $2 * $5; t = u + c; cache += c; used += u; total += t; name=$1; gsub(" ", "_", name); print t, name, u, c} END { print total, "TOTAL", used, cache } ' | sort -n | perl -a -p -e 'while (($j, $_) = each(@F)) { 1 while s/^(-?\d+)(\d{3})/$1,$2/; print $_, " "} print "\n"' | column -tvmstat -o | sort -nr | head -n 3000vmstat -m | sort -rk3
vmstat -o | sort -nr | head -n 3000
vmstat -z | tail +3 | awk -F '[:,] *' 'BEGIN { total=0; cache=0; used=0 } {u = $2 * $4; c = $2 * $5; t = u + c; cache += c; used += u; total += t; name=$1; gsub(" ", "_", name); print t, name, u, c} END { print total, "TOTAL", used, cache } ' | sort -n | perl -a -p -e 'while (($j, $_) = each(@F)) { 1 while s/^(-?\d+)(\d{3})/$1,$2/; print $_, " "} print "\n"' | column -t
df -h
top -o size
/dev/gpt/rootfs on / (ufs, local, noatime, soft-updates)devfs on /dev (devfs)devfs on /var/dhcpd/dev (devfs)devfs on /var/unbound/dev (devfs)
last pid: 63460; load averages: 0.28, 0.39, 0.44 up 2+04:54:04 11:49:4453 processes: 1 running, 52 sleepingCPU: 1.1% user, 0.0% nice, 16.3% system, 0.0% interrupt, 82.6% idleMem: 39M Active, 989M Inact, 458M Wired, 249M Buf, 2465M Free
last pid: 35841; load averages: 0.31, 0.47, 0.41 up 2+06:21:38 13:17:1854 processes: 1 running, 53 sleepingCPU: 0.0% user, 0.0% nice, 15.8% system, 0.0% interrupt, 84.2% idleMem: 80M Active, 998M Inact, 466M Wired, 256M Buf, 2406M Free
last pid: 42872; load averages: 0.59, 0.46, 0.45 up 2+07:23:49 14:19:2954 processes: 1 running, 53 sleepingCPU: 0.2% user, 0.0% nice, 10.1% system, 0.0% interrupt, 89.7% idleMem: 49M Active, 992M Inact, 476M Wired, 263M Buf, 2432M Free