Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: i386 lazy pmap switching in trap.c




To: YAMAMOTO Takashi <yamt%mwd.biglobe.ne.jp@localhost>

Subject: Re: i386 lazy pmap switching in trap.c

From: David Laight <david%l8s.co.uk@localhost>

Date: Sat, 9 Feb 2008 17:24:56 +0000


On Sun, Feb 10, 2008 at 01:39:09AM +0900, YAMAMOTO Takashi wrote:
> > The decrement on exit would be cheaper than the loop around pmap_load.
> > (I've just got a measurable performance gain from removing the loop.)
> 
> what exactly do you mean by "removing the loop"?

s/_RETRY//

Although I'd also put a 'cmp' and 'jz' after the call earlier, which
is likely to be benefitialon athlons, but not P4 - which will predict
the backwards jump as taken if the branch isn't in the branch cache.

My guess is that copyin will almost always have the pmap loaded,
copyout probably more often than not.


        David

-- 
David Laight: david%l8s.co.uk@localhost



Follow-Ups:

Re: i386 lazy pmap switching in trap.c
From: YAMAMOTO Takashi


References:

Re: i386 lazy pmap switching in trap.c
From: David Laight

Re: i386 lazy pmap switching in trap.c
From: YAMAMOTO Takashi




Prev by Date: Re: i386 lazy pmap switching in trap.c

Next by Date: Re: i386 lazy pmap switching in trap.c

Previous by Thread: Re: i386 lazy pmap switching in trap.c

Next by Thread: Re: i386 lazy pmap switching in trap.c

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index