Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759612AbYFDKee (ORCPT ); Wed, 4 Jun 2008 06:34:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753865AbYFDKeY (ORCPT ); Wed, 4 Jun 2008 06:34:24 -0400 Received: from smtp4.pp.htv.fi ([213.243.153.38]:43397 "EHLO smtp4.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753597AbYFDKeX (ORCPT ); Wed, 4 Jun 2008 06:34:23 -0400 Date: Wed, 4 Jun 2008 13:33:53 +0300 From: Adrian Bunk To: Tim Bird Cc: linux-tiny , linux-embedded , linux kernel Subject: Re: [PATCH] console - Add configurable support for console charset translation Message-ID: <20080604103353.GC27335@cs181133002.pp.htv.fi> References: <48447615.5050806@am.sony.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <48447615.5050806@am.sony.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2265 Lines: 54 On Mon, Jun 02, 2008 at 03:37:09PM -0700, Tim Bird wrote: > With CONSOLE_TRANSLATIONS turned off, this saves about 6K > on my kernel configured for an ARM development board (OMAP > 5912 OSK). In embedded products I'm familiar with, > console translations are not needed. > > This was taken from the Linux-tiny project and updated slightly > for 2.6.25. >... It seems to be always me who asks the controversial questions...: Does the linux-tiny approach of adding a kconfig variable for each 5kB of code actually make sense? I'm asking since an exploding amount of kconfig variables and their interdependencies have a not so small maintainance impact in the long term. And I'm wondering whether it's the best approach for reaching measurable results. E.g. my small patch that removed -maccumulate-outgoing-args on 32-bit x86 reduced the kernel size there for the CONFIG_CC_OPTIMIZE_FOR_SIZE=y case by at about 2.5% (sic) without adding any kconfig variables or #ifdef's. Can you take a reasonable (best-case) .config for an existing device and get the following numbers: - Ignoring patches that came from linux-tiny, by how many percent did the size of the kernel increase or decrease between 2.6.16 and 2.6.26? - By how many percent did the kernel size decrease due to patches from the linux-tiny project that added such kconfig options for a few kB of code in the same timeframe? My gut feeling is that the influence of this kind of linux-tiny patches is hardly noticably compared to the overall code size development, but if you have numbers that prove me wrong just point me to them and I'll stand corrected. cu Adrian BTW: I'm not insisting on "between 2.6.16 and 2.6.26", that's just some timeframe big enough for showing general trends. -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -- 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/