From owner-freebsd-stable@FreeBSD.ORG Fri Oct 12 10:11:09 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC29F16A418 for ; Fri, 12 Oct 2007 10:11:09 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 88E8713C458 for ; Fri, 12 Oct 2007 10:11:09 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-31-60.bredband.comhem.se ([83.253.31.60]:59853 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1IgHU4-0004de-5F for freebsd-stable@freebsd.org; Fri, 12 Oct 2007 12:11:08 +0200 Received: (qmail 70709 invoked from network); 12 Oct 2007 12:11:05 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 12 Oct 2007 12:11:05 +0200 Received: (qmail 30018 invoked by uid 1001); 12 Oct 2007 12:11:05 +0200 Date: Fri, 12 Oct 2007 12:11:05 +0200 From: Erik Trulsson To: Artem Kuchin Message-ID: <20071012101105.GA29978@owl.midgard.homeip.net> Mail-Followup-To: Artem Kuchin , freebsd-stable@freebsd.org References: <024901c80cb6$f49696b0$0c00a8c0@Artem> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <024901c80cb6$f49696b0$0c00a8c0@Artem> User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.31.60 X-Scan-Result: No virus found in message 1IgHU4-0004de-5F. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1IgHU4-0004de-5F 7d2bb741175c6b1a12f697a1dac640a9 Cc: freebsd-stable@freebsd.org Subject: Re: how to compiel kernel and world to maxium optimization X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2007 10:11:09 -0000 On Fri, Oct 12, 2007 at 02:02:09PM +0400, Artem Kuchin wrote: > Hello! > > Somehow, i cannot find info now how to build kernel and world > very optimized to a particular machine. Maybe i am not looking > hard enough? > > The point is that if i have Xeon HT cpus (not very new, but > definitelly not Pentium PRO :) i can build kernel and world > using insttructions for this CPU and optimization for it, so > i would get myself a speedy system and less memory hungry, right? > > The only option known to me which is related to the isee is cpu > setting in kernel config file. Anything else? > > Thank you very much in advance You can set CPUTYPE in /etc/make.conf to have the compiler do some CPU-specific optimizations. You can also set CFLAGS/COPTFLAGS (for world/kernel) in /etc/make.conf to whatever flags the compiler supports. Don't complain if anything breaks though - you are only supposed to touch those flags if you know what you are doing. Don't expect any major (or even noticable) improvements from these settings though. -- Erik Trulsson ertr1013@student.uu.se