bin: add new script

This commit is contained in:
Smirnov Oleksandr 2024-02-20 22:01:11 +02:00
parent bb3df4589c
commit 0f5316b1d2

2
bin/watchsync Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
watch -n1 'grep -E "(Dirty|Write)" /proc/meminfo; echo; ls /sys/block/ | while read -r device; do awk "{ print \"$device: \" \$9 }" "/sys/block/$device/stat"; done'