Re: SCHED_DEADLINE, sched_getscheduler(), and sched_getparam()

2014-05-13 Thread Michael Kerrisk (man-pages)
On Mon, May 12, 2014 at 10:50 PM, Peter Zijlstra wrote: > On Mon, May 12, 2014 at 09:42:44PM +0200, Michael Kerrisk (man-pages) wrote: >> > Hmm,.. maybe. Can we still change this? Again, maybe, there's not really >> > that much userspace that relies on this. >> >> I think the sched_getparam() chan

Re: SCHED_DEADLINE, sched_getscheduler(), and sched_getparam()

2014-05-12 Thread Peter Zijlstra
On Mon, May 12, 2014 at 09:42:44PM +0200, Michael Kerrisk (man-pages) wrote: > > Hmm,.. maybe. Can we still change this? Again, maybe, there's not really > > that much userspace that relies on this. > > I think the sched_getparam() change is worthwhile (and the patches > could (should?) be marked

Re: SCHED_DEADLINE, sched_getscheduler(), and sched_getparam()

2014-05-12 Thread Michael Kerrisk (man-pages)
On 05/12/2014 05:25 PM, Peter Zijlstra wrote: > On Mon, May 12, 2014 at 02:33:42PM +0200, Michael Kerrisk (man-pages) wrote: >>> I'm a proponent of fail hard instead of fail silently and muddle on. >>> And while we can fully and correctly return sched_getscheduler() we >>> cannot do so for sched_ge

Re: SCHED_DEADLINE, sched_getscheduler(), and sched_getparam()

2014-05-12 Thread Peter Zijlstra
On Mon, May 12, 2014 at 02:33:42PM +0200, Michael Kerrisk (man-pages) wrote: > > I'm a proponent of fail hard instead of fail silently and muddle on. > > And while we can fully and correctly return sched_getscheduler() we > > cannot do so for sched_getparam(). > > > > Returning sched_param::sched_p

Re: SCHED_DEADLINE, sched_getscheduler(), and sched_getparam()

2014-05-12 Thread Michael Kerrisk (man-pages)
On Mon, May 12, 2014 at 2:24 PM, Peter Zijlstra wrote: > On Mon, May 12, 2014 at 02:09:58PM +0200, Michael Kerrisk (man-pages) wrote: >> Hi Peter, >> >> Looking at the code of sched_getparam() and sched_setscheduler() (to >> see what might need to land in the man pagea with respect to >> SCHED_DEA

Re: SCHED_DEADLINE, sched_getscheduler(), and sched_getparam()

2014-05-12 Thread Peter Zijlstra
On Mon, May 12, 2014 at 02:09:58PM +0200, Michael Kerrisk (man-pages) wrote: > Hi Peter, > > Looking at the code of sched_getparam() and sched_setscheduler() (to > see what might need to land in the man pagea with respect to > SCHED_DEADLINE changes), I see that the former fails (EINVAL) if the >

SCHED_DEADLINE, sched_getscheduler(), and sched_getparam()

2014-05-12 Thread Michael Kerrisk (man-pages)
Hi Peter, Looking at the code of sched_getparam() and sched_setscheduler() (to see what might need to land in the man pagea with respect to SCHED_DEADLINE changes), I see that the former fails (EINVAL) if the target is a SCHED_DEADLINE process, while the latter succeeds (returning SCHED_DEADLINE).