Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2001 16:20:08 -0800 (PST)
From:      Jake Burkholder <jake@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/alpha/alpha trap.c src/sys/dev/acpica/Osd OsdSchedule.c src/sys/i386/i386 genassym.c swtch.s trap.c src/sys/ia64/ia64 trap.c src/sys/kern init_main.c kern_condvar.c kern_idle.c kern_intr.c kern_mib.c kern_mutex.c kern_proc.c ...
Message-ID:  <200102120020.f1C0K8N72721@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jake        2001/02/11 16:20:08 PST

  Modified files:
    sys/alpha/alpha      trap.c 
    sys/dev/acpica/Osd   OsdSchedule.c 
    sys/i386/i386        genassym.c swtch.s trap.c 
    sys/ia64/ia64        trap.c 
    sys/kern             init_main.c kern_condvar.c kern_idle.c 
                         kern_intr.c kern_mib.c kern_mutex.c 
                         kern_proc.c kern_resource.c kern_sig.c 
                         kern_subr.c kern_switch.c kern_synch.c 
    sys/posix4           ksched.c 
    sys/sys              ktr.h param.h proc.h rtprio.h systm.h 
                         tty.h user.h 
    sys/ufs/ffs          ffs_snapshot.c 
    sys/vm               vm_glue.c vm_meter.c 
  Added files:
    sys/sys              priority.h runq.h 
  Log:
  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.
  
  Revision  Changes    Path
  1.47      +2 -3      src/sys/alpha/alpha/trap.c
  1.7       +2 -2      src/sys/dev/acpica/Osd/OsdSchedule.c
  1.105     +2 -4      src/sys/i386/i386/genassym.c
  1.109     +4 -18     src/sys/i386/i386/swtch.s
  1.175     +2 -3      src/sys/i386/i386/trap.c
  1.13      +2 -3      src/sys/ia64/ia64/trap.c
  1.156     +4 -3      src/sys/kern/init_main.c
  1.4       +2 -6      src/sys/kern/kern_condvar.c
  1.14      +3 -1      src/sys/kern/kern_idle.c
  1.40      +7 -7      src/sys/kern/kern_intr.c
  1.38      +5 -1      src/sys/kern/kern_mib.c
  1.45      +17 -42    src/sys/kern/kern_mutex.c
  1.86      +2 -5      src/sys/kern/kern_proc.c
  1.73      +50 -16    src/sys/kern/kern_resource.c
  1.108     +3 -3      src/sys/kern/kern_sig.c
  1.41      +2 -2      src/sys/kern/kern_subr.c
  1.10      +165 -183  src/sys/kern/kern_switch.c
  1.127     +17 -59    src/sys/kern/kern_synch.c
  1.10      +11 -6     src/sys/posix4/ksched.c
  1.7       +2 -1      src/sys/sys/ktr.h
  1.89      +2 -19     src/sys/sys/param.h
  1.149     +8 -16     src/sys/sys/proc.h
  1.11      +17 -30    src/sys/sys/rtprio.h
  1.134     +1 -3      src/sys/sys/systm.h
  1.58      +3 -3      src/sys/sys/tty.h
  1.30      +5 -8      src/sys/sys/user.h
  1.10      +3 -3      src/sys/ufs/ffs/ffs_snapshot.c
  1.108     +3 -3      src/sys/vm/vm_glue.c
  1.48      +4 -3      src/sys/vm/vm_meter.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102120020.f1C0K8N72721>