View Single Post
  #1   (View Single Post)  
Old 5th May 2008
Grogan's Avatar
Grogan Grogan is offline
Port Guard
 
Join Date: May 2008
Location: Ontario, Canada
Posts: 23
Default FreeBSD amd64 arch Cpu type

Hello

I couldn't help but learn that people from the bsdforums are moving here, so I'll re-post my question.

I have an Intel Core 2 Quad Q6600 CPU and was wondering if there was a better cpu type than "Hammer" to use for this processor? Is it even possible to choose others for this arch? I figured that was probably the best target, (hence, the default for amd64), and it seems to detect my CPU's features correctly but is there something I could choose that's more optimal? I configured and built my kernel and it seems to run just fine but there's always that nagging doubt that I could have used something better

The NOTES only shows HAMMER

I thought I'd look through some of the cpu related stuff under /usr/src/sys/amd64 and found this. (cputypes.h)

Code:
/*
 * Classes of processor.
 */
#define	CPUCLASS_X86	0	/* X86 */
#define	CPUCLASS_K8	1	/* K8 AMD64 class */
/*

 * Kinds of processor.
 */
#define	CPU_X86		0	/* Intel */
#define	CPU_CLAWHAMMER	1	/* AMD Clawhammer */
#define	CPU_SLEDGEHAMMER 2	/* AMD Sledgehammer */
Would I be better off defining X86 instead (and still obviously have a 64 bit kernel)

This is what I get from dmesg (looks ok to me... detected as a K8-class)

Code:
CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (2400.01-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x6fb  Stepping = 11
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe3bd<SSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 4
Reply With Quote