CS FundamentalsModerateGATE CS
Which algorithm decides WHICH process to kill when Linux runs out of memory?
- A. The OOM killer, which scores processes mainly by memory footprint (adjustable via oom_score_adj)
- B. The CPU scheduler, choosing the lowest priority
- C. Banker's algorithm
- 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
- NUMA systems: a thread running on node 0 frequently reads memory allocated on node 1. Which statement is correct?
- Which statement about the clock interrupt frequency (tick rate) is correct?
- A real-time task must respond within 50 µs. Which OS property matters most?
- Assertion (A): Increasing the number of frames given to a process under FIFO can increase its page faults. Reason (R): FIFO does not…
- Assertion (A): A system in an unsafe state will definitely deadlock. Reason (R): In an unsafe state no sequence exists in which all…
- Assertion (A): Context switching between threads of the same process is cheaper than between processes. Reason (R): Threads of the same…