From owner-freebsd-questions@FreeBSD.ORG Thu Feb 8 20:08:53 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 D83D816A401 for ; Thu, 8 Feb 2007 20:08:53 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id C88C513C48E for ; Thu, 8 Feb 2007 20:08:53 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 997CD1A3C1C; Thu, 8 Feb 2007 12:08:53 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6C721512F4; Thu, 8 Feb 2007 15:08:52 -0500 (EST) Date: Thu, 8 Feb 2007 15:08:52 -0500 From: Kris Kennaway To: John Nielsen Message-ID: <20070208200852.GA27961@xor.obsecurity.org> References: <3648a9d10702080816t2d38d4dbx7b6b54d544367f79@mail.gmail.com> <200702081155.24446.lists@jnielsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702081155.24446.lists@jnielsen.net> User-Agent: Mutt/1.4.2.2i Cc: Philip Radford , freebsd-questions@freebsd.org Subject: Re: FreeBSD 5.4 on a Pentium 4 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: Thu, 08 Feb 2007 20:08:53 -0000 On Thu, Feb 08, 2007 at 11:55:24AM -0500, John Nielsen wrote: > On Thursday 08 February 2007 11:16, Philip Radford wrote: > > Hi all, > > > > Just wondering if anyone could help me out with an issue on FreeBSD which > > has been puzzling me for a while and only now do I have the time to go and > > figure it out. > > > > We currently have version 5.4 installed but understand that the > > architecture it is set up for is a generic i386. > > > > How do I go about optimising my base system and/or installed ports to > > recognise my CPU as an i686 and therefore make use of this type of CPU. > > > > I have enclosed the first part of my dmesg output to identify the CPU. > > > > CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3000.12-MHz 686-class CPU) > > Origin = "GenuineIntel" Id = 0xf41 Stepping = 1 > > > > Features=0xbfebfbff >A,C MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > > Hyperthreading: 2 logical CPUs > > Add "CPUTYPE?=pentium4" to /etc/make.conf. > > Remove the "cpu I486_CPU" and "cpu I586_CPU" lines from your kernel config (if > present), leaving only "cpu I686_CPU". Rebuild your kernel, world, and ports. Correct as far as it goes, but the OP will see a much bigger performance gain by updating to 6.x than the negligible gains from recompiling with different compiler optimizations. Kris