pid1: add unit file settings to control memory pressure logic

This commit is contained in:
Lennart Poettering
2023-03-01 09:43:23 +01:00
parent 29e6b0c171
commit 6bb0084204
22 changed files with 362 additions and 16 deletions
+5 -1
View File
@@ -460,7 +460,8 @@ static int bus_append_cgroup_property(sd_bus_message *m, const char *field, cons
"Slice",
"ManagedOOMSwap",
"ManagedOOMMemoryPressure",
"ManagedOOMPreference"))
"ManagedOOMPreference",
"MemoryPressureWatch"))
return bus_append_string(m, field, eq);
if (STR_IN_SET(field, "ManagedOOMMemoryPressureLimit")) {
@@ -913,6 +914,9 @@ static int bus_append_cgroup_property(sd_bus_message *m, const char *field, cons
return 1;
}
if (streq(field, "MemoryPressureThresholdSec"))
return bus_append_parse_sec_rename(m, field, eq);
return 0;
}