Script to check the dirty memory property of /proc/meminfo

This commit is contained in:
2025-11-16 22:31:35 +00:00
parent 7337d56786
commit 9eb7582eff

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
mem_left_kb=$(awk -F'[ ]*' '/Dirty/ { print $2 }' /proc/meminfo)
echo "$(date)": $(echo "$mem_left_kb / 1000" | bc -l)