Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stig Telfer <stig@alpha-processor.com>
To: axp-list@redhat.com
Subject: Re: API perfomance patches on ev56 ??
Date: Mon, 23 Oct 2000 15:18:19 +0100	[thread overview]
Message-ID: <p0433010bb619f669aaec@[192.233.59.204]> (raw)
In-Reply-To: <39F0A569.95BFD85A@appnet.com>

Hello Jeff -

I have used WH64 with great success but there is a catch.  There 
needs to be a delay of some length between the wh64 instruction and 
following writes to the cache block in question.  The length of the 
delay I don't know exactly - but it looks to be more than you're 
using there.

I was writing a memory fill routine.  When implemented in the style 
you have below the WH64 didn't have any effect.  Then I changed the 
loops so that there was a WH64 loop over a consecutive 32K region of 
memory then a fill loop over the same region.  This got me 77% of 
peak memory bandwidth sustained over hundreds of megabytes.  Which is 
way, way more than you could get without WH64 (since that would 
involve read-modify-write cycles).  This was on a UP1000.  Also it 
was using kernel-mode (kseg) addresses which bypass page faults.  So 
you might not be quite so fortunate.

Regards,
Stig Telfer


>Speaking of which, has anybody observed any benefit from wh64 in 
>their code?  I
>would have liked to use it in some heap libraries that allocate memory on
>block-size (64-byte) boundaries.  Unfortunately I couldn't find any 
>measureable
>benefit whatsoever.  I don't have the code handy, but it was something like:
>
>   struct cb {
>     long l1;
>     long l2;
>     long l3;
>     long l4;
>     long l5;
>     long l6;
>     long l7;
>     long l8;
>   } *p;
>
>   ...
>
>   wh64(p);
>   p->l1 = 0;
>   p->l2 = 0;
>   p->l3 = 0;
>   p->l4 = 0;
>   p->l5 = 0;
>   p->l6 = 0;
>   p->l7 = 0;
>   p->l8 = 0;
>
>where the bottom six bits of "p" are zero.  It actually ran slower with wh64
>than without.  Figuring I would need a delay between wh64 and the 
>store, I tried
>wh64(p+1) and other variations to no avail.
>
>--
>Jeff Sturm
>jeff.sturm@commerceone.com
>
>
>
>_______________________________________________
>Axp-list mailing list
>Axp-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/axp-list




  reply	other threads:[~2000-10-23 14:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-20 18:13 API perfomance patches on ev56 ?? Tom Morris
2000-10-20 20:04 ` Jeff Sturm
2000-10-23 14:18   ` Stig Telfer [this message]
2000-10-23 16:56     ` Jeff Sturm
2000-10-23 22:42   ` Richard Henderson
2000-10-24 11:17     ` Stig Telfer
2000-10-25 21:29       ` Richard Henderson
2000-10-31  4:58         ` Jay Estabrook
  -- strict thread matches above, loose matches on Subject: below --
2000-10-19 20:42 Reinier Bikker
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox