Get the latest tech news
New Linux Patches Aim To Customize Out-Of-Memory Behavior Using BPF
A fresh take is being pursued around allowing the Linux kernel's out-of-memory (OOM) behavior to be customized using BPF programs.
There have been previous attempts at BPF-based OOM customization for adapting the kernel's behavior but no solution yet ultimately deemed the best and suitable for upstreaming. The common idea was to use userspace daemons to implement custom OOM logic as well as rely on PSI monitoring to avoid stalls. But this approach creates additional infrastructure churn: userspace OOM daemon is a separate entity which needs to be deployed, updated, monitored.
Or read this on Phoronix