From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Soete Subject: Re: More questions [Was: [parisc-linux] 2.6.10-rc1-pa11 profile data] Date: Fri, 03 Dec 2004 10:24:24 +0000 Message-ID: <41B03ED8.8090505@tiscali.be> References: <418A80AE0000A9A8@mail-4-bnl.tiscali.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Cc: parisc-linux@lists.parisc-linux.org To: Joel Soete Return-Path: In-Reply-To: <418A80AE0000A9A8@mail-4-bnl.tiscali.it> List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: parisc-linux-bounces@lists.parisc-linux.org Hello all, I need more advise: Joel Soete wrote: > [...] > >>but looking at the other ones: >>- __clear_user_page_asm can be optimized for 64-bit by writing 8 bytes >> at a time instead of 4 > > Is it the idea (principle only): > --- arch/parisc/kernel/pacache.S.Orig 2004-12-01 17:09:53.000000000 +0100 > +++ arch/parisc/kernel/pacache.S-t1 2004-12-01 17:58:16.000000000 +0100 > @@ -505,6 +505,16 @@ > ldi 64,%r1 > > 1: > +#ifdef __LP64__ > + std %r0,0(%r28) > + std %r0,8(%r28) > + std %r0,16(%r28) > + std %r0,24(%r28) > + std %r0,32(%r28) > + std %r0,40(%r28) > + std %r0,48(%r28) > + std %r0,56(%r28) > +#else > stw %r0,0(%r28) > stw %r0,4(%r28) > stw %r0,8(%r28) > @@ -521,6 +531,7 @@ > stw %r0,52(%r28) > stw %r0,56(%r28) > stw %r0,60(%r28) > +#endif > ADDIB> -1,%r1,1b > ldo 64(%r28),%r28 > I test it on my b2k with 64bit kernel and it works but it didn't seems to bring me any benefit? As far as I can believe readprofile: the ratio between the first and last column is always the same (1/80 in this case). What did I miss? My hope was at least a befenit of 1/2 as I reduce insn number in the same rate. Right now my idea is to write a small test case to see if using the same number on insn but with less loop will help or not? Thanks again for more advise, Joel _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux