diff mbox series

multipathd: Set CPUWeight to 1000

Message ID 20240415180646.1903335-1-bmarzins@redhat.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show
Series multipathd: Set CPUWeight to 1000 | expand

Commit Message

Benjamin Marzinski April 15, 2024, 6:06 p.m. UTC
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.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
 multipathd/multipathd.service.in | 1 +
 1 file changed, 1 insertion(+)

Comments

Martin Wilck April 15, 2024, 6:18 p.m. UTC | #1
On Mon, 2024-04-15 at 14:06 -0400, Benjamin Marzinski wrote:
> 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.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
> ---
>  multipathd/multipathd.service.in | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Martin Wilck <mwilck@suse.com>

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

Martin


> 
> diff --git a/multipathd/multipathd.service.in
> b/multipathd/multipathd.service.in
> index 18bb367e..1b3fccd2 100644
> --- a/multipathd/multipathd.service.in
> +++ b/multipathd/multipathd.service.in
> @@ -20,6 +20,7 @@ ExecStart=/sbin/multipathd -d -s
>  ExecReload=/sbin/multipathd reconfigure
>  TasksMax=infinity
>  LimitRTPRIO=infinity
> +CPUWeight=1000
>  
>  [Install]
>  WantedBy=sysinit.target
Benjamin Marzinski April 15, 2024, 8:26 p.m. UTC | #2
On Mon, Apr 15, 2024 at 08:18:08PM +0200, Martin Wilck wrote:
> On Mon, 2024-04-15 at 14:06 -0400, Benjamin Marzinski wrote:
> > 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.
> > 
> > Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
> > ---
> >  multipathd/multipathd.service.in | 1 +
> >  1 file changed, 1 insertion(+)
> 
> Reviewed-by: Martin Wilck <mwilck@suse.com>
> 
> But let's also decrease the default value for LimitRTPRIO.

Sure.

> 
> Martin
> 
> 
> > 
> > diff --git a/multipathd/multipathd.service.in
> > b/multipathd/multipathd.service.in
> > index 18bb367e..1b3fccd2 100644
> > --- a/multipathd/multipathd.service.in
> > +++ b/multipathd/multipathd.service.in
> > @@ -20,6 +20,7 @@ ExecStart=/sbin/multipathd -d -s
> >  ExecReload=/sbin/multipathd reconfigure
> >  TasksMax=infinity
> >  LimitRTPRIO=infinity
> > +CPUWeight=1000
> >  
> >  [Install]
> >  WantedBy=sysinit.target
diff mbox series

Patch

diff --git a/multipathd/multipathd.service.in b/multipathd/multipathd.service.in
index 18bb367e..1b3fccd2 100644
--- a/multipathd/multipathd.service.in
+++ b/multipathd/multipathd.service.in
@@ -20,6 +20,7 @@  ExecStart=/sbin/multipathd -d -s
 ExecReload=/sbin/multipathd reconfigure
 TasksMax=infinity
 LimitRTPRIO=infinity
+CPUWeight=1000
 
 [Install]
 WantedBy=sysinit.target