Re: [PATCH] console - Add configurable support for console charset translation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tim Bird <tim.bird@...>
Cc: linux-tiny <Linux-tiny@...>, linux-embedded <linux-embedded@...>, linux kernel <linux-kernel@...>
Date: Wednesday, June 4, 2008 - 3:40 pm

On Wed, Jun 04, 2008 at 11:51:54AM -0700, Tim Bird wrote:

I'm coming more from the point that drivers/media/ might be the area    
in the kernel that currently offers the biggest flexibility - and this 
stuff breaks multiple times for each kernel release, and sorting this 
out is often nontrivial.

I'm not claiming it was impossible to maintain, but it is a maintainance 
burden if too much is configurable.


There are still several (although not that trivial) global reductions 
each worth 2% or more in code size possible, and I would say they should 
be attacked before starting a config options jungle.

As a bonus, such stuff brings benefit to everyone, not only to people 
creating hand-optimized kernels for devices with very limited features.

And it also addresses the point that someone trying to get a very small 
kernel might hit completely untested codepaths.


It seems to be comparing i386 defconfigs.

E.g. the increase of CONFIG_LOG_BUF_SHIFT in the i386 defconfig in 
2.6.19 does alone increase the size of a defconfig kernel by a
quarter Megabyte - but that's both expected and not relevant for 
embedded systems.


I think the only serious numbers would come from taking some hardware 
and feature set (file systems, network options, etc.), and then 
optimizing by hand the smallest .config possible for both cases.

Do you have anything in this direction?


OK, that's a visible difference.

Are these 30 patches each gaining 4kB or are there a few patches that 
bring most gain?

And are you only measuring the kernel image size or also theruntime 
memory usage?


Besides reducing the kernel size it might also make sense if you'd 
regularly monitored -rc and -next kernels for size increases
(AFAIK noone currently does this) and bring them up early.

If you'd do this with kernels for real devices you might also test the 
kernels on the devices, en passant improving the problem that embedded 
architectures currently have nearly zero coverage at the times when 
functional regressions have a reasonable chance of being fixed before 
they reach stable kernels.  ;-)


cu
Adrian

-- 

       "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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] console - Add configurable support for console c..., Adrian Bunk, (Wed Jun 4, 3:40 pm)
mainlining min-configs..., Tim Bird, (Mon Jun 9, 9:37 pm)
Re: mainlining min-configs..., Christian MICHON, (Wed Jun 11, 4:59 am)
Re: mainlining min-configs..., Rob Landley, (Tue Jun 10, 11:32 pm)
Re: mainlining min-configs..., Adrian Bunk, (Tue Jun 10, 4:36 am)
Re: mainlining min-configs..., Rob Landley, (Tue Jun 10, 11:48 pm)
Re: mainlining min-configs..., Tim Bird, (Tue Jun 10, 2:18 pm)
Re: mainlining min-configs..., Rob Landley, (Wed Jun 11, 1:51 am)
Re: mainlining min-configs..., Adrian Bunk, (Tue Jun 10, 2:30 pm)
Re: mainlining min-configs..., Rob Landley, (Wed Jun 11, 1:17 am)
Re: mainlining min-configs..., Sam Ravnborg, (Tue Jun 10, 2:51 pm)
Re: mainlining min-configs..., Rob Landley, (Wed Jun 11, 1:09 am)
Re: mainlining min-configs..., Sam Ravnborg, (Wed Jun 11, 2:39 am)
Re: mainlining min-configs..., Tim Bird, (Wed Jun 11, 3:09 pm)
Re: mainlining min-configs..., Rob Landley, (Wed Jun 11, 8:01 pm)
Re: mainlining min-configs..., Adrian Bunk, (Wed Jun 11, 3:36 pm)
Re: mainlining min-configs..., Tim Bird, (Wed Jun 11, 3:46 pm)
Re: mainlining min-configs..., Rob Landley, (Wed Jun 11, 9:42 pm)
Re: mainlining min-configs..., Sam Ravnborg, (Wed Jun 11, 3:48 pm)
Re: mainlining min-configs..., Sam Ravnborg, (Wed Jun 11, 3:22 pm)
Re: mainlining min-configs..., Adrian Bunk, (Tue Jun 10, 3:05 pm)
Re: mainlining min-configs..., Ben Nizette, (Mon Jun 9, 11:14 pm)
Re: mainlining min-configs..., Paul Mundt, (Tue Jun 10, 12:16 am)