From owner-freebsd-questions@FreeBSD.ORG Mon Jan 4 22:28:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD267106566B; Mon, 4 Jan 2010 22:28:52 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 81CF48FC08; Mon, 4 Jan 2010 22:28:52 +0000 (UTC) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.3/8.14.3) with ESMTP id o04MSosL018008; Mon, 4 Jan 2010 14:28:51 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.3/8.14.3/Submit) id o04MSnBs018007; Mon, 4 Jan 2010 14:28:49 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 4 Jan 2010 14:28:49 -0800 From: Greg Lewis To: Dino Vliet Message-ID: <20100104222849.GA17741@misty.eyesbeyond.com> References: <775261.19437.qm@web51107.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <775261.19437.qm@web51107.mail.re2.yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: simon@olofsson.de, glewis@freebsd.org, freebsd-questions@freebsd.org Subject: Re: tweak FreeBSD 8 for optimal java/weka performance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2010 22:28:52 -0000 On Mon, Jan 04, 2010 at 06:54:22AM -0800, Dino Vliet wrote: > Dear freebsd people, > ? > in a few days I will install freebsd 8.0 amd64 on my 8GB RAM dual core > machine and use the system as a application server. I will install > the /usr/ports/textproc/weka toolkit, a program written in java. I > will use the diablo jdk port in /usr/ports/java. > ? > Due to the nature of the research I will be doing I will need to max > out my machine for optimal java performance. For example, I will use > the?-Xmx7g flag frequently to set?the maximun java heap size?to 7GB. > ? > Are there any other tweaks I should think of to get as much RAM for > my java programs? > Like building custom and small kernel, in order to minimize te size > of the kernel? > ? I'd recommend using openjdk6 instead of Diablo if you want to maximise performance. Diablo is getting old and isn't available natively for 8.x (its runs as a compatible binary with the compat7x port installed). IIRC there is an option to tell the JVM to use as much RAM as possible, but I don't recall it off the top of my head. There should be some docs on this on the main Java site at Sun and they will be equally relevant to FreeBSD as they are to any other OS. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org