Troubleshooting

Free memory on a server falls steadily over several days until dmesg shows "Out of memory: Killed process". Which cause fits this pattern?

Show the answer

Correct answerB. A memory leak in a long-running process

AWhy not this: Page cache is reclaimable, so the kernel frees it under memory pressure instead of killing processes.

BWhy this is right: A leak keeps consuming memory until RAM and swap run out, and the kernel's OOM killer then ends a process.

CWhy not this: Running out of inodes stops new files from being created; it does not use up memory.

DWhy not this: A process in D state waits on I/O and raises load, but it does not steadily consume memory.

A leaking process steadily consumes memory until RAM and swap cannot satisfy allocations, so the kernel's OOM killer terminates a process to recover memory.