summaryrefslogtreecommitdiff
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-02-17 17:51:27 +0100
committerLennart Poettering <lennart@poettering.net>2021-02-18 22:39:37 +0100
commitd9d3f05def0057cc064a05f8cbfb5f398779cd8c (patch)
treec0f9a610b20970ccd122bf1d373334792d0a1bd4 /src/core/cgroup.h
parent1ead0b2a7973782f4bacaab2d9deed94ac69d867 (diff)
downloadsystemd-d9d3f05def0057cc064a05f8cbfb5f398779cd8c.tar.gz
core: use our usual UINT32_MAX scaling for OOMD limits
So far OOMD limits used permyriads, as an upgrade from the original percent. The rest of our codebase typically scales stuff relative to UINT32_MAX. Let's clean this up, an make sure this happens here too. This is particularly relevant, as this is exposed in unit files and API, and before we mark this stable we should get the APIs right.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index 8183551420..fa79ba1523 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -163,7 +163,7 @@ struct CGroupContext {
/* Settings for systemd-oomd */
ManagedOOMMode moom_swap;
ManagedOOMMode moom_mem_pressure;
- uint32_t moom_mem_pressure_limit_permyriad;
+ uint32_t moom_mem_pressure_limit; /* Normalized to 2^32-1 == 100% */
ManagedOOMPreference moom_preference;
};