commit b202c2880c52489866c29e02c45d18727c6e830a parent a55bc88a417d8e98278892429092bc0e44519237 Author: William Casarin <jb55@jb55.com> Date: Thu, 8 Oct 2020 12:27:18 -0700 bin/memstat: init Signed-off-by: William Casarin <jb55@jb55.com> Diffstat:
A | bin/memstat | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/bin/memstat b/bin/memstat @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +printf "hogs\n\n" +procmem | tail -n10 | nfmt +all=$(procmemall) +arc=$(arcsize) +total=$(($all + $arc)) +printf "\nproc %s" "$(nfmt <<<$all)" +printf "\narc %s" "$(nfmt <<<$arc)" +printf "\ntotal %s\n" "$(nfmt <<<$total)"