* API perfomance patches on ev56 ??
@ 2000-10-19 20:42 Reinier Bikker
0 siblings, 0 replies; 9+ messages in thread
From: Reinier Bikker @ 2000-10-19 20:42 UTC (permalink / raw)
To: axp-list
Hi,
Has anyone tried the API ev6 performance patches? Can anyone tell me if
they will give any performance boost on ev56 machines?
Reinier.
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: API perfomance patches on ev56 ??
@ 2000-10-20 18:13 Tom Morris
2000-10-20 20:04 ` Jeff Sturm
0 siblings, 1 reply; 9+ messages in thread
From: Tom Morris @ 2000-10-20 18:13 UTC (permalink / raw)
To: axp-list
> Has anyone tried the API ev6 performance patches?
Yes, please post your experiences to the list. We'd love to hear
what kind of results folks have seen with different workloads
> Can anyone tell me if they will give any performance boost on ev56
machines?
The stuff which is conditionalized for ev6 you won't see at all. If you
were
to build with it and run on an ev56 you'd take an illegal instruction fault
(i.e. crash) when you hit an instruction which was added to the instruction
set after the ev56 was designed.
Tom
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: API perfomance patches on ev56 ??
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
2000-10-23 22:42 ` Richard Henderson
0 siblings, 2 replies; 9+ messages in thread
From: Jeff Sturm @ 2000-10-20 20:04 UTC (permalink / raw)
To: axp-list
Tom Morris wrote:
> > Can anyone tell me if they will give any performance boost on ev56
> machines?
>
> The stuff which is conditionalized for ev6 you won't see at all. If you
> were
> to build with it and run on an ev56 you'd take an illegal instruction fault
> (i.e. crash) when you hit an instruction which was added to the instruction
> set after the ev56 was designed.
That's not strictly true. Certain instructions like wh64 don't trap on ev56, it
is essentially a nop. Also prefetch instructions should be available, though
reportedly they don't benefit anything prior to ev6.
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: API perfomance patches on ev56 ??
2000-10-20 20:04 ` Jeff Sturm
@ 2000-10-23 14:18 ` Stig Telfer
2000-10-23 16:56 ` Jeff Sturm
2000-10-23 22:42 ` Richard Henderson
1 sibling, 1 reply; 9+ messages in thread
From: Stig Telfer @ 2000-10-23 14:18 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: API perfomance patches on ev56 ??
2000-10-23 14:18 ` Stig Telfer
@ 2000-10-23 16:56 ` Jeff Sturm
0 siblings, 0 replies; 9+ messages in thread
From: Jeff Sturm @ 2000-10-23 16:56 UTC (permalink / raw)
To: axp-list
Stig Telfer wrote:
> 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.
Thanks. That's just what I was looking for. It seems to me that a 16K region
aligned on a page is the largest guaranteed to be resident at once in 2-way
associative L1 cache, assuming a random virtual-to-physical mapping. Is there
any good reason you chose 32K?
> Also it
> was using kernel-mode (kseg) addresses which bypass page faults. So
> you might not be quite so fortunate.
Good point. The type of problem I am considering is e.g. a copying GC. I tend
to favor non-moving collectors over copying/compacting due to better cache
interaction... however special cache instructions might improve the situation,
this is what I am attempting to research.
After the first collection or so, few page faults should occur in normal use.
TLB misses are another matter. I looks like the 21264 is capable of clustering
pages in the TLB... don't know if Linux supports it, but that's a whole 'nother
topic.
--
Jeff Sturm
jeff.sturm@commerceone.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: API perfomance patches on ev56 ??
2000-10-20 20:04 ` Jeff Sturm
2000-10-23 14:18 ` Stig Telfer
@ 2000-10-23 22:42 ` Richard Henderson
2000-10-24 11:17 ` Stig Telfer
1 sibling, 1 reply; 9+ messages in thread
From: Richard Henderson @ 2000-10-23 22:42 UTC (permalink / raw)
To: axp-list
On Fri, Oct 20, 2000 at 04:04:57PM -0400, Jeff Sturm wrote:
> Speaking of which, has anybody observed any benefit from wh64 in their
> code? I would have liked to use it ...
In addition to Stig's comments, things are complicated by the fact that
binutils 2.9 mis-encoded the instruction into a queer kind of nop. :-(
r~
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: API perfomance patches on ev56 ??
2000-10-23 22:42 ` Richard Henderson
@ 2000-10-24 11:17 ` Stig Telfer
2000-10-25 21:29 ` Richard Henderson
0 siblings, 1 reply; 9+ messages in thread
From: Stig Telfer @ 2000-10-24 11:17 UTC (permalink / raw)
To: axp-list
Doh - I forgot, I put this macro into the assembler code:
#define WH64_t0 .long ( (0x18 << 26) | (0x1F << 21) | (0x01 << 16) | 0xF800 )
Is this fixed in binutils 2.9.1?
Stig
>On Fri, Oct 20, 2000 at 04:04:57PM -0400, Jeff Sturm wrote:
>> Speaking of which, has anybody observed any benefit from wh64 in their
>> code? I would have liked to use it ...
>
>In addition to Stig's comments, things are complicated by the fact that
>binutils 2.9 mis-encoded the instruction into a queer kind of nop. :-(
>
>
>r~
>
>
>
>_______________________________________________
>Axp-list mailing list
>Axp-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: API perfomance patches on ev56 ??
2000-10-24 11:17 ` Stig Telfer
@ 2000-10-25 21:29 ` Richard Henderson
2000-10-31 4:58 ` Jay Estabrook
0 siblings, 1 reply; 9+ messages in thread
From: Richard Henderson @ 2000-10-25 21:29 UTC (permalink / raw)
To: axp-list
On Tue, Oct 24, 2000 at 12:17:46PM +0100, Stig Telfer wrote:
> >In addition to Stig's comments, things are complicated by the fact that
> >binutils 2.9 mis-encoded the instruction into a queer kind of nop. :-(
>
> Is this fixed in binutils 2.9.1?
I don't think it's fixed until 2.10.
r~
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: API perfomance patches on ev56 ??
2000-10-25 21:29 ` Richard Henderson
@ 2000-10-31 4:58 ` Jay Estabrook
0 siblings, 0 replies; 9+ messages in thread
From: Jay Estabrook @ 2000-10-31 4:58 UTC (permalink / raw)
To: axp-list
On Wed, Oct 25, 2000 at 02:29:38PM -0700, Richard Henderson wrote:
> On Tue, Oct 24, 2000 at 12:17:46PM +0100, Stig Telfer wrote:
> > >In addition to Stig's comments, things are complicated by the fact that
> > >binutils 2.9 mis-encoded the instruction into a queer kind of nop. :-(
> >
> > Is this fixed in binutils 2.9.1?
>
> I don't think it's fixed until 2.10.
Assembly of "wh64" instruction:
1. broken in binutils 2.9.1 (shipped in RH 6.1) - causes an error message
2. working in binutils 2.9.5 (shipped in RH 6.2) - no problems
3. working in binutils 2.10 (was/will ship in RH 7.0) - no problems
--Jay++
-----------------------------------------------------------------------------
Jay A Estabrook Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2000-10-31 3:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox