Strog
February 27th, 2003, 12:53
This was deviating from the original thread(http://screamingelectron.org/phpBB2/viewtopic.php?t=304) so I started it over here in the FreeBSD Kernel section. 8)
Kernel_Killer:
Is there something that needs to be done for optimization for AMD CPUs? I noticed a drop of performance when switching to FreeBSD with my AthlonXP.
Soup4you2:
i believe there's a kernel option i might have this wrong i cant get into my box w/ the athlon at the moment.. but athlon_sse_hack
Here's the cpu portion of my dmesg on my 4.7-stable box.
[code:1:c100218a30]CPU: AMD Athlon(TM) XP1800+ (1560.35-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x662 Stepping = 2
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE, CX8,SEP,MTRR,PGE,MCA,CMOV,PA
T,PSE36,MMX,FXSR,SSE>
AMD Features=0xc0400000<AMIE,DSP,3DNow!>[/code:1:c100218a30]
You can see SSE is in there so we add "options CPU_ENABLE_SSE " to the kernel. The athlon_sse_hack is for when your bios isn't enabling it. It's not needed if your bios is playing nice but it doesn't hurt to have it in there. Either way make sure and add the SSE option too. USER_LDT is needed by many multimedia apps so add that if you haven't already for Nvidia drivers.
I've seen conflicting thoughts on the CPU_FASTER_5X86_FPU option for an Athlon or AthlonXP. I guess a little benchmarking is in order.
Kernel_Killer:
Is there something that needs to be done for optimization for AMD CPUs? I noticed a drop of performance when switching to FreeBSD with my AthlonXP.
Soup4you2:
i believe there's a kernel option i might have this wrong i cant get into my box w/ the athlon at the moment.. but athlon_sse_hack
Here's the cpu portion of my dmesg on my 4.7-stable box.
[code:1:c100218a30]CPU: AMD Athlon(TM) XP1800+ (1560.35-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x662 Stepping = 2
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE, CX8,SEP,MTRR,PGE,MCA,CMOV,PA
T,PSE36,MMX,FXSR,SSE>
AMD Features=0xc0400000<AMIE,DSP,3DNow!>[/code:1:c100218a30]
You can see SSE is in there so we add "options CPU_ENABLE_SSE " to the kernel. The athlon_sse_hack is for when your bios isn't enabling it. It's not needed if your bios is playing nice but it doesn't hurt to have it in there. Either way make sure and add the SSE option too. USER_LDT is needed by many multimedia apps so add that if you haven't already for Nvidia drivers.
I've seen conflicting thoughts on the CPU_FASTER_5X86_FPU option for an Athlon or AthlonXP. I guess a little benchmarking is in order.