From owner-freebsd-questions@FreeBSD.ORG Mon Jan 15 20:39:22 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 E4B5E16A415 for ; Mon, 15 Jan 2007 20:39:22 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id A9E9D13C471 for ; Mon, 15 Jan 2007 20:39:22 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0FKdMa4003312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 15 Jan 2007 12:39:22 -0800 X-Auth-Received: from [128.208.5.99] (nilakantha.cs.washington.edu [128.208.5.99]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0FKdL7X009315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 15 Jan 2007 12:39:22 -0800 Message-ID: <45ABE679.6080207@u.washington.edu> Date: Mon, 15 Jan 2007 12:39:21 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200701152042.35724.daniel.tourde@spray.se> <200701151515.34005.lists@jnielsen.net> In-Reply-To: <200701151515.34005.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.15.122432 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_PHRASE_24 0, __USER_AGENT 0' Subject: Re: FreeBSD 6.2, rebuild the system with CPUTYPE=prescott? 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: Mon, 15 Jan 2007 20:39:23 -0000 John Nielsen wrote: > On Monday 15 January 2007 14:42, Daniel Tourde wrote: > >> 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?' >> > > "prescott" is listed as an option for CPUTYPE > in /usr/share/examples/etc/make.conf. So "CPUTYPE?=prescott" > in /etc/make.conf should do fine for you. > > JN > Another thread to read: . -Garrett