Re: [patch] measurements, numbers about CONFIG_OPTIMIZE_INLINING=yimpact

From: Dirk Hohndel
Date: Fri Jan 09 2009 - 12:42:32 EST


On Fri, 9 Jan 2009 18:47:19 +0100
Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> On Fri, Jan 09, 2009 at 10:28:01AM -0700, Matthew Wilcox wrote:
> > On Fri, Jan 09, 2009 at 06:20:11PM +0100, Andi Kleen wrote:
> > > Also cc Honza in case he has comments (you might want
> > > to review more of the thread in the archives)
> >
> > I think this particular bug is already known and discussed:
>
> I thought so initially too, but:
>
> >
> > http://gcc.gnu.org/ml/gcc/2008-12/msg00365.html
> >
> > and it hints at being fixed with gcc 4.4. Does anyone want to test
> > that?
>
> Hugh already tested with 4.4 and it didn't work well. At least
> a lot of the low level asm inlines were not inlined.
> So it looks like it's still mistuned for the kernel.

I think that's the point. gcc will not get it right.
So we need to do it ourselves in the kernel sources.
We may not like it, but it's the only way to guarantee reproducable
reliable inline / noinline decisions.

/D

--
Dirk Hohndel
Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/