From owner-freebsd-questions@FreeBSD.ORG Wed Jan 10 12:34:07 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 7D45C16A403 for ; Wed, 10 Jan 2007 12:34:07 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5C2CB13C43E for ; Wed, 10 Jan 2007 12:34:07 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0ACY6NZ031652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 10 Jan 2007 04:34:07 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0ACY6DT023656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 10 Jan 2007 04:34:06 -0800 Message-ID: <45A4DD3D.3040607@u.washington.edu> Date: Wed, 10 Jan 2007 04:34:05 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070109) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200701090946.l099kYd9095511@lurza.secnetix.de> In-Reply-To: X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.10.41933 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: /etc/make.conf CPUTYPE question (nacona vs. pentium4) 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: Wed, 10 Jan 2007 12:34:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nikolas Britton wrote: > On 1/9/07, Oliver Fromme wrote: >> Hi, >> >> I'm trying to write an appropriate CPUTYPE entry for >> /etc/make.conf for the following machine: >> >> CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2799.95-MHz 686-class CPU) >> Origin = "GenuineIntel" Id = 0xf41 Stepping = 1 >> Features=0xbfebfbff> SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH, >> DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> >> Features2=0x441d> >> Logical CPUs per core: 2 >> >> I've read the appropriate sections in the make.conf(5) >> manpage, /usr/share/examples/etc/make.conf and even >> /usr/share/mk/bsd.cpu.mk, but they don't really help. >> >> So far I've been using "CPUTYPE=pentium4", but I wonder >> if "nocona" would be better, however I'm not sure if my >> CPU above qualifies as a nocona one. I think the main >> difference is that nocona supports SSE3, and SSE3 is >> indeed listed in the CPU features above, so ... >> >> Does anybody know for sure? Thank you very much in advance! >> >> Best regards >> Oliver >> > > nocona I believe added 64-bit extensions to the processor. Does your > processor have 64-bit extensions? A better make.conf would be > something like this though: > > CPUTYPE?=pentium3 > CFLAGS+= -mtune=nocona > COPTFLAGS+= -mtune=nocona > > or > > CPUTYPE?=pentium3 > CFLAGS+= -mtune=prescott > COPTFLAGS+= -mtune=prescott > > then use an if endif block to override system wide settings, such as > with this example: > > .if ${.CURDIR:M*/databases/mysql*} > BROKEN=yes > .endif Oliver, It appears that there may be some confusion as to which processor you are running in your machine. You can better determine what processor you have by looking at the Intel processor number site: . By looking at both the frequency and the cache size, you can determine what your CPU is and what support you should enable. If you know the purchase / build date for your CPU you can also determine what the model is for the processor as well much better. If your CPU does support nocona, you might want to try enabling the support, but as others have said you may want to strictly add support like Nikolas showed, just to be on the safe side. I'm not sure how well supported the nocona P4 architecture is with the version of GCC used by FreeBSD. Nikolas, You are correct. The nocona CPUs are dual-core (only?) 32/64bit capable EM64T processors. - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFpN09EnKyINQw/HARAtFhAJ0bwguE3KaeajJWjN/rhsI3zBpSLQCdHBVm WcKhstnftKsEI4dhfe1fVfI= =yb3C -----END PGP SIGNATURE-----