From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 09:32:01 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEC4B16AEA6 for ; Mon, 13 Nov 2006 09:32:01 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF49E43D6D for ; Mon, 13 Nov 2006 09:31:59 +0000 (GMT) (envelope-from ntarmos@ceid.upatras.gr) Received: from rhea.ceid.upatras.gr (rhea.ceid.upatras.gr [150.140.141.171]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 8EF845C1B3F for ; Mon, 13 Nov 2006 10:38:27 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id EEF6580003 for ; Mon, 13 Nov 2006 10:38:24 +0200 (EET) Received: from rhea.ceid.upatras.gr ([127.0.0.1]) by localhost (rhea [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24725-03 for ; Mon, 13 Nov 2006 10:38:23 +0200 (EET) Received: from ace.b020.ceid.upatras.gr (unknown [150.140.143.234]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id A925280004 for ; Mon, 13 Nov 2006 10:38:19 +0200 (EET) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id 698BB54; Mon, 13 Nov 2006 10:38:19 +0200 (EET) Date: Mon, 13 Nov 2006 10:38:19 +0200 From: Nikos Ntarmos To: freebsd-java@freebsd.org Message-ID: <20061113083818.GA72933@ace.b020.ceid.upatras.gr> Mail-Followup-To: freebsd-java@freebsd.org References: <20061110221501.GC72658@ace.b020.ceid.upatras.gr> <20061111035758.GA88440@ace.b020.ceid.upatras.gr> <20061112.214630.485563740.shudo@utagoe.com> <20061113001106.GA74300@ace.b020.ceid.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061113001106.GA74300@ace.b020.ceid.upatras.gr> Organization: NetCInS Lab., C.E.I.D., U. of Patras, Greece WWW-Homepage: http://ntarmos.dyndns.org/ X-PGP-Fingerprint: 9680 60A7 DE60 0298 B1F0 9B22 9BA2 7569 CF95 160A Office-Phone: +30-2610-996919 Office-Fax: +30-2610-969011 GPS-Info: 38.31N, 21.82E User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: by amavisd-new at ceid.upatras.gr Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 09:32:01 -0000 Hi all. On Mon, Nov 13, 2006 at 02:11:06AM +0200, Nikos Ntarmos wrote: > My guess is that this is not a system-related or a jvm-tweaking issue, > but something that has to do with either the threading library or the > intrinsics of hotspot on bsd... > > Anyway, after a day of profiling and tweaking ad nauseum I got the > runtime from ~4700'' down to ~270'' on freebsd. Only now win32 does it > in ~80-85'' which is still a factor of ~3x-3.5x)... FWIW java/linux-sun-jdk15 gives me more-or-less the same runtime figures as if running my code on linux. Well, the -server vm dies with an Internal Error 4E4D4554484F440E4350500525 (even if ran with -XX:ParallelGCThreads=1, as suggested in [1]), but -client does the work just fine (i.e. total execution time ~85-90'' with linux-sun-jdk15 on freebsd, nearly identical figures with sun-jdk15 on linux, and ~80-85'' with sun-jdk15 on win32). \n\n [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6337544