]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Commit major SMP cleanups and move the BGL (big giant lock) in the
authorMatthew Dillon <dillon@FreeBSD.org>
Tue, 28 Mar 2000 07:16:37 +0000 (07:16 +0000)
committerMatthew Dillon <dillon@FreeBSD.org>
Tue, 28 Mar 2000 07:16:37 +0000 (07:16 +0000)
commit36e9f877dfd3d74af3d5a0faac2dc12671faf56a
tree97eeb7aac884e843e070fb55d061e31dfe981bfa
parent6d23c3828e14a4109f7e82d10c369db4812b71db
Commit major SMP cleanups and move the BGL (big giant lock) in the
    syscall path inward.  A system call may select whether it needs the MP
    lock or not (the default being that it does need it).

    A great deal of conditional SMP code for various deadended experiments
    has been removed.  'cil' and 'cml' have been removed entirely, and the
    locking around the cpl has been removed.  The conditional
    separately-locked fast-interrupt code has been removed, meaning that
    interrupts must hold the CPL now (but they pretty much had to anyway).
    Another reason for doing this is that the original separate-lock for
    interrupts just doesn't apply to the interrupt thread mechanism being
    contemplated.

    Modifications to the cpl may now ONLY occur while holding the MP
    lock.  For example, if an otherwise MP safe syscall needs to mess with
    the cpl, it must hold the MP lock for the duration and must (as usual)
    save/restore the cpl in a nested fashion.

    This is precursor work for the real meat coming later: avoiding having
    to hold the MP lock for common syscalls and I/O's and interrupt threads.
    It is expected that the spl mechanisms and new interrupt threading
    mechanisms will be able to run in tandem, allowing a slow piecemeal
    transition to occur.

    This patch should result in a moderate performance improvement due to
    the considerable amount of code that has been removed from the critical
    path, especially the simplification of the spl*() calls.  The real
    performance gains will come later.

Approved by: jkh
Reviewed by: current, bde (exception.s)
Some work taken from: luoqi's patch
60 files changed:
sys/alpha/alpha/trap.c
sys/amd64/amd64/apic_vector.S
sys/amd64/amd64/cpu_switch.S
sys/amd64/amd64/exception.S
sys/amd64/amd64/exception.s
sys/amd64/amd64/genassym.c
sys/amd64/amd64/mp_machdep.c
sys/amd64/amd64/mptable.c
sys/amd64/amd64/support.S
sys/amd64/amd64/support.s
sys/amd64/amd64/swtch.s
sys/amd64/amd64/sys_machdep.c
sys/amd64/amd64/trap.c
sys/amd64/amd64/vm_machdep.c
sys/amd64/include/cpu.h
sys/amd64/include/mptable.h
sys/amd64/include/pcpu.h
sys/i386/i386/apic_vector.s
sys/i386/i386/exception.s
sys/i386/i386/genassym.c
sys/i386/i386/globals.s
sys/i386/i386/mp_machdep.c
sys/i386/i386/mplock.s
sys/i386/i386/mptable.c
sys/i386/i386/simplelock.s
sys/i386/i386/support.s
sys/i386/i386/swtch.s
sys/i386/i386/sys_machdep.c
sys/i386/i386/trap.c
sys/i386/i386/vm86bios.s
sys/i386/i386/vm_machdep.c
sys/i386/include/asnames.h
sys/i386/include/cpu.h
sys/i386/include/globaldata.h
sys/i386/include/globals.h
sys/i386/include/ipl.h
sys/i386/include/lock.h
sys/i386/include/mptable.h
sys/i386/include/pcpu.h
sys/i386/include/smptests.h
sys/i386/isa/apic_ipl.s
sys/i386/isa/apic_vector.s
sys/i386/isa/ipl.s
sys/i386/isa/ipl_funcs.c
sys/kern/init_sysent.c
sys/kern/kern_prot.c
sys/kern/kern_sig.c
sys/kern/kern_switch.c
sys/kern/kern_synch.c
sys/kern/ksched.c
sys/kern/subr_prof.c
sys/kern/subr_smp.c
sys/kern/subr_trap.c
sys/kern/vfs_extattr.c
sys/kern/vfs_syscalls.c
sys/posix4/ksched.c
sys/sys/ktrace.h
sys/sys/proc.h
sys/sys/signalvar.h
sys/sys/sysent.h