Hi,

On Fri, 2008-06-27 at 19:41:33 +0200, Raphael Hertzog wrote:
> tags 175740 - patch moreinfo
> thanks
> 
> On Tue, 07 Jan 2003, Casper Gielen wrote:
> > This patch allows the start-stop-daemon to start processes from the realtime
> > scheduler. It uses the "--realtime" and "-l" options. This is usefull
> > for processes that never should be unable to run (eg high resolution 
> > monitoring,
> > high quality audio jobs, system essentials) 
> > 
> > Example:
> > start-stop-daemon --start --quiet --realtime 1 --pidfile /var/run/sshd.pid
> > - --exec /usr/sbin/sshd
> 
> What does it gain us compared to chrt 1 <command line> ?

Well I guess the same could be said about the nice level or the umask.
It's a matter of convenience.

> > - -It is not (yet) possible to select a scheduling policy, it defaults to
> > SCHED_RR (Round Robin).
> 
> Until this is fixed, this patch should not be considered for inclusion.
> Furthermore as already mentioned, please protect the relevant
> calls by #ifdef _POSIX_PRIORITY_SCHEDULING as documented by the
> manual page. And don't forget to update the start-stop-daemon
> manual page too!
> 
> If you rework your patch following those remarks, I'm willing to
> apply it.

I actually wrote a patch for this some time ago, which supports
“-P, --schedule <policy:prio>”, where policy can be one of other, fifo
or rr. It just needs to fixes and should be ready to push. Although
the schedule option might be a bit confusing given the current
argument names for “-R, --retry”.

regards,
guillem



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to