By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: New Linux Patches Allow Manipulating Out-Of-Memory Behavior Using BPF
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > New Linux Patches Allow Manipulating Out-Of-Memory Behavior Using BPF
Computing

New Linux Patches Allow Manipulating Out-Of-Memory Behavior Using BPF

News Room
Last updated: 2025/08/18 at 8:59 PM
News Room Published 18 August 2025
Share
SHARE

Google engineer Roman Gushchin has proposed the ability for the Linux kernel to customize the out-of-memory “OOM” behavior using BPF programs.

While there is the likes of systemd-oomd for a user-space out-of-memory killer service, Linux memory management expert Roman Gushchin of Google has proposed the ability for (e)BPF programs to customize the OOM behavior within the Linux kernel.

Under the patches proposed today, the Linux kernel out-of-memory handling policy could be manipulated via BPF programs as well as Pressure Stall Information (PSI) based OOM invocation.

Broken memory (RAM)

Back in 2023 was a proposal from a Bytedance engineer to provide some OOM + BPF integration. Roman Gushchin explained with today’s patch series:

“The idea to use bpf for customizing the OOM handling is not new, but unlike the previous proposal, which augmented the existing task ranking policy, this one tries to be as generic as possible and leverage the full power of the modern bpf.

It provides a generic interface which is called before the existing OOM killer code and allows implementing any policy, e.g. picking a victim task or memory cgroup or potentially even releasing memory in other ways, e.g. deleting tmpfs files (the last one might require some additional but relatively simple changes).

The past attempt to implement memory-cgroup aware policy showed that there are multiple opinions on what the best policy is. As it’s highly workload-dependent and specific to a concrete way of organizing workloads, the structure of the cgroup tree etc, a customizable bpf-based implementation is preferable over a in-kernel implementation with a dozen on sysctls.

The second part is related to the fundamental question on when to declare the OOM event. It’s a trade-off between the risk of unnecessary OOM kills and associated work losses and the risk of infinite trashing and effective soft lockups. In the last few years several PSI-based userspace solutions were developed (e.g. OOMd or systemd-OOMd). The common idea was to use userspace daemons to implement custom OOM logic as well as rely on PSI monitoring to avoid stalls. In this scenario the userspace daemon was supposed to handle the majority of OOMs, while the in-kernel OOM killer worked as the last resort measure to guarantee that the system would never deadlock on the memory. But this approach creates additional infrastructure churn: userspace OOM daemon is a separate entity which needs to be deployed, updated, monitored. A completely different pipeline needs to be built to monitor both types of OOM events and collect associated logs. A userspace daemon is more restricted in terms on what data is available to it. Implementing a daemon which can work reliably under a heavy memory pressure in the system is also tricky.”

This BPF + OOM approach was originally raised via an RFC patch series back in April but now has graduated past that Request For Comments (RFC) phase.

The v1 patch series is now available for testing for those interested in BPF-based out-of-memory customization within the Linux kernel.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article 5 of my favorite Kindle hacks that change how I use my e-reader
Next Article Trump administration eyes stake in Intel using CHIPS Act funds – 9to5Mac
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Huawei unveils MateBook 14 with stylus support and Intel Core Ultra 7 processor · TechNode
Computing
This Mac Mini SSD base overhauled my photography workflow
News
What to Expect From the Next Mac Mini
News
The HackerNoon Newsletter: Code Smell 308 – The Key to Safer, Cleaner, More Polymorphic Code (8/18/2025) | HackerNoon
Computing

You Might also Like

Computing

Huawei unveils MateBook 14 with stylus support and Intel Core Ultra 7 processor · TechNode

1 Min Read
Computing

The HackerNoon Newsletter: Code Smell 308 – The Key to Safer, Cleaner, More Polymorphic Code (8/18/2025) | HackerNoon

2 Min Read
Computing

VW-backed Gotion starts all-solid-state battery pilot production · TechNode

1 Min Read
Computing

Can AI Save Centuries of Kurdish History? | HackerNoon

7 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?