From owner-freebsd-questions@FreeBSD.ORG Thu Jun 2 20:40:13 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4283216A41C for ; Thu, 2 Jun 2005 20:40:13 +0000 (GMT) (envelope-from mark@gaiahost.coop) Received: from biodiesel.gaiahost.coop (biodiesel.gaiahost.coop [64.95.78.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0771043D1F for ; Thu, 2 Jun 2005 20:40:12 +0000 (GMT) (envelope-from mark@gaiahost.coop) Received: from rabbit.hubcapconsulting.com (host-216-153-147-194.spr.choiceone.net [::ffff:216.153.147.194]) (AUTH: LOGIN mark@hubcapconsulting.com) by biodiesel.gaiahost.coop with esmtp; Thu, 02 Jun 2005 16:35:07 -0400 id 007FC090.429F6D7D.00002B88 Received: by rabbit.hubcapconsulting.com (sSMTP sendmail emulation); Thu, 2 Jun 2005 16:35:05 -0400 Date: Thu, 2 Jun 2005 16:35:05 -0400 From: Mark Bucciarelli To: freebsd-questions@freebsd.org Message-ID: <20050602203505.GE1432@rabbit> Mail-Followup-To: freebsd-questions@freebsd.org References: <200506022217.13628.vdm.fbsd@virgilio.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <200506022217.13628.vdm.fbsd@virgilio.it> User-Agent: Mutt/1.4.2.1i Subject: Re: Tuning FreBSD with specific applications 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: Thu, 02 Jun 2005 20:40:13 -0000 On Thu, Jun 02, 2005 at 10:17:13PM +0200, Vittorio De Martino wrote: > How could I obtain those improvements? What could I do to speed those > programs under freebsd? - Edit /etc/make.conf and set the processor and compiler optimizations. - Rebuild and install system (world and kernel) - Repost your results here. ;) The BSD handbook has good docs on the last step of this process. Coming from Gentoo, you probably have a good idea what to do in the first step. There is an example make.conf somewhere on you system you can look at for other things to set. If you want to get really detailed, look at the Makefile for R in it's ports directory. There may be some notes as to configure options and performance. FWIU, every port can have it's own set of configure options, and there is a way to put conditionals inside make.conf; for example, if in this ports directory, set this option. I haven't used that yet, but if you search the archives here you will find an example. BTW, don't mess around with the new scheduler. Just use the old BSD one. I did some testing (recompiled gcc) and the old one was faster on a dual processor system. From what someone told me on #freebsd, it works but is not optimized yet. Also, there are somethings you should do when testing speed. You can google to find the references, here's the two items I remember: - use single user mode (no cron) - unplug network cable (no broadcast packets) Have fun! m