Re: bzero & bcopy alignment



In message <20070121140019.A83688@xxxxxxxxxxxxxx>, Luigi Rizzo writes:
On Sun, Jan 21, 2007 at 10:41:09PM +0100, Ivan Voras wrote:
Following recent discussion on alignment of bzero() and bcopy(), I've
added some statistics collecting code to bzero() and bcopy() for
practice (on a RELENG_6 box), and here are the cumulative results for
argument alignment:

i think these profiles depend heavily on the hardware
and usage patterns.

Undoubtedly, but on the other hand, a lot of them operate on
structs and other data laid out by the compiler, so the
unaligned calls are special cases.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@xxxxxxxxxxx | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: bzero & bcopy alignment
    ... practice, and here are the cumulative results for ... turn an unaligned bcopy. ... First number is the alignment, ... aligned to 4 bytes in either bcopy or bzero). ...
    (freebsd-arch)
  • Re: bzero & bcopy alignment
    ... added some statistics collecting code to bzero() and bcopyfor ... practice, and here are the cumulative results for ... turn an unaligned bcopy. ... I don't know if the dtrace port is ready for this, ...
    (freebsd-arch)
  • Re: bzero & bcopy alignment
    ... added some statistics collecting code to bzero() and bcopyfor ... practice, and here are the cumulative results for ... argument alignment: ... turn an unaligned bcopy. ...
    (freebsd-arch)
  • bzero & bcopy alignment
    ... Following recent discussion on alignment of bzero() and bcopy(), ... practice, and here are the cumulative results for ...
    (freebsd-arch)
  • Re: bzero & bcopy alignment
    ... 2007/1/22, Luigi Rizzo: ... >>> Following recent discussion on alignment of bzero() and bcopy(), ... because these are constant strings, ...
    (freebsd-arch)