[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0811150001430.2087@blonde.site>
Date: Sat, 15 Nov 2008 00:19:50 +0000 (GMT)
From: Hugh Dickins <hugh@...itas.com>
To: Christoph Lameter <cl@...ux-foundation.org>
cc: Ingo Molnar <mingo@...e.hu>, Nick Piggin <nickpiggin@...oo.com.au>,
linux-kernel@...r.kernel.org
Subject: Re: CONFIG_OPTIMIZE_INLINING fun
On Fri, 14 Nov 2008, Christoph Lameter wrote:
> On Fri, 14 Nov 2008, Hugh Dickins wrote:
>
> > What I was intending anyway, quite independently of the INLINING
> > issue, was changing those and some others to VM_BUG_ONs, which are
> > intended really for VM testers rather than for distros to turn on.
> > (Though perhaps Nick has shifted his position on that.)
>
> Some distros have a bad habit of turning these on for production releases.
Okay, then they'll get what they've asked for. DEBUG_VM has
an outstandingly appropriate help text, Nick deserves a medal:
Enable this to turn on extended checks in the virtual-memory system
that may impact performance.
If unsure, say N.
> > But I suspect
> > it's irrelevant, that changing those functions to macros would not
> > actually have any effect on the problem - that's what we've often
> > been assured, anyway, that the compiler nowadays does inlines as
> > efficiently as the preprocessor does macros. I do wonder though.
>
> Maybe try to compare it with a old kernel that still has the page flags
> macros? That way we would have a testcase useful for bringing to the
> attention of the gcc people.
I've now put a 2.6.25 #define-style page-flags.h into my 2.6.28-rc4
build tree, added in enough of the missing stuff to build my config,
and rebuilt with gccs 4.2.1 and 4.3.2.
You'll be relieved to hear that using the macros makes no difference:
well, of course it eliminates all those " Page" functions with 4.2.1,
hard for it not to; but leaves just as many constant_test_bit()s.
Hugh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists