core: always enable CPU accounting; cgtop: drop cgv1 handling (#37448)
This commit is contained in:
@@ -249,12 +249,12 @@ systemctl revert "$UNIT_NAME"
|
||||
(! grep -r "IPAccounting=" "/etc/systemd/system.control/${UNIT_NAME}.d/")
|
||||
(! grep -r "MemoryMax=" "/etc/systemd/system.control/${UNIT_NAME}.d/")
|
||||
# Same stuff, but with --runtime, which should use /run
|
||||
systemctl set-property --runtime "$UNIT_NAME" CPUAccounting=no CPUQuota=10%
|
||||
systemctl set-property --runtime "$UNIT_NAME" IOAccounting=no CPUQuota=10%
|
||||
systemctl cat "$UNIT_NAME"
|
||||
grep -r "CPUAccounting=no" "/run/systemd/system.control/${UNIT_NAME}.d/"
|
||||
grep -r "IOAccounting=no" "/run/systemd/system.control/${UNIT_NAME}.d/"
|
||||
grep -r "CPUQuota=10.00%" "/run/systemd/system.control/${UNIT_NAME}.d/"
|
||||
systemctl revert "$UNIT_NAME"
|
||||
(! grep -r "CPUAccounting=" "/run/systemd/system.control/${UNIT_NAME}.d/")
|
||||
(! grep -r "IOAccounting=" "/run/systemd/system.control/${UNIT_NAME}.d/")
|
||||
(! grep -r "CPUQuota=" "/run/systemd/system.control/${UNIT_NAME}.d/")
|
||||
|
||||
# Failed-unit related tests
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
Description=Test slice for memory pressure kills
|
||||
|
||||
[Slice]
|
||||
CPUAccounting=true
|
||||
MemoryAccounting=true
|
||||
IOAccounting=true
|
||||
TasksAccounting=true
|
||||
|
||||
@@ -6,4 +6,3 @@ Description=Daughter Service
|
||||
Slice=parent.slice
|
||||
Type=oneshot
|
||||
ExecStart=true
|
||||
CPUAccounting=true
|
||||
|
||||
Reference in New Issue
Block a user