Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755896AbZAITVb (ORCPT ); Fri, 9 Jan 2009 14:21:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754572AbZAITU7 (ORCPT ); Fri, 9 Jan 2009 14:20:59 -0500 Received: from terminus.zytor.com ([198.137.202.10]:58005 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754286AbZAITU5 (ORCPT ); Fri, 9 Jan 2009 14:20:57 -0500 Message-ID: <4967A2D2.3070105@zytor.com> Date: Fri, 09 Jan 2009 11:17:38 -0800 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: Richard Guenther CC: Andi Kleen , Linus Torvalds , Matthew Wilcox , Dirk Hohndel , Ingo Molnar , jim owens , Chris Mason , Peter Zijlstra , Steven Rostedt , paulmck@linux.vnet.ibm.com, Gregory Haskins , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , linux-btrfs , Thomas Gleixner , Nick Piggin , Peter Morreale , Sven Dietrich , jh@suse.cz Subject: Re: [patch] measurements, numbers about CONFIG_OPTIMIZE_INLINING=y impact References: <20090109153508.GA4671@elte.hu> <20090109084620.3c711aad@infradead.org> <20090109172011.GD26290@one.firstfloor.org> <20090109172801.GC6936@parisc-linux.org> <20090109174719.GG26290@one.firstfloor.org> <20090109173914.GD6936@parisc-linux.org> <20090109181952.GI26290@one.firstfloor.org> <84fc9c000901091059v65265413wda053d3ce5b0d17a@mail.gmail.com> <20090109192158.GK26290@one.firstfloor.org> <84fc9c000901091110n2f5565b7mecf9acec35cf5a0@mail.gmail.com> In-Reply-To: <84fc9c000901091110n2f5565b7mecf9acec35cf5a0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 28 Richard Guenther wrote: > On Fri, Jan 9, 2009 at 8:21 PM, Andi Kleen wrote: >>> GCC 4.3 should be good in compiling the >>> kernel with default -Os settings. >> It's unfortunately not. It doesn't inline a lot of simple asm() inlines >> for example. > > Reading Ingos posting with the actual numbers states the opposite. > Well, Andi's patch forcing inlining of the bitops chops quite a bit of size off the kernel, so there is clearly room for improvement. From my post yesterday: : voreg 64 ; size o.*/vmlinux text data bss dec hex filename 57590217 24940519 15560504 98091240 5d8c0e8 o.andi/vmlinux 59421552 24912223 15560504 99894279 5f44407 o.noopt/vmlinux 57700527 24950719 15560504 98211750 5da97a6 o.opty/vmlinux 110 KB of code size reduction by force-inlining the small bitops. -hpa -- 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/