Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757870AbZAJAXT (ORCPT ); Fri, 9 Jan 2009 19:23:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753903AbZAJAW7 (ORCPT ); Fri, 9 Jan 2009 19:22:59 -0500 Received: from one.firstfloor.org ([213.235.205.2]:41787 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753457AbZAJAW6 (ORCPT ); Fri, 9 Jan 2009 19:22:58 -0500 Date: Sat, 10 Jan 2009 01:37:09 +0100 From: Andi Kleen To: Linus Torvalds Cc: Nicholas Miell , Ingo Molnar , jim owens , "H. Peter Anvin" , Chris Mason , Peter Zijlstra , Steven Rostedt , paulmck@linux.vnet.ibm.com, Gregory Haskins , Matthew Wilcox , Andi Kleen , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , linux-btrfs , Thomas Gleixner , Nick Piggin , Peter Morreale , Sven Dietrich Subject: Re: [patch] measurements, numbers about CONFIG_OPTIMIZE_INLINING=y impact Message-ID: <20090110003709.GT26290@one.firstfloor.org> References: <496648C7.5050700@zytor.com> <20090109130057.GA31845@elte.hu> <49675920.4050205@hp.com> <20090109153508.GA4671@elte.hu> <1231532276.2081.12.camel@entropy> <1231543701.2081.185.camel@entropy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1340 Lines: 27 > What's the cost/benefit of that 4%? Does it actually improve performance? > Especially if you then want to keep DWARF unwind information in memory in > order to fix up some of the problems it causes? At that point, you lost dwarf unwind information has nothing to do with this, it doesn't tell you anything about inlining or not inlining. It just gives you finished frames after all of that has been done. Full line number information would help, but I don't think anyone proposed to keep that in memory. > Does it help I$ utilization (which can speed things up a lot more, and is > probably the main reason -Os actually tends to perform better)? Likely > not. Sure, shrinking code is good for I$, but on the other hand inlining > can actually be bad for I$ density because if you inline a function that > doesn't get called, you now fragmented your footprint a lot more. Not sure that is always true; the gcc basic block reordering based on its standard branch prediction heuristics (e.g. < 0 or == NULL unlikely or the unlikely macro) might well put it all out of line. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/