Disk latency spikes every 30 seconds and the app stalls briefly.
AdvancedTroubleshootingLoad, CPU and I/O performance
Answer
Likely causes → Dirty page writeback bursts: the kernel accumulates writes in memory and flushes large batches, saturating the disk.
Diagnose →
watch -n1 'grep -E "Dirty|Writeback" /proc/meminfo'
sysctl vm.dirty_ratio vm.dirty_background_ratio vm.dirty_expire_centisecs
iostat -xz 1
Fix → Flush earlier and in smaller batches with byte limits:
sysctl -w vm.dirty_background_bytes=67108864
sysctl -w vm.dirty_bytes=268435456
Persist in /etc/sysctl.d/.
Prevent → On large-RAM hosts use *_bytes rather than percentage settings.
More on Load, CPU and I/O performance
Load average is 35 on an 8-core server, but `top` shows CPU 85% idle.Intermediate`top` shows `wa` at 60% and the application is crawling.Beginner`iostat` shows a disk at `%util 100` but throughput is only 5 MB/s.IntermediateCPU usage is moderate, but the app's latency doubled after moving to a larger VM with two NUMA nodes.AdvancedA server's CPU usage is 100% and `top` shows `kworker` or `ksoftirqd` at the top.AdvancedOne CPU core sits at 100% while the others are idle, and the app can't go faster.Intermediate