From owner-freebsd-questions@FreeBSD.ORG Wed Jan 10 11:05:59 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 1CEC016A407 for ; Wed, 10 Jan 2007 11:05:59 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 84DC113C4B0 for ; Wed, 10 Jan 2007 11:05:58 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so62371uge for ; Wed, 10 Jan 2007 03:05:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=taP3iYq747JRzES+8m2RldLgXmcUDZKWvzQ94tFHBIZvdp1HjouJBVT9+ss+R2TvQSpS4i1iZ4e819JPwPFlFxaXpQND/xPaNXMtozjO4IgPAxpMTNebYfkU5AHwHeSwFp1VWfRYRP5YLDanwkTP4J++75qxdI1YD1OoBoA4KDU= Received: by 10.78.139.1 with SMTP id m1mr53507hud.1168427157494; Wed, 10 Jan 2007 03:05:57 -0800 (PST) Received: by 10.78.118.10 with HTTP; Wed, 10 Jan 2007 03:05:57 -0800 (PST) Message-ID: Date: Wed, 10 Jan 2007 05:05:57 -0600 From: "Nikolas Britton" To: "Oliver Fromme" In-Reply-To: <200701090946.l099kYd9095511@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200701090946.l099kYd9095511@lurza.secnetix.de> Cc: freebsd-questions@freebsd.org 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 11:05:59 -0000 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