Re: Add $daemon_nice to rc.subr

2018-09-04 Thread Craig Skinner
Hi Thomas, This was previously discussed and rejected 5 years ago in thread: "Alter daemon scheduling priority with renice for rc.d" See: https://marc.info/?t=13874606661 Subsequently I found login.conf is perfect. Some examples: daemon-cellar:\ :priority=18:\ :tc=daemon:

Re: Add $daemon_nice to rc.subr

2018-09-04 Thread Stuart Henderson
On 2018/09/04 10:57, Thomas de Grivel wrote: > plus it's really 6 new lines in rc.subr, no big deal. 6 lines in rc.subr, but add this and someone will want to add something else (ulimit? setting environment variables?) and it's more, plus the accompanying documentation (which I think reduces the c

Re: Add $daemon_nice to rc.subr

2018-09-04 Thread Solène Rapenne
Le 2018-09-04 10:56, Thomas de Grivel a écrit : why ? why ? well all interactive process get a quarter range nice priority advance compared to all daemon tasks, at least for a laptop environment it really makes sense. sndiod and ntpd are unaffected by this change. you're right to criticize in

Re: Add $daemon_nice to rc.subr

2018-09-04 Thread Thomas de Grivel
plus it's really 6 new lines in rc.subr, no big deal. Le mar. 4 sept. 2018 à 10:53, Thomas de Grivel a écrit : > > why ? well all interactive process get a quarter range nice priority > advance compared to all daemon tasks, at least for a laptop > environment it really makes sense. sndiod and ntpd

Re: Add $daemon_nice to rc.subr

2018-09-04 Thread Thomas de Grivel
> why ? why ? well all interactive process get a quarter range nice priority advance compared to all daemon tasks, at least for a laptop environment it really makes sense. sndiod and ntpd are unaffected by this change. you're right to criticize in that I did not document my code, the point of thi

Re: Add $daemon_nice to rc.subr

2018-09-03 Thread Alexandre Ratchov
On Tue, Sep 04, 2018 at 04:58:53AM +0200, Thomas de Grivel wrote: > > And I still feel the default nice priority of 10 is rather a good > idea. why?

Re: Add $daemon_nice to rc.subr

2018-09-03 Thread Antoine Jacoutot
On Tue, Sep 04, 2018 at 04:58:53AM +0200, Thomas de Grivel wrote: > Thanks, good to know. > > But if I actually wanted per daemon priorities with settable > configuration in rc.conf.local how would I get that ? And I still feel You would do what the man page instructs you to do in login.conf: my

Re: Add $daemon_nice to rc.subr

2018-09-03 Thread Thomas de Grivel
Thanks, good to know. But if I actually wanted per daemon priorities with settable configuration in rc.conf.local how would I get that ? And I still feel the default nice priority of 10 is rather a good idea. Le lun. 3 sept. 2018 à 23:10, Antoine Jacoutot a écrit : > > On Mon, Sep 03, 2018 at 10:

Re: Add $daemon_nice to rc.subr

2018-09-03 Thread Antoine Jacoutot
On Mon, Sep 03, 2018 at 10:34:51PM +0200, Thomas de Grivel wrote: > Hello, Hi. > Following patch allows sysadmins to configure nice values for RC daemons. > Default nice value is set to 10 as I wish to prioritize interactive > applications over system daemons and I think most probably do too. >

Add $daemon_nice to rc.subr

2018-09-03 Thread Thomas de Grivel
Hello, Following patch allows sysadmins to configure nice values for RC daemons. Default nice value is set to 10 as I wish to prioritize interactive applications over system daemons and I think most probably do too. It is based on OpenBSD 6.3 but might apply easily to later releases. Please let me