Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933506AbbELNON (ORCPT ); Tue, 12 May 2015 09:14:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59478 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932691AbbELNOI (ORCPT ); Tue, 12 May 2015 09:14:08 -0400 Message-ID: <5551FC76.40000@redhat.com> Date: Tue, 12 May 2015 15:13:26 +0200 From: Denys Vlasenko User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Ingo Molnar CC: Linus Torvalds , Thomas Graf , "David S. Miller" , Bart Van Assche , Peter Zijlstra , David Rientjes , Andrew Morton , Oleg Nesterov , "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] force inlining of spinlock ops References: <1431367042-31475-1-git-send-email-dvlasenk@redhat.com> <20150512074443.GA724@gmail.com> <5551DDBD.9010803@redhat.com> <20150512114353.GA13699@gmail.com> In-Reply-To: <20150512114353.GA13699@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1332 Lines: 38 On 05/12/2015 01:43 PM, Ingo Molnar wrote: >>> Furtermore, what is the size win on x86 defconfig with these options >>> set? >> >> CONFIG_OPTIMIZE_INLINING=y is in defconfig. >> >> Size difference for CC_OPTIMIZE_FOR_SIZE: >> >> text data bss dec hex filename >> 12335864 1746152 1081344 15163360 e75fe0 vmlinux.CC_OPTIMIZE_FOR_SIZE=y >> 10373764 1684200 1077248 13135212 c86d6c vmlinux.CC_OPTIMIZE_FOR_SIZE=n >> >> Decrease by about 19%. > > I suspect the 'filename' field wants to be flipped? Yes. > In any case, the interesting measurement would not be -Os comparisons > (which causes GCC to be too crazy), but to see the size effect of your > _patch_ that always-inlines spinlock ops, on plain defconfig and on > defconfig-Os. Here it is: text data bss dec hex filename 12335864 1746152 1081344 15163360 e75fe0 vmlinuxO2.before 12335930 1746152 1081344 15163426 e76022 vmlinux text data bss dec hex filename 10373764 1684200 1077248 13135212 c86d6c vmlinuxOs.before 10363621 1684200 1077248 13125069 c845cd vmlinux -- 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/