]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
After one of my analysis passes to evaluate methods for SMP TLB mgmt, I
authorJohn Dyson <dyson@FreeBSD.org>
Sun, 14 Dec 1997 02:11:23 +0000 (02:11 +0000)
committerJohn Dyson <dyson@FreeBSD.org>
Sun, 14 Dec 1997 02:11:23 +0000 (02:11 +0000)
commit8256655132964fa9a66e59362d57306b96e94d68
tree357781ac4371866ddb4fa46ff4e7b346722eb632
parent5ecfccd5bacdbc75d51d17048399adc51f697102
After one of my analysis passes to evaluate methods for SMP TLB mgmt, I
noticed some major enhancements available for UP situations.  The number
of UP TLB flushes is decreased much more than significantly with these
changes.  Since a TLB flush appears to cost minimally approx 80 cycles,
this is a "nice" enhancement, equiv to eliminating between 40 and 160
instructions per TLB flush.

Changes include making sure that kernel threads all use the same PTD,
and eliminate unneeded PTD switches at context switch time.
14 files changed:
sys/amd64/amd64/cpu_switch.S
sys/amd64/amd64/machdep.c
sys/amd64/amd64/pmap.c
sys/amd64/amd64/support.S
sys/amd64/amd64/support.s
sys/amd64/amd64/swtch.s
sys/amd64/include/cpufunc.h
sys/i386/i386/machdep.c
sys/i386/i386/pmap.c
sys/i386/i386/support.s
sys/i386/i386/swtch.s
sys/i386/include/cpufunc.h
sys/kern/init_main.c
sys/vm/pmap.h