Skip to contentSkip to conversation

multipathd: Set CPUWeight to 1000 and LimitRTPRIO to 10

PATCH In review Benjamin Marzinski 2 participants 2 messages Apr 15, 2024 – Apr 16, 2024 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH v2 1/1 multipathd: Set CPUWeight to 1000 and LimitRTPRIO to 10

If multipathd doesn't become a real time process, it was scheduled as a normal process, without any priority increase. Bump up the CPUWeight so that even as a normal process, it will still run with increased priority.

If multipathd did become a real time process, it set itself to the highest priority, which is excessive. A priority of 10 is plenty.

---

Notes:
v2: Lowered LimitRTPRIO as suggested by Martin Wilck.

 multipathd/multipathd.service.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
multipathd/multipathd.service.in +2 -1
index 18bb367e..a63ddd9a 100644
@@ -19,7 +19,8 @@ NotifyAccess=main
 ExecStart=/sbin/multipathd -d -s
 ExecReload=/sbin/multipathd reconfigure
 TasksMax=infinity
-LimitRTPRIO=infinity
+LimitRTPRIO=10
+CPUWeight=1000
 
 [Install]
 WantedBy=sysinit.target
Signature · 1 line
2.43.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Benjamin Marzinski

If multipathd doesn't become a real time process, it was scheduled as a
normal process, without any priority increase. Bump up the CPUWeight so
that even as a normal process, it will still run with increased priority.

If multipathd did become a real time process, it set itself to the highest priority, which is excessive. A priority of 10 is plenty.

Quoted 23 lines

---

Notes:
    v2: Lowered LimitRTPRIO as suggested by Martin Wilck.

 multipathd/multipathd.service.in | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)
multipathd/multipathd.service.in +0 -0
index 18bb367e..a63ddd9a 100644
@@ -19,7 +19,8 @@ NotifyAccess=main

 ExecStart=/sbin/multipathd -d -s
 ExecReload=/sbin/multipathd reconfigure
 TasksMax=infinity

multipathd/multipathd.service.in +2 -1
-LimitRTPRIO=infinity
+LimitRTPRIO=10
+CPUWeight=1000


 [Install]
 WantedBy=sysinit.target