From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 26 03:34:51 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 8D48516A468; Tue, 26 Jun 2007 03:34:51 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id 62F5413C465; Tue, 26 Jun 2007 03:34:51 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.05) with ESMTP id l5Q3YokC000993 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 25 Jun 2007 20:34:50 -0700 X-Auth-Received: from [192.168.10.45] (c-24-10-12-194.hsd1.ca.comcast.net [24.10.12.194]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l5Q3Ynie004905 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 25 Jun 2007 20:34:50 -0700 Message-ID: <4680895A.5060700@u.washington.edu> Date: Mon, 25 Jun 2007 20:34:50 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Martin Turgeon References: <467EF0C1.1010609@optiksecurite.com> <467FFF41.10204@math.missouri.edu> <20070625192308.GA14544@freebsd.org> <18048.12032.316862.338084@bhuda.mired.org> <468033A8.8060103@gmail.com> In-Reply-To: <468033A8.8060103@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.6.25.201734 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, __USER_AGENT 0' Cc: freebsd-hackers@freebsd.org, Roman Divacky , Mike Meyer 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: Tue, 26 Jun 2007 03:34:51 -0000 Martin Turgeon wrote: > Mike Meyer a écrit : >> 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 >> > > Thanks a lot for the precision, I will use nocona for my dual core Xeon. > > Martin Sorry for not having a reference but it came from an Intel internal site. Here are the highlights for some of the past players: Cedar Mill: Last P4 processor. Followup to Prescott. Conroe: Desktop version of the Core2Duo processor. Mobile equivalent is Merom. Dothan: 2nd gen. Pentium M CPU. Nocona: Xeon server processor code name -- first CPU with EMT64 (amd64) compatibility [and hence first non-IA64 bit Xeon processor to feature 64-bit compatibility; not sure if it was the first non-IA64 64-bit designed Intel processor]. Prescott: Single-core processor with HTT. Base CPU for [later generation] P4 processors, and the dual core Pentium D [basically the larger cousin of the Northwood CPUs]. Prescott was compacted into Cedar Mill -- from a 90nm (?) process to 65nm. Sossaman: Dual-core Xeon processor, based off of Yonah. Woodcrest: Server version of Conroe/Merom. Yonah: First Duo/Solo processor. Based off of Dothan. Some people have claimed that pentium-m is better for Core * based processors because of the shorter pipelines and lower frequency (found via a google discussion about gcc and -march, but I can't be sure of its validity), but pentium-m is a 32-bit CPU, thus it's not an option for 64-bit computing. Intel suggests using -march=prescott (32-bit) and -march=nocona (64-bit) with gcc on Core2Duo processors and equivalent Xeons. You can also find your CPU's type by going to this page: http://www.intel.com/products/server/processors/index.htm?iid=serv_body+proc, and searching for the appropriate model number. Your frequency and model should be reported in your BIOS, if not the first couple lines of dmesg in FreeBSD. Cheers, -Garrett