From owner-cvs-sys Sat Dec 13 18:14:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA12997 for cvs-sys-outgoing; Sat, 13 Dec 1997 18:14:20 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA12924; Sat, 13 Dec 1997 18:13:46 -0800 (PST) (envelope-from dyson@FreeBSD.org) From: John Dyson Received: (from dyson@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id SAA25878; Sat, 13 Dec 1997 18:11:28 -0800 (PST) Date: Sat, 13 Dec 1997 18:11:28 -0800 (PST) Message-Id: <199712140211.SAA25878@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/kern init_main.c src/sys/vm pmap.h src/sys/i386/i386 machdep.c pmap.c support.s swtch.s src/sys/i386/include cpufunc.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dyson 1997/12/13 18:11:28 PST Modified files: sys/kern init_main.c sys/vm pmap.h sys/i386/i386 machdep.c pmap.c support.s swtch.s sys/i386/include cpufunc.h Log: 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. Revision Changes Path 1.79 +2 -2 src/sys/kern/init_main.c 1.25 +2 -1 src/sys/vm/pmap.h 1.279 +9 -1 src/sys/i386/i386/machdep.c 1.174 +26 -1 src/sys/i386/i386/pmap.c 1.58 +4 -1 src/sys/i386/i386/support.s 1.65 +47 -10 src/sys/i386/i386/swtch.s 1.73 +7 -1 src/sys/i386/include/cpufunc.h