Re: Would a locally compiled kernel be faster?



On Fri, 07 Mar 2008 08:20:32 -0600, Ignoramus8691 wrote:

If I compile a kernel for my own CPU, would it optimize the resulting
binary executable code better than a kernel that comes with a distro?
How much of an improvement could I expect?

i

I'm certainly not an expert on such issues, but I think it could. Whether
there would be a significant difference would be problematic. You would
need to specify machine specific optimizations for your specific CPU. As
I understand, this is one of the strong points of Gentoo - if you know
what optimizations to make, everything is compiled from source and
tailored to your CPU. Knowing what settings to make is the kicker.
.



Relevant Pages

  • Re: [BUG] x86 kenel wont boot under Virtual PC
    ... Instead of just including optimizations for the selected ... The kernel will not necessarily run on earlier architectures ... I thought you agreed that CPU virtualization can be a problem? ... exactly how does the kernel fail to boot with latest -git? ...
    (Linux-Kernel)
  • Re: Would a locally compiled kernel be faster?
    ... If I compile a kernel for my own CPU, ... already available from your distro. ...
    (comp.os.linux.misc)
  • Re: -Os versus -O2
    ... On what CPU? ... different tricks to avoid poor optimizations, and at the end, the CPU ... Well you better report those! ... a kernel which is about 300 kB, or 700 kB with the initramfs. ...
    (Linux-Kernel)
  • Re: [BUG] x86 kenel wont boot under Virtual PC
    ... Under that logic we shouldn't even have CPU configurables, ... Instead of just including optimizations for the selected ... The kernel will not necessarily run on earlier architectures than ...
    (Linux-Kernel)
  • Re: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata
    ... "Select the CPU the kernel will be run on." ... you can pick one CPU. ... there is an "Advanced processor selection". ... Selecting this option disables some of the optimizations for the primary ...
    (Linux-Kernel)