From: Tom Leete <tleete@mountain.net>
To: Mark Hahn <hahn@coffee.psychology.mcmaster.ca>
Cc: Seth Goldberg <bergsoft@home.com>, linux-kernel@vger.kernel.org
Subject: Re: Athlon and fast_page_copy: What's it worth ? :)
Date: Sat, 05 May 2001 05:15:25 -0400 [thread overview]
Message-ID: <3AF3C4AD.FCC037F0@mountain.net> (raw)
In-Reply-To: <Pine.LNX.4.10.10105050155020.15185-100000@coffee.psychology.mcmaster.ca>
Mark Hahn wrote:
>
> On Fri, 4 May 2001, Seth Goldberg wrote:
>
> > Hi,
> >
> > Before I go any further with this investigation, I'd like to get an
> > idea
> > of how much of a performance improvement the K7 fast_page_copy will give
> > me.
> > Can someone suggest the best benchmark to test the speed of this
> > routine?
>
> Arjan van de Ven did the code, and he wrote a little test harness.
> I've hacked it a bit (http://brain.mcmaster.ca/~hahn/athlon.c);
> on my duron/600, kt133, pc133 cas2, it looks like this:
>
> clear_page by 'normal_clear_page' took 7221 cycles (324.6 MB/s)
> clear_page by 'slow_zero_page' took 7232 cycles (324.1 MB/s)
> clear_page by 'fast_clear_page' took 6110 cycles (383.6 MB/s)
> clear_page by 'faster_clear_page' took 2574 cycles (910.6 MB/s)
>
> copy_page by 'normal_copy_page' took 7224 cycles (324.4 MB/s)
> copy_page by 'slow_copy_page' took 7223 cycles (324.5 MB/s)
> copy_page by 'fast_copy_page' took 4662 cycles (502.7 MB/s)
> copy_page by 'faster_copy' took 2746 cycles (853.5 MB/s)
> copy_page by 'even_faster' took 2802 cycles (836.5 MB/s)
>
> 70% faster!
>
I've played with this some, too. I find that Arjan's tests are very delicate
about the number of hw interrupts serviced. On UP I see 2-3 interrupts per
page copy on average with my normal workload. On Athlon, interrupts hit 'rep
mov' (looong interruptable vector path insn) much worse than they do mmx
movq (direct path) instructions.
With hands off and no networking, breakeven is about the canonical 512
bytes, and page copy is about 30% better, as Alan says. With ethers up and X
running mmx gets better by comparison -- 40-60% for me. I haven't seen 70%
better, but I'd like to.
Cheers,
Tom
--
The Daemons lurk and are dumb. -- Emerson
next prev parent reply other threads:[~2001-05-05 9:16 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-04 17:22 REVISED: Experimentation with Athlon and fast_page_copy Seth Goldberg
2001-05-04 19:48 ` Brian Gerst
2001-05-04 21:09 ` Alan Cox
2001-05-04 22:26 ` Aaron Tiensivu
2001-05-04 18:10 ` Bobby D. Bryant
2001-05-05 6:43 ` John R Lenton
2001-05-05 7:20 ` Alan Cox
2001-05-07 1:26 ` John R Lenton
2001-05-07 1:30 ` Jeremy
2001-05-05 0:26 ` Joseph Carter
2001-05-05 3:51 ` Chris Wedgwood
2001-05-05 4:08 ` Seth Goldberg
[not found] ` <20010505163204.A29622@metastasis.f00f.org>
2001-05-05 5:03 ` Athlon and fast_page_copy: What's it worth ? :) Seth Goldberg
2001-05-05 6:20 ` Mark Hahn
2001-05-05 9:15 ` Tom Leete [this message]
2001-05-05 7:17 ` Alan Cox
2001-05-05 14:19 ` Jonathan Morton
2001-05-05 14:41 ` Alan Cox
2001-05-05 15:17 ` Jonathan Morton
2001-05-08 21:16 ` Arjan van de Ven
2001-05-05 5:45 ` REVISED: Experimentation with Athlon and fast_page_copy Joseph Carter
2001-05-09 2:11 ` Tom Leete
2001-05-09 8:49 ` Alan Cox
2001-05-09 11:38 ` Tom Leete
2001-05-09 12:38 ` Alan Cox
2001-05-09 13:02 ` Tom Leete
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3AF3C4AD.FCC037F0@mountain.net \
--to=tleete@mountain.net \
--cc=bergsoft@home.com \
--cc=hahn@coffee.psychology.mcmaster.ca \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox