From owner-freebsd-java@FreeBSD.ORG Tue Dec 12 15:29:27 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D6D316A4D2 for ; Tue, 12 Dec 2006 15:29:27 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from melon.pingpong.net (melon.pingpong.net [195.178.174.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65C2543E77 for ; Tue, 12 Dec 2006 15:24:09 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id 8761C5087D; Tue, 12 Dec 2006 16:25:42 +0100 (CET) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 58303-01-10; Tue, 12 Dec 2006 16:25:42 +0100 (CET) Received: from [192.168.1.187] (unknown [213.136.40.204]) by melon.pingpong.net (Postfix) with ESMTP id 220675087C; Tue, 12 Dec 2006 16:25:41 +0100 (CET) Date: Tue, 12 Dec 2006 16:25:29 +0100 From: Palle Girgensohn To: Nikos Ntarmos , freebsd-java@freebsd.org Message-ID: In-Reply-To: <20061110203714.GA89006@ace.b020.ceid.upatras.gr> References: <20061110203714.GA89006@ace.b020.ceid.upatras.gr> X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net Cc: 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: Tue, 12 Dec 2006 15:29:27 -0000 Hi! This mail thread died a while back. Any news, did you succeed in getting it faster? We are experiencing similar slowness with tomcat - it seems it runs much faster on Linux. I have not done any tests yet, it is just a feeling, but developers here are already moaning and want to replace FreeBSD with Linux. I'd love to get the BSD boxes running as fast instead... Any input appreciated. Regards, Palle --On fredag, november 10, 2006 22.37.14 +0200 Nikos Ntarmos wrote: > 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 > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"