[Lug-Nuts] compile otpimization

From: Scott Tyson (tysons@deepwell.com)
Date: Fri Oct 22 1999 - 16:52:57 PDT


Does anyone out there optimize their kernel compile for a specific Chip
I.E. Pentium, PentiumPro, PII etc? IF you have I'd be curious as to how
you did this. I've played with the /usr/src/linux/arch/i386/Makefile
and changed the -m486 to -mpentiumpro for my dual PII400 box and I also
tried the -march=686. The march option created some problems most
notably Quake2 didn't want to run for more than 20 minutes at a stretch.
A big deal when that is the reason for the server being in existence. .
I guess not having any instructions compatible with the 386 is a bad
thing (the -march option dictates what chipset to create instructions
for and the -m option deals with instruction scheduling from what I
know). Now if I had the source I could re-compile it with the same
optimizations :) The -pentiumpro option seems to help a bit from what I
can gather, maybe a few % in CPU cycles showing in top on large CPU
consuming processes but I'm not sure. Anyone else played with this?

Scott



This archive was generated by hypermail 2b29 : Fri Feb 11 2000 - 16:20:20 PST