teknoraver / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone

Blame SOURCES/0227-Revert-user-delegate-cpu-controller-assign-weights-t.patch

2aacef
From a540b3e604d921200ee35f859770c9fbed6b669a Mon Sep 17 00:00:00 2001
2aacef
From: Michal Sekletar <msekleta@redhat.com>
2aacef
Date: Fri, 3 Mar 2023 10:58:37 +0100
2aacef
Subject: [PATCH] Revert "user: delegate cpu controller, assign weights to user
2aacef
 slices"
2aacef
2aacef
This reverts commit b8df7f8629cb310beac982a4779b27eabe5362c6.
2aacef
2aacef
Resolves: #2173996
2aacef
---
2aacef
 TODO                        | 2 --
2aacef
 units/user/app.slice        | 3 ---
2aacef
 units/user/background.slice | 3 ---
2aacef
 units/user/session.slice    | 3 ---
2aacef
 units/user@.service.in      | 2 +-
2aacef
 5 files changed, 1 insertion(+), 12 deletions(-)
2aacef
2aacef
diff --git a/TODO b/TODO
2aacef
index 560ec4bca4..66c008bff3 100644
2aacef
--- a/TODO
2aacef
+++ b/TODO
2aacef
@@ -1662,8 +1662,6 @@ Features:
2aacef
   - when reloading configuration, apply new cgroup configuration
2aacef
   - when recursively showing the cgroup hierarchy, optionally also show
2aacef
     the hierarchies of child processes
2aacef
-- add settings for cgroup.max.descendants and cgroup.max.depth,
2aacef
-  maybe use them for user@.service
2aacef
 
2aacef
 * transient units:
2aacef
   - add field to transient units that indicate whether systemd or somebody else saves/restores its settings, for integration with libvirt
2aacef
diff --git a/units/user/app.slice b/units/user/app.slice
2aacef
index eac50645a4..0c73135e17 100644
2aacef
--- a/units/user/app.slice
2aacef
+++ b/units/user/app.slice
2aacef
@@ -10,6 +10,3 @@
2aacef
 [Unit]
2aacef
 Description=User Application Slice
2aacef
 Documentation=man:systemd.special(7)
2aacef
-
2aacef
-[Slice]
2aacef
-CPUWeight=100
2aacef
diff --git a/units/user/background.slice b/units/user/background.slice
2aacef
index a9767753b3..8f2a0949bd 100644
2aacef
--- a/units/user/background.slice
2aacef
+++ b/units/user/background.slice
2aacef
@@ -10,6 +10,3 @@
2aacef
 [Unit]
2aacef
 Description=User Background Tasks Slice
2aacef
 Documentation=man:systemd.special(7)
2aacef
-
2aacef
-[Slice]
2aacef
-CPUWeight=30
2aacef
diff --git a/units/user/session.slice b/units/user/session.slice
2aacef
index aa12b7d03c..3d99d51bc5 100644
2aacef
--- a/units/user/session.slice
2aacef
+++ b/units/user/session.slice
2aacef
@@ -10,6 +10,3 @@
2aacef
 [Unit]
2aacef
 Description=User Core Session Slice
2aacef
 Documentation=man:systemd.special(7)
2aacef
-
2aacef
-[Slice]
2aacef
-CPUWeight=100
2aacef
diff --git a/units/user@.service.in b/units/user@.service.in
2aacef
index 1660de0326..efbd5dfbc8 100644
2aacef
--- a/units/user@.service.in
2aacef
+++ b/units/user@.service.in
2aacef
@@ -21,7 +21,7 @@ Type=notify
2aacef
 ExecStart={{ROOTLIBEXECDIR}}/systemd --user
2aacef
 Slice=user-%i.slice
2aacef
 KillMode=mixed
2aacef
-Delegate=pids memory cpu
2aacef
+Delegate=pids memory
2aacef
 TasksMax=infinity
2aacef
 TimeoutStopSec=120s
2aacef
 KeyringMode=inherit