On Dec 20, 2005, at 12:37 PM, Marcelo Tosatti wrote: > Sum up the costs of disabling interrupts and disabling translation, > and you > end up with a slow dog. Damn, the TLB exceptions are indeed efficient.
Like I've always said, make the TLB miss exception path very short and efficient. You have to consider the total system impact of running this code, which includes replacing lots of cache lines that will affect the performance of the application. Don't be looking for "tricks" in the exception path, look for ways outside of that we can better structure the page tables so we can _remove_ code from the exception handler, not add to it. What you are doing here is an attempt to do that, but you are executing lots more code to do this preload than the TLB miss exception would do. Keep trying, though, this was a good idea to test :-) Thanks. -- Dan