]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: in dump, show controllers in "Delegate:"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 9 Mar 2023 08:27:31 +0000 (09:27 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 9 Mar 2023 12:36:38 +0000 (21:36 +0900)
commit7b3693e4e4c9cae50fca65136278a62fae11327e
tree918a2012fdae25765e8ef9b6f1e4990389333e55
parent5d2ab010dff42ccd5281c2b7ff60c4551fbcfbdf
manager: in dump, show controllers in "Delegate:"

After Delegate= was converted from boolean to a controller list, the dump
output was changed to have a separate line about the delegated controllers:

  ...
  DevicePolicy: auto
  DisableControllers:
  Delegate: yes
  ManagedOOMSwap: auto
  ManagedOOMMemoryPressure: auto
  ManagedOOMMemoryPressureLimit: 0.00%
  ManagedOOMPreference: none
  DelegateControllers: cpu memory pids
  ...

The line with "Delegate:" is redundant, it effectively shows if
"DelegateControllers:" is non-empty. It is nicer to keep the lines
about controllers adjacent. And to avoid duplicate output, Delegate:
will now show which controllers are enabled. This makes the output
for that line again match the configuration stanza Delegate=:

  DisableControllers:
  Delegate: cpu io memory pids
  ManagedOOMSwap: auto
  ManagedOOMMemoryPressure: auto
  ManagedOOMMemoryPressureLimit: 0.00%
  ManagedOOMPreference: none
  MemoryPressureWatch: auto
  MemoryPressureThresholdSec: 100ms

Dump output is for debugging, we don't need to maintain strict
backwards-compat.
src/core/cgroup.c