Re: [PATCH] OOM_pardon, a.k.a. don't kill my xlock (2004)
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

A Linux kernel patch proposed by developer Andries Brouwer seeks to stop the Out-Of-Memory (OOM) killer from killing certain processes, including xlock. The development highlights ongoing efforts to improve kernel memory management and stability.

A patch has been proposed to the Linux kernel to prevent the Out-Of-Memory (OOM) killer from terminating certain processes, such as xlock, during memory shortages. The development was shared by Linux kernel developer Andries Brouwer on September 24, 2004, and aims to address concerns about process termination in critical or user-facing applications.

Before you orderOffer from Amazon

Get the latest gadgets delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

The patch, titled ‘oom_pardon,’ was communicated via email by Brouwer to the Linux kernel mailing list. It introduces a mechanism allowing specific processes to be marked as immune from the OOM killer, which typically terminates processes when system memory is critically low. The proposal was motivated by the desire to protect processes like xlock, which are important for user experience or system stability in certain contexts.

According to Brouwer, the patch would enable administrators or developers to specify processes that should not be killed during memory pressure, effectively creating a safeguard against unwanted termination. The patch is still in review, and its implementation details are being discussed among kernel developers.

Why It Matters

This development is significant because it addresses a core challenge in Linux system stability: balancing memory management with process continuity. By allowing certain processes to be protected from the OOM killer, systems can maintain essential services and user interfaces even under extreme memory conditions. However, it also raises questions about potential abuse or system stability if critical processes are protected indiscriminately.

Products Worth Considering

LG 27GS60QC-B Ultragear 27-inch Curved Gaming Monitor (QHD, 180Hz, 1ms, 1000R)

LG 27GS60QC-B Ultragear 27-inch Curved Gaming Monitor (QHD, 180Hz, 1ms, 1000R)

LG UltraGear 27-inch QHD OLED Gaming Monitor, 240Hz, 0.03ms, G-SYNC Compatible, FreeSync Premium Pro, HDR True Black 400

LG UltraGear 27-inch QHD OLED Gaming Monitor, 240Hz, 0.03ms, G-SYNC Compatible, FreeSync Premium Pro, HDR True Black 400

As an affiliate, we earn on qualifying purchases.

Background

The OOM killer is a Linux kernel mechanism activated when the system runs out of memory, designed to free resources by terminating less critical processes. Historically, this has been a blunt but necessary tool, sometimes leading to unintended disruptions. The idea of ‘pardon’ mechanisms or process exemptions has been discussed in kernel development circles for years, but no widespread implementation exists as of this development.

This proposal follows ongoing efforts to refine Linux memory management, especially as systems become more complex and user-focused. It echoes previous debates about how best to handle critical processes during resource shortages without compromising overall system stability.

“The patch would enable administrators to specify processes that should not be killed during memory pressure, protecting critical applications like xlock.”

— Andries Brouwer

What Remains Unclear

It is not yet clear how widely accepted or adopted this patch will become, or what potential side effects might arise from exempting processes from the OOM killer. The technical details are still under discussion, and the impact on overall system stability remains to be evaluated.

What’s Next

The patch is currently under review by the Linux kernel community. Future steps include further testing, feedback from kernel developers, and potential integration into official kernel releases. Additional discussions may address scope and safeguards for process exemptions.

Key Questions

What is the main goal of the ‘oom_pardon’ patch?

The patch aims to prevent the Linux OOM killer from terminating specific, critical processes during memory shortages, thereby improving system stability and user experience.

Which processes can be protected using this patch?

Processes like xlock, which are important for user interface or system stability, could be marked as protected from being killed during memory pressure.

Does this patch eliminate the need for the OOM killer?

No, it does not eliminate the OOM killer but provides a way to exempt certain processes from its actions during critical situations.

Are there risks associated with exempting processes from the OOM killer?

Yes, if critical processes are protected indiscriminately, it could lead to system instability or failure to recover from low-memory conditions.

Source: Hacker News

You May Also Like

The Core Ultra 7 270K was too good, so Intel scrapped the flagship Core Ultra 9 290K Plus — benchmarks of the 290K prototype find slim 2% faster performance in gaming and applications

Intel has scrapped the flagship Core Ultra 9 290K Plus, citing disappointing performance in leaked benchmarks, favoring the more balanced Core Ultra 7 270K Plus.

7 Best Tablet Stands and Docks for Prime Day Deals in 2026

Discover the best tablet stands and docks available during Prime Day 2026, including top picks for various use cases and budgets.

A History of IDEs at Google

An in-depth look at how Google evolved its integrated development environment ecosystem from diverse choices to a unified cloud-based solution, highlighting key milestones and future plans.

Japan can’t make robot wolves fast enough to counter the rise in bear attacks that have killed 13 humans this year — $4,000+ animatronic Monster Wolf features intense LEDs and makes loud noises

Japan’s demand for high-tech bear deterrents, like the Monster Wolf robot, exceeds production capacity amid record bear attacks and sightings.