Re: AMD optimizations?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 26 Aug 1999 13:11:05 +0100 (BST)


> This reminded of something I meant to ask about the optimised string
> copying routines that used to be in the kernel. Is there anyone
> working on rewriting those ? I understand they were removed as they
> were unstable, and causing problems, but if a stable version can be
> produced, the gains should be obvious.

String functions make little difference it seems. The critical ones are
copy_to_user copy_from_user memcpy memset and the copy_page/clear_page
functions (mapped to memset etc on x86)

The intel cpus have fastpaths for rep movs so for everything but the 486
and some pentiums it seems that the 386 code is fastest. On a K6-II I can't
beat rep movs for memory originated reads. Im not sure about cached stuff.

Some people apparently get gains on pentiums using mmx/fpu for memcpy.

The Athlon seems unique in having MMX deliver measurably faster performance
than rep movs

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