Skip to contentSkip to conversation

multipathd: Set CPUWeight to 1000

PATCH Superseded Benjamin Marzinski 2 participants 3 messages Apr 15, 2024 Device mapper

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 multipathd: Set CPUWeight to 1000

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.

---
 multipathd/multipathd.service.in | 1 +
 1 file changed, 1 insertion(+)
multipathd/multipathd.service.in +1 -0
index 18bb367e..1b3fccd2 100644
@@ -20,6 +20,7 @@ ExecStart=/sbin/multipathd -d -s
 ExecReload=/sbin/multipathd reconfigure
 TasksMax=infinity
 LimitRTPRIO=infinity
+CPUWeight=1000
 
 [Install]
 WantedBy=sysinit.target
Signature · 1 line
2.43.0
Reviewed-by on v1 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.

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

 1 file changed, 1 insertion(+)

But let's also decrease the default value for LimitRTPRIO.

Martin

Quoted 14 lines
multipathd/multipathd.service.in +0 -0
index 18bb367e..1b3fccd2 100644
@@ -20,6 +20,7 @@ ExecStart=/sbin/multipathd -d -s

 ExecReload=/sbin/multipathd reconfigure
 TasksMax=infinity
 LimitRTPRIO=infinity
+CPUWeight=1000

 [Install]
 WantedBy=sysinit.target

author maintainer
#2 lore raw
Quoted 8 lines · Martin Wilck
Quoted 7 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.

Quoted 8 lines
Quoted 4 lines

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

 1 file changed, 1 insertion(+)

But let's also decrease the default value for LimitRTPRIO.

Sure.

Quoted 18 lines

Martin

Quoted 14 lines
multipathd/multipathd.service.in +0 -0
index 18bb367e..1b3fccd2 100644
@@ -20,6 +20,7 @@ ExecStart=/sbin/multipathd -d -s

 ExecReload=/sbin/multipathd reconfigure
 TasksMax=infinity
 LimitRTPRIO=infinity
+CPUWeight=1000

 [Install]
 WantedBy=sysinit.target