summaryrefslogtreecommitdiff
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2020-03-09 15:09:17 -0700
committerAnita Zhang <the.anitazha@gmail.com>2020-10-07 16:17:23 -0700
commit4d824a4e0b008a359adda0e960706316f207047e (patch)
tree04c5b68e821899102206ae1be6746632aa96d9cd /src/core/cgroup.h
parent5177cb0a9add4ae568cff6e6f7c2b3c77760c343 (diff)
downloadsystemd-4d824a4e0b008a359adda0e960706316f207047e.tar.gz
core: add ManagedOOM*= properties to configure systemd-oomd on the unit
This adds the hook ups so it can be read with the usual systemd utilities. Used in later commits by sytemd-oomd.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index 9ac5c8bfc0..1f592ef559 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -159,6 +159,11 @@ struct CGroupContext {
/* Common */
TasksMax tasks_max;
+
+ /* Settings for systemd-oomd */
+ ManagedOOMMode moom_swap;
+ ManagedOOMMode moom_mem_pressure;
+ int moom_mem_pressure_limit;
};
/* Used when querying IP accounting data */