summaryrefslogtreecommitdiff
path: root/src/oom/oomd-util.h
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2022-02-03 15:50:31 +0100
committerBenjamin Berg <bberg@redhat.com>2022-02-04 20:00:35 +0100
commit29f4185a9cdc101e78efd92c1cd42d9a7c5de72e (patch)
treeb81c4e7a8eeff18446052e97492f17cd0e97009d /src/oom/oomd-util.h
parentf83da717d9cdc9d464fcc4abae5193b4b5db1f79 (diff)
downloadsystemd-29f4185a9cdc101e78efd92c1cd42d9a7c5de72e.tar.gz
oomd: Dump top offenders after a kill action
This hopefully makes it more transparent why a specific cgroup was killed by systemd-oomd.
Diffstat (limited to 'src/oom/oomd-util.h')
-rw-r--r--src/oom/oomd-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/oom/oomd-util.h b/src/oom/oomd-util.h
index 3a91a31352..6aada90344 100644
--- a/src/oom/oomd-util.h
+++ b/src/oom/oomd-util.h
@@ -7,6 +7,7 @@
#include "hashmap.h"
#include "psi-util.h"
+#define DUMP_ON_KILL_COUNT 10
#define GROWING_SIZE_PERCENTILE 80
extern const struct hash_ops oomd_cgroup_ctx_hash_ops;