From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 25 21:11:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 558CF16A480 for ; Mon, 25 Jun 2007 21:11:05 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id E8CDA13C483 for ; Mon, 25 Jun 2007 21:11:04 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 11255 invoked by uid 1001); 25 Jun 2007 21:09:21 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 25 Jun 2007 17:09:20 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18048.12032.316862.338084@bhuda.mired.org> Date: Mon, 25 Jun 2007 17:09:20 -0400 To: Roman Divacky In-Reply-To: <20070625192308.GA14544@freebsd.org> References: <467EF0C1.1010609@optiksecurite.com> <467FFF41.10204@math.missouri.edu> <20070625192308.GA14544@freebsd.org> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: CPUTYPE in general - was Re: Which CPUTYPE for a dualcore Xeon on AMD64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 21:11:05 -0000 In <20070625192308.GA14544@freebsd.org>, Roman Divacky typed: > you should know what cpu you bought, or just use cpuid (found in ports) > and determine what cpu you have. Knowing what CPU you bought doesn't help a lot for the case asked about of "nocona" vs. "prescott". Those are the names of P4 and Xeon cores, not CPUs - and not the last cores used in either line. cpuid will tell you what features your CPU supports, but not the name of the core. So it only helps if you know what you're looking for. P4 and Xeon are just marketing names, and the features available vary quite a bit across the lines. Even knowing the core names doesn't help, as some prescott cored P4s have all the gcc "nocona" features. Assuming the gcc man page is correct, use cpuid to check the feature sets of your CPU. If you don't have SSE2, then you should be using something prior to pentium 4. If you have SSE2 but not SSE3, then you want pentium-m, pentium4 or pentium4m. If you have SSE3, then you should be using either nocona or prescott. If you have 64 bit support, you want nocona, otherwise prescott. For the record, I believe the nocona cores are: pentium 4/some prescott, prescott 2m, cedar mill pentium D/all core 2 duo/all All xeons with sse3 except the sossaman cored Xeon LV. The prescott cores are: pentium 4/some prescott xeon lv (sossaman core) core solo core duo http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.