We recently observed constant write activity on our development server, while watching dstat. With the help of
iotop (iotop), we identified the Apache web server was the culprit.
But why would apache be doing so many writes? That's not normal behaviori (excluding the the logs). We then used auditd to log writes by apache:
sudo auditctl -a exit,always -S write -F uid=33
We also logged opens that were not O_RDONLY:
sudo auditctl -a exit,always -S open -F uid=33 -F a1'!=0'`
This resulted in the following rules:
sudo auditctl -l LIST_RULES: exit,always uid=33 (0x21) syscall=write LIST_RULES: exit,always uid=33 (0x21) a1!=0 syscall=open
This allowed us to isolate a PHP module that was completely broken (using
Copyright © 2012 Timid Robot Zehta. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.