Interview Prep/Linux/Load, CPU and I/O performance

After enabling auditd with many rules, the server's CPU usage and latency rose noticeably.

IntermediateTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → Broad syscall rules (e.g. -S open or execve for all users) generate huge event volumes, or the audit backlog fills and the kernel blocks.

Diagnose →

sudo auditctl -s                 # backlog, lost
sudo auditctl -l
sudo aureport --summary

Fix → Narrow rules with filters (-F auid>=1000 -F auid!=unset, specific paths), raise -b backlog size, and set --backlog_wait_time appropriately.

Prevent → Benchmark audit rules in staging; follow a curated rule set.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance