Re: Obvious one-liner - Use 3DNOW on MK8

From: Andi Kleen
Date: Sun Aug 22 2004 - 09:51:42 EST


On Sun, Aug 22, 2004 at 11:18:45AM +0300, Denis Vlasenko wrote:
> On Sunday 22 August 2004 04:29, Andi Kleen wrote:
> > "James M." <dart@xxxxxxxxxxxxxxx> writes:
> > > Title says it...my Athlon 64 definitely uses 3DNOW. Patch changes
> > > arch/i386/Kconfig and has a 3 line fudge factor(I created it a few
> > > kernels back). Might want to check other arches for the same bug.
> >
> > It it's not a bug, it is a feature. The K8 is better off not using
> > the 3dnow memcpy, which is the only feature this CONFIG controls.
>
> However, 3dnow _copy_page_ is a huge win. I explained why in an emails

On K8? Significant resources were spent on tuning the x86-64
memcpy and memset, and since C stepping K8 rep ; movsl/q are fastest.
Before that an unrolled integer loop was best.

On 32bit the same applies.

Using SSE2 only helps for very large data sets that are
never used in the kernel (several MB). 3dnow wasn't tested, but it is
unlikely to be any better than SSE2.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/