Re: [PATCH] multipathd: make multipathd set priority to RLIMIT_RTPRIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2024-03-29 at 14:28 -0400, Benjamin Marzinski wrote:
> With this change, if the SCHED_RT_PRIO compiler flag is not set,
> multipathd will call getrlimit(RLIMIT_RTPRIO, ...) and look at the
> hard
> limit. It it's 0, multipath will do nothing. Otherwise it will change
> its scheduling policy to SCHED_RR and its priority to the hard limit.
> 
> This allows users to change the priority of that multipathd runs with
> by
> adding
> 
> LimitRTPRIO=<prio>
> 
> to the [Service] section of the multipathd.service unit file. Setting
> LimitRTPRIO=0 will make multipathd run as a normal process, while
> setting LimitRTPRIO=infinity will make it use the maximum SCHED_RR
> prio,
> which is 99.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx>

This looks good to me, but do we really need both the RLIMIT_RTPRIO and
the SCHED_RT_PRIO mechanism?

Thanks,
Martin






[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux