From owner-freebsd-java@FreeBSD.ORG Fri Nov 10 20:40:07 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 2410816A4B3 for ; Fri, 10 Nov 2006 20:40:07 +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 089B743DD8 for ; Fri, 10 Nov 2006 20:38:09 +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 BA0D55C1B46 for ; Fri, 10 Nov 2006 22:38:07 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id B804780002 for ; Fri, 10 Nov 2006 22:38:05 +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 23438-07 for ; Fri, 10 Nov 2006 22:38:04 +0200 (EET) Received: from ace.b020.ceid.upatras.gr (unknown [150.140.143.234]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id 35FB180001 for ; Fri, 10 Nov 2006 22:38:04 +0200 (EET) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id A318E54; Fri, 10 Nov 2006 22:37:14 +0200 (EET) Date: Fri, 10 Nov 2006 22:37:14 +0200 From: Nikos Ntarmos To: freebsd-java@freebsd.org Message-ID: <20061110203714.GA89006@ace.b020.ceid.upatras.gr> Mail-Followup-To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: 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: Fri, 10 Nov 2006 20:40:07 -0000 Hi all. I've spent the last week or so running the exact same Java code on the exact same hardware, under different OSs. The code i'm running is heavily cpu-bound (no i/o other than light logging), uses a lot of memory (~1G), and does not rely on threading libraries (i.e. the program creates two threads when it starts and that's all about it). I'm running a small and a large version of the program (wrt memory requirements and run-time). The average execution time for the small version goes from ~200'' under win32, to ~220'' under linux, and to ~800'' under freebsd. For the large version, the numbers are ~1600'' for win32, ~1800'' for linux, and ~4700'' for freebsd. This is all on a 1.7GHz Pentium-M laptop with 1G RAM (dmesg at http://ntarmos.dyndns.org/Computers/dmesgs/ace.dmesg), running -current as of Sep 29. The JDKs tested are diablo-jdk15 (1.5.0.07.01) and sun-jdk15 (1.5.0p6) for FreeBSD, and sun-jdk15 (1.5.0_07) for linux and win32. Does anybody else see such a performance drop across OSs? Is there some specific (known) reason why freebsd lags behind the other two OSs by this 3x-4x factor? Any pointers as to some (sysctl or other) knob I've missed? Thanks in advance. \n\n