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
--