bzero & bcopy alignment

Ivan Voras ivoras at fer.hr
Sun Jan 21 22:25:53 UTC 2007


Luigi Rizzo wrote:
> 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.

Yes, I agree. For what it's worth, this was on vmware, almost no network
activity.

> e.g. some network drivers force you to aligned buffers
> which results in misaligned payload requesting in
> turn an unaligned bcopy. Not that one can help with this,
> but i think that is also important to locate the locations
> in the source where the poorly aligned (1-2, maybe
> 4 and 8 to some degree) ops occur.

Any magic tricks to identify the caller of "current" function in the kernel?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20070121/847fc70e/signature.pgp


More information about the freebsd-arch mailing list