diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-11-17 10:00:12 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-12-01 09:53:18 +0100 |
commit | 81513b382b24a7f3602987f71042d075ca27d1a5 (patch) | |
tree | f5e91164c685134f8ecaf7b175365b1b97a8c70f /src/shared/condition.h | |
parent | 99f8a6d7f58c9edb00b3d214b685987444dc3931 (diff) | |
download | systemd-81513b382b24a7f3602987f71042d075ca27d1a5.tar.gz |
core: add Condition[Memory/CPU/IO]Pressure
By default checks PSI on /proc/pressure, and causes a unit to be skipped
if the threshold is above the given configuration for the avg300
measurement.
Also allow to pass a custom timespan, and a particular slice unit to
check under.
Fixes #20139
Diffstat (limited to 'src/shared/condition.h')
-rw-r--r-- | src/shared/condition.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/condition.h b/src/shared/condition.h index 3a5420c402..2bbb7fa7f4 100644 --- a/src/shared/condition.h +++ b/src/shared/condition.h @@ -22,6 +22,9 @@ typedef enum ConditionType { CONDITION_ENVIRONMENT, CONDITION_CPU_FEATURE, CONDITION_OS_RELEASE, + CONDITION_MEMORY_PRESSURE, + CONDITION_CPU_PRESSURE, + CONDITION_IO_PRESSURE, CONDITION_NEEDS_UPDATE, CONDITION_FIRST_BOOT, |