From owner-freebsd-questions@FreeBSD.ORG Sat May 27 18:14:35 2006 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 1D55E16C8B8 for ; Sat, 27 May 2006 18:14:35 +0000 (UTC) (envelope-from lukas@razik.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id 319DB43D5D for ; Sat, 27 May 2006 18:14:33 +0000 (GMT) (envelope-from lukas@razik.de) Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id 80983365F70A; Sat, 27 May 2006 20:14:32 +0200 (CEST) Received: from [84.63.8.138] (helo=[192.168.0.7]) by smtp05.web.de with asmtp (WEB.DE 4.107 #114) id 1Fk3J2-0002ke-00; Sat, 27 May 2006 20:14:32 +0200 Message-ID: <4478976C.8000207@razik.de> Date: Sat, 27 May 2006 20:16:12 +0200 From: Lukas Razik User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.12) Gecko/20050920 X-Accept-Language: de, en MIME-Version: 1.0 To: Maan Jee References: <2cd0a0da0605271024s3d554af4w8ff7db780a15c568@mail.gmail.com> In-Reply-To: <2cd0a0da0605271024s3d554af4w8ff7db780a15c568@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: lukas@razik.de X-Sender: lukasrazik@web.de Cc: freebsd-questions@freebsd.org Subject: Re: Compiling Kernel for Computer with 2 CPUs 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: Sat, 27 May 2006 18:14:51 -0000 Hello! You need this option/device in your KERNCONF file: options SMP device apic For better performance comment out SCHED_4BSD: #options SCHED_4BSD And take this: options SCHED_ULE You could also try these optimizations: makeoptions COPTFLAGS="-O2 -pipe -funroll-loops -ffast-math" Read this: http://www.de.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html http://www.silverwraith.com/papers/freebsd-kernel.php > Another thing, is it a good box for running a webserver with mysql-database > or should I buy one? Normally it is but it depends on the load... And more important than the number of CPUs could be the RAM... Regards, Lukas