From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 11:28:14 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 618F916A416 for ; Mon, 13 Nov 2006 11:28:14 +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 6069443D45 for ; Mon, 13 Nov 2006 11:28:05 +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 911135C1B1A for ; Mon, 13 Nov 2006 13:28:05 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id 307D480006 for ; Mon, 13 Nov 2006 13:28:03 +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 11892-06 for ; Mon, 13 Nov 2006 13:28:01 +0200 (EET) Received: from ace.b020.ceid.upatras.gr (unknown [150.140.143.234]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id 7C31580003 for ; Mon, 13 Nov 2006 13:28:01 +0200 (EET) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id 07EB054; Mon, 13 Nov 2006 13:28:01 +0200 (EET) Date: Mon, 13 Nov 2006 13:28:01 +0200 From: Nikos Ntarmos To: freebsd-java@freebsd.org Message-ID: <20061113112801.GB72933@ace.b020.ceid.upatras.gr> Mail-Followup-To: freebsd-java@freebsd.org References: <20061110203714.GA89006@ace.b020.ceid.upatras.gr> <4554F4C6.3090802@infracaninophile.co.uk> <20061110223236.GD72658@ace.b020.ceid.upatras.gr> <200611130959.49073.achill@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200611130959.49073.achill@matrix.gatewaynet.com> 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 11:28:14 -0000 Γειά σου Αχιλλέα. On Mon, Nov 13, 2006 at 09:59:48AM +0200, Achilleas Mantzios wrote: > Did you benchmark you whole system (apart from java) using some well > known benchmark? I used sysbench on fbsd and linux, with fbsd being the clear winner in the memory, threads, and mutex tests. I didn't bother to look into any other low-level benchmarks, since I'me convinced that it's not a system-specific problem, but a jvm-related one. > -server 1.4.2 (even linux-jdk) on my workstation some times runs > faster than our Linux dual xeon 3.2GHZ server. You're not the only one to praise 1.4's peformance in this thread. I'll surely try to convert the code to compile with 1.4, but that's somewhat low on my task list at the moment. > Also i dont remember answering the /etc/malloc.conf question. Linking > this to "aj" could make a *huge* difference (if you are on current). > Also trying removing any debugging from your kernel. I have no malloc.conf or MALLOC_OPTIONS and libc is (now) compiled with NO_MALLOC_EXTRAS=yes. The kernel is stripped of WITNESSES, INVARIANTS, etc. Moreover, I've tested with AUTO_EOI_1, AUTO_EOI_2, polling, HZ=100/1000, etc. on and off (nearly all possible combinations). > If your system proves to be *generally* slower than the rest 2, then > we got a FreeBSD issue here. else it is a java-related matter. As I also mentioned in another post in this thread, java/linux-sun-jdk15 -client on freebsd does almost as well as jdk15 on linux. This, among others, testifies to the fact that it's rather a java-on-freebsd issue. > Anyway in the meantime i wish you to solve the problem > and stick all the way with FreeBSD! For the time being I do all the coding, compiling, etc using java/jdk15 and execution using java/linux-sun-jdk15. However, I'd truly like to see this performance gap going down. There are some obvious freebsd-specific micro-optimizations (such as the clock_gettime(CLOCK_REALTIME_FAST, ...) vs clock_gettime(CLOCK_REALTIME, ...) I've already mentioned), that could go into the bsd patchset. Moreover, I'm convinced that profiling and/or auditing of the *BSD-specific HotSpot code could pinpoint some performance bottlenecks. However, these are also somewhat low on my tasklist for the next couple of weeks. Cheers. \n\n