freebsd-nq/sys/amd64/amd64
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
..
amd64_mem.c Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
amd64-gdbstub.c Remove count for NSIO. The only places it was used it were incorrect. 2001-01-31 10:54:45 +00:00
apic_vector.S - Make astpending and need_resched process attributes rather than CPU 2001-02-10 02:20:34 +00:00
atomic.c Introduce atomic_cmpset_int() and atomic_cmpset_long() from SMPng a 2000-09-06 11:21:14 +00:00
autoconf.c Clean up some leftovers from the root mount cleanup that was done some 2001-02-04 15:35:10 +00:00
bios.c Remove stray #include "isa.h" 2001-01-29 08:33:55 +00:00
busdma_machdep.c - Catch up to the new swi API changes: 2001-02-09 17:46:35 +00:00
cpu_switch.S Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
db_disasm.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_interface.c Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables 2001-01-10 04:43:51 +00:00
db_trace.c When SMPng was first committed, we removed 'cpl' from the interrupt 2001-02-07 22:41:47 +00:00
elf_machdep.c Change incorrect NULLs to 0s 1999-12-21 11:14:12 +00:00
exception.s RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
exception.S RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
fpu.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
genassym.c Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
identcpu.c Stop doing runtime checking on i386 cpus for cpu class. The cpu is 2001-01-16 09:10:34 +00:00
in_cksum.c Ansify and fix warnings. 2000-09-29 16:53:39 +00:00
initcpu.c Fix some further english grammar and typo's. 2000-11-08 12:00:05 +00:00
legacy.c Use the MI ithread helper functions in the x86 interrupt code. 2001-02-09 17:47:44 +00:00
locore.s - Remove compatibility macros for accessing per-cpu variables. 2001-01-11 14:46:26 +00:00
locore.S - Remove compatibility macros for accessing per-cpu variables. 2001-01-11 14:46:26 +00:00
machdep.c Move the initailization of the proc lock for proc0 very early into the MD 2001-02-09 16:25:16 +00:00
mem.c Duh. Fix a fatfingered patch. 2000-06-25 19:06:48 +00:00
mp_machdep.c Woops, remove an obsolete reference to gd_cpu_lockid. 2001-02-09 16:13:57 +00:00
mpboot.S Use _lapic+offset to access the local apic from assembly language 2000-12-14 04:16:16 +00:00
mptable.c Woops, remove an obsolete reference to gd_cpu_lockid. 2001-02-09 16:13:57 +00:00
nexus.c Use the MI ithread helper functions in the x86 interrupt code. 2001-02-09 17:47:44 +00:00
pmap.c Remove unnecessary locking to protect the p_upages_obj and p_addr 2001-01-30 00:35:35 +00:00
prof_machdep.c Previous commit changing SYSCTL_HANDLER_ARGS violated KNF. 2000-07-04 11:25:35 +00:00
support.s Use #ifdef DEV_NPX from opt_npx.h instead of #if NNPX > 0 from npx.h 2001-01-19 13:19:02 +00:00
support.S Use #ifdef DEV_NPX from opt_npx.h instead of #if NNPX > 0 from npx.h 2001-01-19 13:19:02 +00:00
swtch.s Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
sys_machdep.c Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables 2001-01-10 04:43:51 +00:00
trap.c Implement a unified run queue and adjust priority levels accordingly. 2001-02-12 00:20:08 +00:00
tsc.c Catch up to changes to inthand_add(). 2001-02-09 17:48:33 +00:00
vm_machdep.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00