mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
oomd: notify via dbus what have been killed
This commit is contained in:
committed by
Lennart Poettering
parent
7238fd51d4
commit
d784a8d474
@@ -39,6 +39,9 @@ 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 { ... };
|
||||
@@ -56,12 +59,38 @@ node /org/freedesktop/oom1 {
|
||||
|
||||
<variablelist class="dbus-method" generated="True" extra-ref="DumpByFileDescriptor()"/>
|
||||
|
||||
<variablelist class="dbus-signal" generated="True" extra-ref="Killed"/>
|
||||
|
||||
<!--End of Autogenerated section-->
|
||||
|
||||
<refsect2>
|
||||
<title>Methods</title>
|
||||
|
||||
<para>...</para>
|
||||
<para><function>Killed</function> signal is sent when any cgroup is killed by oomd.</para>
|
||||
<para>Note that more reasons will be added in the future, and the table below will be expanded accordingly.</para>
|
||||
<table>
|
||||
<title>Killing reasons</title>
|
||||
<tgroup cols="2" align="left" colsep="1" rowsep="1">
|
||||
<colspec colname="reason"/>
|
||||
<colspec colname="description"/>
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Reason</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>memory-used</entry>
|
||||
<entry>Application took too much memory and swap.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>memory-pressure</entry>
|
||||
<entry>Application took enough memory and swap to cause sufficient slowdown of other applications.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</refsect2>
|
||||
</refsect1>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user