From owner-freebsd-current Sat Apr 3 6:48:51 1999 Delivered-To: freebsd-current@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id B6FE314D01; Sat, 3 Apr 1999 06:48:44 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id PAA71904; Sat, 3 Apr 1999 15:48:27 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Sat, 3 Apr 1999 15:48:27 +0100 (BST) From: Doug Rabson To: "John S. Dyson" Cc: Alan Cox , current@freebsd.org, luoqi@freebsd.org Subject: Re: SMP users (important) In-Reply-To: <199904031316.IAA45781@y.dyson.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 3 Apr 1999, John S. Dyson wrote: > Alan Cox said: > > > > I've committed the basic infrastructure to improve TLB management > > on SMPs. Translation: this will lead to the elimination of a LOT > > of interprocessor interrupts to invalidate TLB entries. I'll be > > "turning on" the new mechanisms slowly so we can carefully debug > > each step and (hopefully) avoid any problems. > > > (To the rest of the team, Alan and Luoqi already know my opinion.) > > I just wanted to "chime in" and say that the new patches are based > on a really good concept, and is much cleaner than the previous > method. Also, many RISC architectures can utilize this > method due to the availability of lots of general registers. > (One could go so far as to have the compiler reserve the > register.) Non-threaded user mode apps could optionally > use the reserved register, but for threaded user mode apps, > that reserved register could also be used as a per-thread > base pointer. > > I believe that NT does the above (%fs for X86, and general > register for Alpha.) On PPC, there are several local, > per-processor registers that one could use (but loading a > general register with that per processor register would be > needed for access.) Also, since the PPC has lots of registers, > one could? permanently reserve one of the general registers (r13?). > > All in all, this change has the potential for better context > switching time (and less memory/better performance for multi-threaded > processes.) This is a serious, non-trivial movement in the *right* > direction!!! :-). SMP users should be pleased with this movement (I > certainly am!!!) The alpha palcode supports a per-thread unique value which can be used by any threading system (user or kernel). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message