logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

org.freedesktop.oom1 - The D-Bus interface of systemd-oomd

History

TheManagerObjectKilled() was added in version 252.

Introduction

systemd-oomd.service(8) is a system service which implements a userspace out-of-memory (OOM) killer. This page describes the D-Bus interface.

Name

org.freedesktop.oom1 - The D-Bus interface of systemd-oomd

Notes

1. the usual interface versioning guidelines https://0pointer.de/blog/projects/versioning-dbus.html systemd 257.7 ORG.FREEDESKTOP.OOM1(5)

See Also

systemd(1), systemd-oomd.service(8), oomctl(1)

The Manager Object

The service exposes the following interfaces on the Manager object on the bus: node /org/freedesktop/oom1 { interface org.freedesktop.oom1.Manager { methods: DumpByFileDescriptor(out h fd); signals: Killed(s cgroup, s reason); }; interface org.freedesktop.DBus.Peer { ... }; interface org.freedesktop.DBus.Introspectable { ... }; interface org.freedesktop.DBus.Properties { ... }; }; MethodsKilled() signal is sent when any cgroup is killed by oomd. Note that more reasons will be added in the future, and the table below will be expanded accordingly. Table1.Killingreasons ┌─────────────────┬──────────────────────────────────────┐ │ ReasonDescription │ ├─────────────────┼──────────────────────────────────────┤ │ memory-used │ Application took too much memory and │ │ │ swap. │ ├─────────────────┼──────────────────────────────────────┤ │ memory-pressure │ Application took enough memory and │ │ │ swap to cause sufficient slowdown of │ │ │ other applications. │ └─────────────────┴──────────────────────────────────────┘

Versioning

These D-Bus interfaces follow theusualinterfaceversioningguidelines[1].

See Also