From owner-freebsd-arch@FreeBSD.ORG Sun Jan 21 22:25:53 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 767B316A400 for ; Sun, 21 Jan 2007 22:25:53 +0000 (UTC) (envelope-from freebsd-arch@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 05DF613C45E for ; Sun, 21 Jan 2007 22:25:52 +0000 (UTC) (envelope-from freebsd-arch@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H8l83-0002Cn-Sj for freebsd-arch@freebsd.org; Sun, 21 Jan 2007 23:25:35 +0100 Received: from 89-172-46-31.adsl.net.t-com.hr ([89.172.46.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Jan 2007 23:25:35 +0100 Received: from ivoras by 89-172-46-31.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Jan 2007 23:25:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-arch@freebsd.org From: Ivan Voras Date: Sun, 21 Jan 2007 23:25:14 +0100 Lines: 44 Message-ID: References: <20070121140019.A83688@xorpc.icir.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC9AE47529EA53A2D2EC99121" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-46-31.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: <20070121140019.A83688@xorpc.icir.org> X-Enigmail-Version: 0.94.1.2 Sender: news Subject: Re: bzero & bcopy alignment X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 22:25:53 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC9AE47529EA53A2D2EC99121 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: >=20 > 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 kern= el? --------------enigC9AE47529EA53A2D2EC99121 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----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----- --------------enigC9AE47529EA53A2D2EC99121--