linux-mips
[Top] [All Lists]

Re: Tags are dead alias Milo is dead part II

To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: Re: Tags are dead alias Milo is dead part II
From: "William J. Earl" <wje@fir.engr.sgi.com>
Date: Thu, 8 Oct 1998 13:30:36 -0700
Cc: ralf@uni-koblenz.de, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, linux@cthulhu.engr.sgi.com
In-reply-to: <19981008215834.51243@alpha.franken.de>
References: <19981007002547.44731@alpha.franken.de> <19981008170335.H4058@uni-koblenz.de> <19981008215834.51243@alpha.franken.de>
Sender: owner-linux@cthulhu.engr.sgi.com
Thomas Bogendoerfer writes:
 > On Thu, Oct 08, 1998 at 05:03:35PM +0200, ralf@uni-koblenz.de wrote:
 > > Applied to the G364 drivers (which as of now is still MIPS specific anyway)
 > > this means that we'll avoid TLB trashing in the case of scrolling and have
 > > the full TLB available for userland.
 > 
 > I don't believe this will buy us anything. When we add a temporary TLB we 
 > need
 > do clear one TLB, which might be used by the userland. So we end up loading
 > our wired entry, killing it, and later the user process has to reload the 
 > TLB again. This way we force TLB trashing, with one wired entry more we
 > _might_ get a little bit more TLB trashing.
 > 
 > As you might know, I'm using three wired entries for the Magnum, and I don't 
 > think doing the same trick for the other entries is a real good idea. When 
 > we make them temporary, we have to mess with TLBs on every interrupt.

     You could do what IRIX does in some cases, which is to save and restore
the TLB entry you replace.  Beware of doing this, however, if your code could
take a page fault.


<Prev in Thread] Current Thread [Next in Thread>