« Previous | Next » 

Revision 52eedfb5


Added by Matthew Dillon over 8 years ago

Further isolate the user process scheduler data by moving more variables
from the globaldata structure to the scheduler module(s).

Make the user process scheduler MP safe. Make the LWKT 'pull thread'
(to a different cpu) feature MP safe. Streamline the user process
scheduler API.

Do a near complete rewrite of the BSD4 scheduler. Remote reschedules
(reschedules to other cpus), cpu pickup of queued processes, and locality
of reference handling should make the new BSD4 scheduler a lot more

Add a demonstration user process scheduler called 'dummy'
(kern/usched_dummy.c). Add a kenv variable 'kern.user_scheduler' that
can be set to the desired scheduler on boot (i.e. 'bsd4' or 'dummy').

NOTE: Until more of the system is taken out from under the MP lock,
these changes actually slow things down slightly. Buildworlds are
about ~2.7% slower.


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Review assignments Add