lkml.org 
[lkml]   [2001]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.092 / U:9.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site