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

`free` shows plenty of memory, but `dmesg` shows `page allocation failure: order:4` and network drivers fail.

AdvancedTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → Memory fragmentation: the kernel can't find enough contiguous pages for a high-order allocation, even with free memory available.

Diagnose →

cat /proc/buddyinfo
dmesg -T | grep -i 'page allocation failure'
sysctl vm.min_free_kbytes

Fix → Trigger compaction: echo 1 > /proc/sys/vm/compact_memory. Raise vm.min_free_kbytes moderately so the kernel keeps a reserve.

Prevent → Tune min_free_kbytes on high-throughput network hosts, keep kernels and drivers updated.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance