From owner-freebsd-performance@FreeBSD.ORG Fri Apr 20 07:09:35 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2764016A414; Fri, 20 Apr 2007 07:09:35 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 138A613C48C; Fri, 20 Apr 2007 07:09:35 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id DA5C31A4D91; Fri, 20 Apr 2007 00:09:52 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 33E9B5138E; Fri, 20 Apr 2007 03:09:34 -0400 (EDT) Date: Fri, 20 Apr 2007 03:09:34 -0400 From: Kris Kennaway To: Michael Vince Message-ID: <20070420070934.GA5367@xor.obsecurity.org> References: <4626D4D5.7030303@thebeastie.org> <20070419031913.GA48411@xor.obsecurity.org> <462864C0.7060100@thebeastie.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <462864C0.7060100@thebeastie.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-performance@freebsd.org, freebsd-java@FreeBSD.org, Kris Kennaway Subject: Re: Java performance on AMD64 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2007 07:09:35 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 20, 2007 at 04:59:12PM +1000, Michael Vince wrote: > Kris Kennaway wrote: > >On Thu, Apr 19, 2007 at 12:32:53PM +1000, Michael Vince wrote: > > =20 > >>Hey All, > >>I been benchmarking Diablo Java under AMD64 on 6.2R and using the same= =20 > >>methods I posted a while ago detailed somewhat here > >>http://lists.freebsd.org/pipermail/freebsd-java/2006-August/005576.html > >> > >>The difference here is that libthr now works under Amd64. > >>But it appears libthr to be about half the speed of libpthread under=20 > >>AMD64 mode which is the opposite behavior when using it under i386. > >> =20 > > > >That's contrary to my benchmarks :( Dunno what might be wrong though, > >assuming you have checked all the obvious. > > > >Kris > > =20 > OK, > I did more testing and it appears the 6.1R Diablo Java binary package on= =20 > Amd64 on 6.2/libthr appears to be the problem, it's as much as 60%=20 > slower then libpthread. >=20 > On 6.2R Amd64 I built the ports version of jdk1.5 and libthr appeared to= =20 > be around 25% faster then libpthread. > But using the Diablo jdk package for 6.1R on 6.2 under libpthread is=20 > even faster by around 15% over anything I could do for any combination=20 > of Java and libthr. >=20 > I would guess that a new 6.2R Amd64 Diablo package would probably turn=20 > it around again for libthr and I would guess it would again around 20%=20 > faster then anything I can get from Java under AMD64 6.2R, what's going= =20 > on here exactly I don't know. That's weird, I thought the diablo package was just compiled from jdk1.5. It could be there was a performance regression from a change made to the port after 6.1 - it would be great if you can follow it up with the java@ people. Kris --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGKGctWry0BWjoQKURAjlxAKCd7A2lfo107ZeofW5Z/y9Vr8kCyACggc0M 3ihbYuAXR2EssgzZN8o7378= =Stgd -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--