1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/sys
Jake Burkholder d5a08a6065 Implement a unified run queue and adjust priority levels accordingly.
- All processes go into the same array of queues, with different
  scheduling classes using different portions of the array.  This
  allows user processes to have their priorities propogated up into
  interrupt thread range if need be.
- I chose 64 run queues as an arbitrary number that is greater than
  32.  We used to have 4 separate arrays of 32 queues each, so this
  may not be optimal.  The new run queue code was written with this
  in mind; changing the number of run queues only requires changing
  constants in runq.h and adjusting the priority levels.
- The new run queue code takes the run queue as a parameter.  This
  is intended to be used to create per-cpu run queues.  Implement
  wrappers for compatibility with the old interface which pass in
  the global run queue structure.
- Group the priority level, user priority, native priority (before
  propogation) and the scheduling class into a struct priority.
- Change any hard coded priority levels that I found to use
  symbolic constants (TTIPRI and TTOPRI).
- Remove the curpriority global variable and use that of curproc.
  This was used to detect when a process' priority had lowered and
  it should yield.  We now effectively yield on every interrupt.
- Activate propogate_priority().  It should now have the desired
  effect without needing to also propogate the scheduling class.
- Temporarily comment out the call to vm_page_zero_idle() in the
  idle loop.  It interfered with propogate_priority() because
  the idle process needed to do a non-blocking acquire of Giant
  and then other processes would try to propogate their priority
  onto it.  The idle process should not do anything except idle.
  vm_page_zero_idle() will return in the form of an idle priority
  kernel thread which is woken up at apprioriate times by the vm
  system.
- Update struct kinfo_proc to the new priority interface.  Deliberately
  change its size by adjusting the spare fields.  It remained the same
  size, but the layout has changed, so userland processes that use it
  would parse the data incorrectly.  The size constraint should really
  be changed to an arbitrary version number.  Also add a debug.sizeof
  sysctl node for struct kinfo_proc.
2001-02-12 00:20:08 +00:00
..
alpha Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
amd64 Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
arm/include RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
boot Fix typo: seperate -> separate. 2001-02-06 11:21:58 +00:00
cam 1. The key SSD_KEY_RECOVERED_ERROR is not an error at all and should 2001-02-11 23:46:54 +00:00
coda Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
compat Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
compile
conf Add recently added PHY drivers sources. 2001-02-08 04:58:17 +00:00
contrib/dev Patch the reintroduced (~0 << 32) == 1 bug with a cryptic but functional 2001-02-02 08:31:50 +00:00
crypto Initial import of AES algorithm code (aka Rijndael) from KAME. 2000-10-30 11:03:32 +00:00
ddb Use macro API for <sys/queue.h> 2000-12-30 22:06:19 +00:00
dev Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
fs Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
geom Fix a braino in ccd's clone routine. 2001-01-29 06:18:14 +00:00
gnu Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
i4b Fix typo: seperate -> separate. 2001-02-06 11:21:58 +00:00
i386 Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
ia64 Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
isa RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
isofs/cd9660 Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
kern Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
libkern RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
miscfs Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
modules Add pc98 support. 2001-02-10 12:52:56 +00:00
msdosfs Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
net Sync with the bridge/dummynet/ipfw code already tested in stable. 2001-02-10 00:10:18 +00:00
netatalk Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
netatm * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
netgraph Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
netinet Clean up RST ratelimiting. Previously, ratelimiting occured before tests 2001-02-11 07:39:51 +00:00
netinet6 Fix typo: compatability -> compatibility. 2001-02-06 12:05:58 +00:00
netipx Another round of the <sys/queue.h> FOREACH transmogriffer. 2001-02-04 16:08:18 +00:00
netkey fixed possibility of panic at key_acquire(). 2001-01-14 17:25:08 +00:00
netnatm Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
netncp Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
netns * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
nfs Fix some problems that were introduced in revision 1.97. Instead 2001-02-09 13:24:06 +00:00
nfsclient Enable use of DHCP extensions. 2001-02-02 02:35:40 +00:00
nfsserver Fix some problems that were introduced in revision 1.97. Instead 2001-02-09 13:24:06 +00:00
ntfs Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
nwfs Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
pc98 RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
pccard Move ti1031 to the 16-bit bridge section 2001-02-07 01:16:40 +00:00
pci Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
posix4 Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
powerpc RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
rpc
svr4 This patchset fixes a large number of file descriptor race conditions. 2000-11-18 21:01:04 +00:00
sys Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
tools Simplify this a bit so that it doesn't have to generate silly redundant 2000-12-06 06:59:38 +00:00
ufs Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
vm Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
Makefile