RFC: Applet chrt, _POSIX_PRIORITY_SCHEDULING

Rich Felker dalias at aerifal.cx
Tue Jul 9 05:43:38 UTC 2013


On Tue, Jul 09, 2013 at 07:16:51AM +0200, Harald Becker wrote:
> Hi Bernhard !
> 
> >> > Bugzilla Bug #14829 decribe the underlying problem.
> >> > http://sourceware.org/bugzilla/show_bug.cgi?id=14829
> >> Note that, as discussed in the glibc bug tracker, glibc may in
> >> the future remove the definition of _POSIX_PRIORITY_SCHEDULING
> >> since Linux cannot satisfy its requirements. ...
> >
> >Not exactly news, guess why I put this warning in..
> >
> >I'll remove the warning tomorrow.
> 
> Having a warning is not wrong. IMO we should have such a warning
> if _POSIX_PRIORITY_SCHEDULING is missing, but it should be a more
> informational message, like:
> 
> "process scheduling may not behave in conformance with POSIX"

The amusing part is that the chrt command is probably interesting ONLY
in the case where the sched_* functions are non-conforming. The POSIX
versions are virtual no-ops on systems without the process contention
scope (all they do is save and read back some data addressed by pid)
and nearly no-ops even with the process contention scope.

As such, I don't think the warning here makes sense...

Rich


More information about the busybox mailing list