CS FundamentalsModerateGATE CS

Which algorithm decides WHICH process to kill when Linux runs out of memory?

  1. A. The OOM killer, which scores processes mainly by memory footprint (adjustable via oom_score_adj)
  2. B. The CPU scheduler, choosing the lowest priority
  3. C. Banker's algorithm
  4. D. The page replacement algorithm, which evicts processes

Correct answer: A. The OOM killer, which scores processes mainly by memory footprint (adjustable via oom_score_adj)

When reclaim fails, the OOM killer picks the process whose termination frees the most memory, weighted by the oom_score_adj tunable, and sends it SIGKILL.

More Operating Systems questions

Exams that ask this topic