From: Jonathan Morton <chromi@cyberspace.org>
To: Mark Hahn <hahn@coffee.psychology.mcmaster.ca>,
Seth Goldberg <bergsoft@home.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Athlon and fast_page_copy: What's it worth ? :)
Date: Sat, 5 May 2001 15:19:15 +0100 [thread overview]
Message-ID: <l03130306b719ba7ef592@[192.168.239.105]> (raw)
In-Reply-To: <Pine.LNX.4.10.10105050155020.15185-100000@coffee.psychology.mcmaster.ca>
In-Reply-To: <3AF389BD.81F9B398@home.com>
At 7:20 am +0100 5/5/2001, 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!
On my Athlon 1GHz, Abit KT7, PC133 set to "Turbo" (not quite sure what the
actual CAS rating is, but it works):
[chromi@beryllium compsci]$ ./athlon
1000.047 MHz
clear_page by 'normal_clear_page' took 10769 cycles (362.7 MB/s)
clear_page by 'slow_zero_page' took 10349 cycles (377.5 MB/s)
clear_page by 'fast_clear_page' took 10868 cycles (359.4 MB/s)
clear_page by 'faster_clear_page' took 4345 cycles (899.1 MB/s)
copy_page by 'normal_copy_page' took 11242 cycles (347.5 MB/s)
copy_page by 'slow_copy_page' took 11245 cycles (347.4 MB/s)
copy_page by 'fast_copy_page' took 7951 cycles (491.3 MB/s)
copy_page by 'faster_copy' took 4765 cycles (819.7 MB/s)
copy_page by 'even_faster' took 4955 cycles (788.3 MB/s)
My wild guess is that with the "faster" code, the K7 is avoiding loading
cache lines just to write them out again, and is just writing tons of data.
The PPC G4 - and perhaps even the G3 - performs a similar trick
automatically, without special assembly...
Perhaps the IWILL m/board doesn't like this behaviour, and somehow assumes
that all written cachelines have been read beforehand. I heard of some
m/boards - particularly those with more than 3 DIMM slots - using a "helper
chip" to boost the signal to the last slot or two, so maybe that is a
problem? How many slots does the IWILL have?
--------------------------------------------------------------
from: Jonathan "Chromatix" Morton
mail: chromi@cyberspace.org (not for attachments)
big-mail: chromatix@penguinpowered.com
uni-mail: j.d.morton@lancaster.ac.uk
The key to knowledge is not to rely on people to teach you it.
Get VNC Server for Macintosh from http://www.chromatix.uklinux.net/vnc/
-----BEGIN GEEK CODE BLOCK-----
Version 3.12
GCS$/E/S dpu(!) s:- a20 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS
PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*)
-----END GEEK CODE BLOCK-----
next prev parent reply other threads:[~2001-05-05 14:27 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
2001-05-05 7:17 ` Alan Cox
2001-05-05 14:19 ` Jonathan Morton [this message]
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='l03130306b719ba7ef592@[192.168.239.105]' \
--to=chromi@cyberspace.org \
--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
all inboxes | Powered by JetHome®