Skip to content

diagnose disk usage IO inotify IOPS

wiedehopf edited this page Oct 6, 2024 · 7 revisions
apt install inotify-tools
echo 128000 > /proc/sys/fs/inotify/max_user_watches
stdbuf -oL -eL inotifywait -r -m /etc /opt /root /home /usr /lib /boot /var 2>&1 | stdbuf -oL grep -v -e OPEN -e NOWRITE -e ACCESS -e /exclude_dir

Diagnosing disk writes. Use extra -e arguments for the grep to exclude directories

You can use this script to pretty much do the above with nice timestamps and automatic installation of dependencies:

curl -o inotify-debug.sh https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/inotify-debug.sh
bash inotify-debug.sh
Clone this wiki locally