From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 89A342F95C for ; Mon, 23 Oct 2000 10:14:54 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id e9NEEso19725 for axp-list@listman.redhat.com; Mon, 23 Oct 2000 10:14:54 -0400 Received: from alpha-gw.alpha-processor.com (alpha-gw.alpha-processor.com [192.233.59.9]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id e9NEEsD19721 for ; Mon, 23 Oct 2000 10:14:54 -0400 Received: from barracuda.alpha-processor.com by alpha-gw.alpha-processor.com via smtpd (for mail.redhat.com [199.183.24.239]) with SMTP; 23 Oct 2000 14:14:35 UT Received: from [192.233.59.204] (192.233.59.204 [192.233.59.204]) by barracuda.alpha-processor.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 475G9CXY; Mon, 23 Oct 2000 09:59:40 -0400 Mime-Version: 1.0 X-Sender: stig.telfer@barracuda.alpha-processor.com (Unverified) Message-Id: In-Reply-To: <39F0A569.95BFD85A@appnet.com> References: <051DFF3BBA73D3119A5800A0C95BD0217C9EFC@barracuda.api-networks.com> <39F0A569.95BFD85A@appnet.com> Date: Mon, 23 Oct 2000 15:18:19 +0100 To: axp-list@redhat.com From: Stig Telfer Subject: Re: API perfomance patches on ev56 ?? Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors 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