From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 26 12:45:39 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 69FE616A41F for ; Tue, 26 Jun 2007 12:45:39 +0000 (UTC) (envelope-from egypcio@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.233]) by mx1.freebsd.org (Postfix) with ESMTP id 0CCC013C46E for ; Tue, 26 Jun 2007 12:45:38 +0000 (UTC) (envelope-from egypcio@gmail.com) Received: by nz-out-0506.google.com with SMTP id 34so791823nzf for ; Tue, 26 Jun 2007 05:45:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=n2dQHbslo2Gv6UVh95lZLvfMpy/2QCY7VnsCKYOEnSVjO012+RSq+XZNOhkBW6zNWPG2HU0tepKS7aE6ZfbQSPelyJz1B3vbelPCvF4wZZPk1RfYs7hsvn2rAT1jShmTXRGZs/6BlfcKv6CpLnPKu1gDVVgcGy/PIOEvUMrqWZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ncyHzH2dGlvuXGqVu3fMYgtJU3ZcWExHItD/Xx12kUI2pWpGpJk5xrd0FdWlDGwGUHGT3fKK2onBrLW0zo1DoE3ALWN6mo+5w61m+EisZnVlJfHEfTfuxrTwU48kE7KZ0cnUgGMGBE3Zs6k19ecZxJNertbdo8q++gTkMp9Kn9Q= Received: by 10.114.177.1 with SMTP id z1mr6397314wae.1182861938094; Tue, 26 Jun 2007 05:45:38 -0700 (PDT) Received: by 10.115.15.16 with HTTP; Tue, 26 Jun 2007 05:45:38 -0700 (PDT) Message-ID: <8b5ad0e10706260545u6ad0b0c6w209548293809e993@mail.gmail.com> Date: Tue, 26 Jun 2007 08:45:38 -0400 From: "=?ISO-8859-1?Q?Zavam,_Vin=EDcius?=" To: freebsd-hackers@freebsd.org In-Reply-To: <4680F1E3.1010306@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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> <4680895A.5060700@u.washington.edu> <18048.40555.876785.219568@bhuda.mired.org> <4680F1E3.1010306@u.washington.edu> 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 12:45:39 -0000 2007/6/26, Garrett Cooper : > Mike Meyer wrote: > > In <4680895A.5060700@u.washington.edu>, Garrett Cooper typed: > > > >> Martin Turgeon wrote: > >> > >>> Mike Meyer a =E9crit : > >>> > >>>> In <20070625192308.GA14544@freebsd.org>, Roman Divacky > >>>> typed: > >>>> 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 Xe= on. > >>> > > > > > >> Cedar Mill: Last P4 processor. Followup to Prescott. > >> 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 Ceda= r > >> Mill -- from a 90nm (?) process to 65nm. > >> > > > > From what I can tell, the Prescott went through a number of > > iterations; the first of them didn't have HTT, or had it but it was > > disabled. Later versions added that, EMT64, virtualization, and other > > things. If my information is correct, the nocona was the first version > > of the prescott core with em64t, and only used in Xeons. > > > There was a big difference between the Prescott CPU core and the Nocona > core though, in terms of technology (Pentium 4 vs Core/Core2). > Apparently the pipelines for the CPU were similar for the desktop CPU > though, some have claimed. I haven't looked at the RTL though, so I > can't be sure for myself whether or not that's the case. > > And yes, I believe prescott and following were 90nm until Cedar Mill. > > > Ok, that's what I thought (since fab screen size goes by 15nm each time > nowadays). > >> Intel suggests using -march=3Dprescott (32-bit) and -march=3Dnocon= a > >> (64-bit) with gcc on Core2Duo processors and equivalent Xeons. > >> > > > > Note that /usr/share/mk/sys.mk includes bsd.mk.cpu, which overrides > > CPUTYPE if it's set to prescott or nocona. It turns nocona into > > prescott if you're building for i386 and prescott into nocona if > > you're building for amd64. So the correct answer to the question "Do I > > set CPUTYPE to nocona or prescott in /etc/make.conf?" would seem to be > > "It doesn't matter." > Hmmm... interesting.. Seems like a bit ambitious for bsd.mk.cpu, if the u= ser knows what they're doing. > > >> You can also find your CPU's type by going to this page: > >> http://www.intel.com/products/server/processors/index.htm?iid=3Dserv_b= ody+proc, > >> and searching for the appropriate model number. Your frequency and mod= el > >> should be reported in your BIOS, if not the first couple lines of dmes= g > >> in FreeBSD. > >> > > > > I've never seen those report core names. Possibly you're referring > > specifically to the Xeon cpu model numbers? > > > Yeah, that's exactly what I meant. > -Garrett please correct me if I'm wrong, but gcc(1) can help us a bit also; http://www.freebsd.org/cgi/man.cgi?query=3Dgcc&sektion=3D1&format=3Dhtml z.B.: " (...) prescott Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support. nocona Improved version of Intel Pentium4 CPU with 64-bit extensions, MMX, SSE, SSE2 and SSE3 instruction set support. (...) athlon-4, athlon-xp, athlon-mp Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and full SSE instruction set support. k8, opteron, athlon64, athlon-fx AMD K8 core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.) (...) " --=20 Zavam, Vin=EDcius