cvs commit: src/sys/kern sched_ule.c

Jeff Roberson jroberson at chesapeake.net
Fri Apr 4 01:23:40 UTC 2008


On Fri, 4 Apr 2008, Jeff Roberson wrote:

> jeff        2008-04-04 01:16:18 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/kern             sched_ule.c
>  Log:
>   - Allow static_boost to specify no boost with '0', traditional kernel
>     fixed pri boost with '1' or any priority less than the current thread's
>     priority with a value greater than two.  Default the boost to
>     PRI_MIN_TIMESHARE to prevent regular user-space threads from starving
>     threads in the kernel.  This prevents these user-threads from also
>     being scheduled as if they are high fixed-priority kernel threads.

This is one of those unfortunate cases where one setting doesn't work for 
everything and I just had to pick a value in the middle somewhere that 
makes sense.  I am likely to remove this tunable before 8.0 is complete 
but if you notice any serious regressions please try setting 
kern.sched.static_boost = 1.

Thanks,
Jeff

>   - Restore the setting of lowpri in tdq_choose().  It has to be either here
>     or in sched_switch().  I accidentally removed it from both places.
>
>  Tested by:      kris
>
>  Revision  Changes    Path
>  1.240     +6 -2      src/sys/kern/sched_ule.c
>


More information about the cvs-src mailing list