Thanks Peter, I was hoping that wouldn't be necessary - eg, in Solaris you
can use priocntl to change processes into RT class, but I can't find
anything equivalent - chrt is as close as I can find.

Interestingly if you use top, there are kernel tasks listed as RT in the PRI
column, and if you use "ps axl" the PRI is -100, perhaps there's a way I can
force the PRI value beyond what's allowed by nice?




On Wed, Apr 23, 2008 at 1:55 PM, Peter Chubb <[EMAIL PROTECTED]>
wrote:

> >>>>> "Tony" == Tony Sceats <[EMAIL PROTECTED]> writes:
>
> Tony> Hi Slug, Does anyone know how I would force a process into the
> Tony> Real Time scheduling class in Linux? chrt seems to modify RT
> Tony> parameters once the process is in the RT class, but I can't seem
> Tony> to find how to put one in there outside of it being explicitly
> Tony> set within code, which is not an option in this case.
>
> Call setscheduler() from within the process, or make a small wrapper
> that calls setscheduler() then execs the real program.    Beware, a
> real-time process that isn't designed to be realtime can make your
> machine unusable.
>
> Tony> (I know it's only soft real time without the requisite kernel,
> Tony> but I would like to play anyway ;)
>
>
> Tony> Thanks -- SLUG - Sydney Linux User's Group Mailing List -
> Tony> http://slug.org.au/ Subscription info and FAQs:
> Tony> http://slug.org.au/faq/mailinglists.html
> --
> Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT
> gelato.unsw.edu.au
> http://www.ertos.nicta.com.au           ERTOS within National ICT
> Australia
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to