[lkml]   [2010]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 03/13] jump label v9: x86 support
    On Thu, Jun 10, 2010 at 02:14:40PM +0200, Ingo Molnar wrote:
    > * Peter Zijlstra <> wrote:
    > > On Wed, 2010-06-09 at 17:39 -0400, Jason Baron wrote:
    > >
    > > That deserves a comment somewhere, it basically makes OPTIMIZE_FOR_SIZE
    > > useless...
    > Hm, we need more than a comment for that - distros enable CC_OPTIMIZE_FOR_SIZE
    > all the time, for the massive kernel image (and hotpath cache footprint)
    > savings. Is this fixable?

    Actually the big distros (RHEL, SLES) disable it all the time now. It costs you
    in some benchmarks. The code generated by -Os is often terrible.

    Nearly everytime I investigate some bad asm code being generated by gcc
    it goes away when that flag is disabled.

    A much better to get smaller kernel images is to do more __cold
    annotations for slow paths. Newer gcc will then simply only do -Os for these

    It's already done for __init.

    -- -- Speaking for myself only.

     \ /
      Last update: 2010-06-10 15:29    [W:0.023 / U:0.260 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site