6.2.2015

script to print Buffers and Slab every 10s

Filed under: bash — nax @ 18:22

while true
do export datum=`date +%s`
echo -n "$datum,"
egrep '(Slab|Buffers)' /proc/meminfo | cut -d: -f 2 | while read value unit
do echo -n $value,
done
echo
sleep 10
done

Comments are closed.

Powered by WordPress