CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2017/02/09 03:27:03

Modified files:
        sys/kern       : sched_bsd.c 

Log message:
Do no select a CPU to execute the current thread when being preempt()ed.

Calling sched_choosecpu() at this moment often result in moving the thread
to a different CPU.  This does not help the scheduler and creates a domino
effect, resulting in kernel thread moving to other CPUs.

Tested by many without performance impact.  Simon Mages measured a small
performance improvement and a smaller variance with an http proxy.

Discussed with kettenis@, ok martijn@, beck@, visa@

Reply via email to