[PATCH] for SCHED_ULE & libpthread issue (was Re: I like SCHED_4BSD)

Brian F. Feldman green at freebsd.org
Mon Mar 15 09:17:50 PST 2004


Peter Schultz <pmes at bis.midco.net> wrote:
> Taku YAMAMOTO wrote:
> > Unfortunately, due to over-optimization in sched_switch(), SCHED_ULE doesn't
> > give reasonable CPU time to the threads which are using scheduler activation.
> > 
> > Detailed analisis is described in my previous message posted to current@:
> > 	"SCHED_ULE sometimes puts P_SA processes into ksq_next unnecessarily"
> > 	<20040213063139.71298ea9.taku at cent.saitama-u.ac.jp>
> >  or
> > 	http://docs.freebsd.org/cgi/mid.cgi?20040213063139.71298ea9.taku
> > , which didn't get broader audience :(
> > 
> > Until the problem is fully addressed, I will propose following patch
> > to be applied. (the least intrusive one attached in the former message)
> > 
> 
> This patch improves interactivity under heavy load very much.

My system is VERY well-behaved using this change.  (It's 2xSMP).

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green at FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\




More information about the freebsd-current mailing list