Re: how to put in higher priority a thread in rt-kernel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 09 Sep 2012 22:23:08 -0700
Gregoire Gentil <gregoire@xxxxxxxxxx> wrote:

> 
> 
> On 09/09/2012 08:52 PM, Mike Galbraith wrote:
> > On Sun, 2012-09-09 at 15:51 -0700, Gregoire Gentil wrote:
> >> In other words, is there an equivalent of
> >> sched_setscheduler for thread inside the kernel?
> >
> > Yup, and it's even called sched_setscheduler() :)
> >
> > -Mike
> Thanks for answering! I don't think that my question is the smartest one 
> ever asked on this mailing list ;-)
>

I've heard worse :).

My only comment is that I'd think long and hard before setting my
interrupt thread up at fifo:99, since that's where the migration and
watchdog live and you really don't want to impact them. 

Are you trying to have your interrupt serviced ahead of all the other
system interrupts or just trying to be up above the SCHED_OTHER
threads? If the former, then you just need to be up above wherever the
IRQ threads live (default is fifo:50). If the later then fifo:2 would
be a safe bet.  

Clark

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux