Ever wondered what is hammering your disk so now and then, but couldn’t figure out with top / htop / iotop and similar? Annoying, but constant 100-200 kB/s writes? Or, simply blktrace was an overkill (or not supported by the kernel)?
To debug, try this one (setting block_dump to nonzero value enables block I/O debugging):
![](https://lxadm.com/content/images/2022/09/Ekran-Resmi-2022-09-22-11.14.46.png)
Note that it will cause massive output in dmesg, so consider stopping syslog.
Example output suggests it was postgresql:
![](https://lxadm.com/content/images/2022/09/Ekran-Resmi-2022-09-22-11.14.52.png)
Remember to stop this debugging output with (and possibly reenable syslog):
![](https://lxadm.com/content/images/2022/09/Ekran-Resmi-2022-09-22-11.14.55.png)
Citing kernel's Documentation/laptops/laptop-mode.txt:
![](https://lxadm.com/content/images/2022/09/Ekran-Resmi-2022-09-22-11.15.01.png)