From owner-freebsd-questions@FreeBSD.ORG Fri Jun 3 19:03:07 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 EF79816A41C for ; Fri, 3 Jun 2005 19:03:07 +0000 (GMT) (envelope-from vdm.fbsd@virgilio.it) Received: from vsmtp14.tin.it (vsmtp14.tin.it [212.216.176.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9818F43D49 for ; Fri, 3 Jun 2005 19:03:07 +0000 (GMT) (envelope-from vdm.fbsd@virgilio.it) Received: from [192.168.10.8] (62.211.199.251) by vsmtp14.tin.it (7.0.027) id 429D6F26000FF1D3 for freebsd-questions@freebsd.org; Fri, 3 Jun 2005 21:03:05 +0200 From: Vittorio De Martino To: freebsd-questions@freebsd.org Date: Fri, 3 Jun 2005 21:02:40 +0200 User-Agent: KMail/1.8 References: <200506022217.13628.vdm.fbsd@virgilio.it> <20050602203505.GE1432@rabbit> In-Reply-To: <20050602203505.GE1432@rabbit> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200506032102.40332.vdm.fbsd@virgilio.it> 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: Fri, 03 Jun 2005 19:03:08 -0000 Alle 22:35, gioved=EC 02 giugno 2005, Mark Bucciarelli ha scritto: > 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! Mark, after some other trial I decided in the end to concentrate on an=20 application, R, trying to extract the best out of it in term of performance= =2E=20 That's why I deinstalled both in gentoo and in freebsd R, downloaded the=20 2.0.1 source tarball from the r-project , compiled it in both OSs with the= =20 same configuration and options. Now it happens that one test program working only in memory is executed in= =20 almost the same time in linux and in freebsd (a bit longer under win xp). Another R test program working mainly in memory but producing a lot of outp= ut=20 on the screen of the text console, works happily and fast in linux bash=20 console whilst in freebsd csh console I see the R program to start happily= =20 and the output flowing rapidly on the screen, after some time it starts=20 slowing down, then clogging. In the end it takes twice as much time to=20 complete with respect to gentoo! Could the difference be the bash in linux and csh in freebsd shell?=20 Suggestions? Vittorio =20