filbranden/oomd

Project ID: 26191

Description

Userspace Out-Of-Memory (OOM) killer for linux systems.

Out of memory killing has historically happened inside kernel space. On a memory overcommitted linux system, malloc(2) and friends usually never fail. However, if an application dereferences the returned pointer and the system has run out of physical memory, the linux kernel is forced take extreme measures, up to and including killing processes. This is sometimes a slow and painful process because the kernel can spend an unbounded amount of time swapping in and out pages and evicting the page cache. Furthermore, configuring policy is not very flexible while being somewhat complicated.

oomd aims to solve this problem in userspace. oomd leverages PSI and cgroupv2 to monitor a system holistically. oomd then takes corrective action in userspace before an OOM occurs in kernel space. Corrective action is configured via a flexible plugin system, in which custom code can be written. By default, this involves killing offending processes. This enables an unparalleled level of flexibility where each workload can have custom protection rules. Furthermore, time spent livedlocked in kernelspace is minimized.

Installation Instructions

Enable this COPR repository with:

$ sudo dnf copr enable filbranden/oomd

Then install oomd with:

$ sudo dnf install oomd

Enable and start it with:

$ sudo systemctl enable --now oomd.service

Active Releases

The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).

Release Architectures Repo Download
Fedora 39 x86_64 (19)* Fedora 39 (0 downloads)
Fedora 40 x86_64 [modified] (11)* Fedora 40 (27 downloads)
Fedora 41 x86_64 [modified] (8)* Fedora 41 (15 downloads)
Fedora rawhide x86_64 [modified] (22)* Fedora rawhide (203 downloads)

* Total number of downloaded packages.