From: Adrian Bunk Subject: Re: [patch 2/4] Configure out file locking features Date: Thu, 31 Jul 2008 19:49:18 +0300 Message-ID: <20080731164918.GE20212@cs181140183.pp.htv.fi> References: <20080731092703.661994657@free-electrons.com> <20080731093220.969460336@free-electrons.com> <20080731135319.GA20212@cs181140183.pp.htv.fi> <20080731162007.285938e0@surf> <20080731153757.GB20212@cs181140183.pp.htv.fi> <20080731182616.4c20f0db@surf> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <20080731182616.4c20f0db@surf> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Thomas Petazzoni Cc: linux-kernel@vger.kernel.org, linux-embedded@vger.kernel.org, michael@free-electrons.com, Matt Mackall , matthew@wil.cx, linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org On Thu, Jul 31, 2008 at 06:26:16PM +0200, Thomas Petazzoni wrote: > Le Thu, 31 Jul 2008 18:37:57 +0300, > Adrian Bunk a =C3=A9crit : >=20 > > I'm just not a fan of adding config options for each few kB of code= -=20 > > we have to maintain them and the more complex the configuration > > becomes the more often it breaks. >=20 > I'm not a fan of these too, but are there other solutions ? There are many things that can be done to reduce the kernel size or try= =20 to minimize the growth of the kernel. E.g. working on --combine -fwhole-program (where David once had=20 preliminary patches for the per-module approach) might be better. > > What became bigger was most likely not related to the patches you > > sent. >=20 > No, it is not. >=20 > > Where and why did the kernel become bigger? >=20 > It's not up-to-date with 2.6.26 and 2.6.27-rc1, but Bloatwatch > , by Matt Mackall, is here to > answer these questions. I haven't made the analysis for > 2.6.26->2.6.27-rc1. It can only give some hints where to start searching. But it tracks a defconfig, and e.g. the nearly doubled size between 2.6.18 and 2.6.19 is both expected and not a problem for embedded systems. The real work is to figure out in which areas that are relevant for=20 embedded systems the kernel became bigger. > > Why did CONFIG_FW_LOADER get enabled? > > Due to alnoconfig disabling CONFIG_EMBEDDED? >=20 > I don't know. Haven't made the analysis for now. >=20 > > A user will ask: > > I'm using $applications with $libraries, can I safely disable this > > option? >=20 > Hard to tell in the general case. >=20 > > And e.g. according to a quick grep through the sources uClibc's=20 > > updwtmp() seems to cease working without flock(). >=20 > Correct. But on many embedded systems, we don't care about logging pa= st > user logins. We might even not care about logins at all. And for embedded systems with which applications is it 100% safe to=20 disable this option? And don't answer "doesn't use flock()", I want a real-life example of a= =20 device where you could guarantee a developer that disabling this option= =20 in his product would be safe. > > It costs us maintainance of the option and the #ifdef's and gives > > users one way more to shoot themselves into the foot in nontrivial = to > > detect ways. >=20 > That's correct, and as I said previously, I fully understand the > maintainance problem of all these new configuration options. I must > admit that I do not really have more objective technical arguments th= at > would help us deciding whether the code size reduction vs. code > maintainance choice should be made in one direction or the other. My personal criteron for this patch is still how many real-life systems= =20 can safely disable it. > Sincerly, >=20 > Thomas cu Adrian --=20 "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-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html