From owner-freebsd-performance@FreeBSD.ORG Fri Apr 20 06:59:17 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 4857316A401; Fri, 20 Apr 2007 06:59:17 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.freebsd.org (Postfix) with ESMTP id 20A9013C468; Fri, 20 Apr 2007 06:59:17 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id 5263C4CE26; Fri, 20 Apr 2007 06:59:41 +0000 (GMT) Received: from smitch7.jumbuck.com (p82.jumbuck.com [206.112.99.82]) by p4.roq.com (Postfix) with ESMTP id 295404CE00; Fri, 20 Apr 2007 06:59:41 +0000 (GMT) Received: from smitch7.jumbuck.com (mail.jumbuck.com [206.112.99.82]) by smitch7.jumbuck.com (Postfix) with ESMTP id E67D2410EB0; Fri, 20 Apr 2007 06:59:15 +0000 (UTC) Received: from beaste5.jumbuck.com (melbourne.jumbuck.com [150.101.166.27]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smitch7.jumbuck.com (Postfix) with ESMTP id 97508410D44; Fri, 20 Apr 2007 06:59:15 +0000 (UTC) Received: from beaste5.jumbuck.com (beast5 [192.168.46.105]) by beaste5.jumbuck.com (Postfix) with ESMTP id 24C05209D265; Fri, 20 Apr 2007 16:59:13 +1000 (EST) Received: from beast2.jumbuck.com (unknown [192.168.46.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by beaste5.jumbuck.com (Postfix) with ESMTP id F0F4B209D1CE; Fri, 20 Apr 2007 16:59:12 +1000 (EST) Message-ID: <462864C0.7060100@thebeastie.org> Date: Fri, 20 Apr 2007 16:59:12 +1000 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.2) Gecko/20070314 SeaMonkey/1.1.1 MIME-Version: 1.0 To: Kris Kennaway References: <4626D4D5.7030303@thebeastie.org> <20070419031913.GA48411@xor.obsecurity.org> In-Reply-To: <20070419031913.GA48411@xor.obsecurity.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-performance@freebsd.org, freebsd-java@FreeBSD.org 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 06:59:17 -0000 Kris Kennaway wrote: > On Thu, Apr 19, 2007 at 12:32:53PM +1000, Michael Vince wrote: > >> Hey All, >> I been benchmarking Diablo Java under AMD64 on 6.2R and using the same >> 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 >> AMD64 mode which is the opposite behavior when using it under i386. >> > > That's contrary to my benchmarks :( Dunno what might be wrong though, > assuming you have checked all the obvious. > > Kris > OK, I did more testing and it appears the 6.1R Diablo Java binary package on Amd64 on 6.2/libthr appears to be the problem, it's as much as 60% slower then libpthread. On 6.2R Amd64 I built the ports version of jdk1.5 and libthr appeared to be around 25% faster then libpthread. But using the Diablo jdk package for 6.1R on 6.2 under libpthread is even faster by around 15% over anything I could do for any combination of Java and libthr. I would guess that a new 6.2R Amd64 Diablo package would probably turn it around again for libthr and I would guess it would again around 20% faster then anything I can get from Java under AMD64 6.2R, what's going on here exactly I don't know. Cheers, Mike