Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2007 23:25:14 +0100
From:      Ivan Voras <ivoras@fer.hr>
To:        freebsd-arch@freebsd.org
Subject:   Re: bzero & bcopy alignment
Message-ID:  <ep0p8i$86q$1@sea.gmane.org>
In-Reply-To: <20070121140019.A83688@xorpc.icir.org>
References:  <ep0mlv$194$1@sea.gmane.org> <20070121140019.A83688@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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?


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFs+hQldnAQVacBcgRAtH1AKC0mBWy3Vo8Bk6fs+U1YAvPDGjNPACeN2T6
R/rpwr714lUqF0g0nBP8vjM=
=YKvt
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ep0p8i$86q$1>