Re: Athlon and fast_page_copy: What's it worth ? :)

From: Tom Leete (tleete@mountain.net)
Date: Sat May 05 2001 - 04:15:25 EST


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/



This archive was generated by hypermail 2b29 : Mon May 07 2001 - 21:00:21 EST