From owner-freebsd-cluster Tue Jun 25 11:53:24 2002 Delivered-To: freebsd-cluster@freebsd.org Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by hub.freebsd.org (Postfix) with ESMTP id 78EC337B4FC for ; Tue, 25 Jun 2002 11:52:28 -0700 (PDT) Received: from fwd03.sul.t-online.de by mailout10.sul.t-online.com with smtp id 17MvQP-0006gX-09; Tue, 25 Jun 2002 20:52:25 +0200 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[217.83.31.126]) by fmrl03.sul.t-online.com with esmtp id 17MvQf-28tIPYC; Tue, 25 Jun 2002 20:52:41 +0200 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.11.6/8.11.6) with ESMTP id g5PIqGx13351; Tue, 25 Jun 2002 20:52:16 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.3/8.12.3) with ESMTP id g5PIq9X4002484; Tue, 25 Jun 2002 20:52:13 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200206251852.g5PIq9X4002484@Magelan.Leidinger.net> Date: Tue, 25 Jun 2002 20:52:08 +0200 (CEST) From: Alexander Leidinger Subject: Re: CPU-intensive Kernel Optimizations To: lancew@psu.edu Cc: freebsd-cluster@FreeBSD.ORG In-Reply-To: <91142972-8864-11D6-AD49-00039357F10C@psu.edu> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 25 Jun, Lance M.Westerhoff wrote: > required for web applications. Does anyone know of any good kernel > options I should be compiling in (or out)? etc? Have a look at /sys/i386/conf/LINT: - only use the "cpu *_CPU" you need (I686_CPU in your case) - have a look at "options CPU_*" /etc/make.conf: - set CFLAGS, COPTFLAGS and CPUTYPE to fit your needs (you better recompile everything after that, don'T forget a "make clean" in your kernel directory), e.g.: * CPUTYPE=i686 * COPTFLAGS= -Os -pipe -mcpu=i686 * CFLAGS= -Os -pipe -mcpu=i686 And perhaps you want to patch the kernel, see http://www.leidinger.net/FreeBSD/misc-patches/kern_exec.c.patch And then there is ths icc port, Intels C compiler for linux. It is able to produce native FreeBSD executables. You can't compile the kernel (yet) with it, but it speeds up your app upto 20%. Bye, Alexander. -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message