From owner-freebsd-questions@FreeBSD.ORG Mon Jan 15 19:58:42 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D054116A51E for ; Mon, 15 Jan 2007 19:58:42 +0000 (UTC) (envelope-from daniel.tourde@spray.se) Received: from mxfep03.bredband.com (mxfep03.bredband.com [195.54.107.76]) by mx1.freebsd.org (Postfix) with ESMTP id 48C2213C44B for ; Mon, 15 Jan 2007 19:58:40 +0000 (UTC) (envelope-from daniel.tourde@spray.se) Received: from ironport2.bredband.com ([195.54.107.84] [195.54.107.84]) by mxfep02.bredband.com with ESMTP id <20070115194233.BRYW2832.mxfep02.bredband.com@ironport2.bredband.com> for ; Mon, 15 Jan 2007 20:42:33 +0100 Received: from c-768572d5.023-68-73746f42.cust.bredbandsbolaget.se (HELO maerlyn.bredbandsbolaget.se) ([213.114.133.118]) by ironport2.bredband.com with ESMTP; 15 Jan 2007 20:42:33 +0100 From: Daniel Tourde To: freebsd-questions@freebsd.org Date: Mon, 15 Jan 2007 20:42:35 +0100 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701152042.35724.daniel.tourde@spray.se> Subject: FreeBSD 6.2, rebuild the system with CPUTYPE=prescott? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: daniel.tourde@spray.se List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:58:42 -0000 Hello, Let me present myself: - I am an advanced user of Gentoo Linux. I know quiet a lot about that system and about how to optimize it to fit the hardware the best possible way. - I am a casual FreeBSD user. I like it a lot though, it is lean and very well structured. I am the happy own of a Dell Inspiron 9400 with a Dual Core processor in it (note, not a Dual Core 2). http://gentoo-wiki.com/Safe_Cflags gives some information about this processor and about the parameter to give to gcc to obtain the best out of it: Intel Core Solo/Duo (Yonah) vendor_id : GenuineIntel cpu family : 6 model : 14 model name : Genuine Intel(R) CPU [Model] @ XXXGHz (the above info is from a T2400, other models may have different cpu families and model numbers) CHOST="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" This is a 32bit chip Note: It has been confirmed by hongjiu.lu@intel.com that prescott is the correct microarchitecture to use with this CPU. So now, I am trying to rebuild my FreeBSD 6.2 system playing a bit with the parameters in the make.conf file (see /usr/share/examples/etc/make.conf) to get the best out of my machine (double processor, MMX, SSE[1-3] and co...) #CPUTYPE?=pentium3 #NO_CPU_CFLAGS= # Don't add -march= to CFLAGS automatically #NO_CPU_COPTFLAGS= # Don't add -march= to COPTFLAGS automatically So far, the only thing I did was to set CPUTYPE to pentium4 but I am pretty sure, it can be done in a better way. The question being 'how?' So, can anyone guide me? Daniel