Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2009 16:55:55 -0800
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        Howard Leadmon <howard@leadmon.net>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: Intel Xeon Processor kernel compile CPU type.
Message-ID:  <7d6fde3d0902201655r5a69985cubd8f21fb38b0771@mail.gmail.com>
In-Reply-To: <01b401c993b5$525b7960$f7126c20$@net>
References:  <9D0C41D6-5EDB-4D17-8258-352FE8ADAFBD@chesterdkat.com> <499DAAF8.4030005@dir.bg> <6101e8c40902191108w2234b13k84466dfd9f1fe4ee@mail.gmail.com> <013f01c99364$5689e4a0$039dade0$@net> <20090220185928.GB7314@slackbox.xs4all.nl> <01b401c993b5$525b7960$f7126c20$@net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 20, 2009 at 3:45 PM, Howard Leadmon <howard@leadmon.net> wrote:
> Good, so nocona is really the right one to specify.   Good to know I have
> been doing it correctly on my x64 machines, and heck nice document/defines
> there, I'll keep that in my notes so I know how to find stuff like that in
> the future..
>
>
> ---
> Howard Leadmon
>
>
>> -----Original Message-----
>> From: Roland Smith [mailto:rsmith@xs4all.nl]
>> Sent: Friday, February 20, 2009 1:59 PM
>> To: Howard Leadmon
>> Cc: 'Oliver Pinter'; freebsd-amd64@freebsd.org
>> Subject: Re: Intel Xeon Processor kernel compile CPU type.
>>
>> On Fri, Feb 20, 2009 at 09:05:46AM -0500, Howard Leadmon wrote:
>> >  I knew HAMMER was the only type for making your kernel, but what
>> CPUTYPE's
>> > are OK for 64bit?
>> <snip>
>> > CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2793.20-MHz K8-class CPU)
>> >   Origin = "GenuineIntel"  Id = 0xf48  Stepping = 8
>> >
>> >
>> Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,M
>> CA
>> > ,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>> >   Features2=0x649d<SSE3,RSVD2,MON,DS_CPL,EST,CNXT-ID,CX16,xTPR>
>> >   AMD Features=0x20100800<SYSCALL,NX,LM>
>> >   AMD Features2=0x1<LAHF>
>> >   Cores per package: 2
>> >   Logical CPUs per core: 2
>> > FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
>> >
>> >  So should this stuff be set to nocona, core2, or what??
>>
>> Have a look at /usr/share/mk/bsd.cpu.mk. If you are using the amd64
>> architecture, you can use CPUTYPE=prescott or CPUTYPE=core2, but both
>> will be converted to CPUTYPE=nocona. That's probably because that is the
>> latest variant that the gcc in base understands.

I know it's already been said, but Intel recommends (with the compiler
version that we have) to use prescott for i686 and nocona for amd64
because it best matches the caching / instruction scheduling for the
Core 2 CPU's.

If we actually move to gcc 4.3+ they have improved support for -march=core2.

HTH,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d6fde3d0902201655r5a69985cubd8f21fb38b0771>