Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P505
avg's UMA one-liner
Active
Public
Actions
Authored by
allanjude
on Jun 11 2021, 1:28 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F23511840: avg's UMA one-liner
Jun 11 2021, 1:28 PM
2021-06-11 13:28:35 (UTC+0)
Subscribers
None
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
Event Timeline
allanjude
created this paste.
Jun 11 2021, 1:28 PM
2021-06-11 13:28:35 (UTC+0)
allanjude
created this object in space
S1 Global
.
Log In to Comment