From: Tim Bird <tim.bird@am.sony.com>
To: Adrian Bunk <adrian.bunk@movial.fi>
Cc: linux-tiny <Linux-tiny@selenic.com>,
linux-embedded <linux-embedded@vger.kernel.org>,
linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] console - Add configurable support for console charset translation
Date: Fri, 6 Jun 2008 16:47:47 -0700 [thread overview]
Message-ID: <4849CCA3.7040102@am.sony.com> (raw)
In-Reply-To: <20080604194002.GF4189@cs181133002.pp.htv.fi>
Adrian Bunk wrote:
> 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?
Not exactly. I have some automated tests which measure the
compile-time and runtime memory affect of adjusting various kernel
options. I do have, for 4 different architectures, a "smallest"
config that I've was hand-tuning for each arch.
Unfortunately, I started this some months ago and didn't
finish tuning these minimum configs. They bitrotted, and now
none of them yeild bootable kernels for their respective boards.
I suppose I could dust this off and take another stab at it to
get some more results.
I wouldn't mind seeing min-configs for some boards in the main
source tree.
I think this has been discussed before, and one problem is
agreeing on what feature set to include in such configs.
At a minimum, it would be nice to have a few nice examples
of really, really small configs for things like qemus for different
architectures (just to give embedded developers who are working
on size a starting point).
> OK, that's a visible difference.
>
> Are these 30 patches each gaining 4kB or are there a few patches that
> bring most gain?
It's a spectrum. One or two yield something over 20k, a few more
yield about 15k, then there's a long tail going down from about 8k
to very small savings (I should look at the size results more often,
some of these are not worth carrying around. I've been just
maintaining the whole group as a set, and haven't looked at
the size effect of individual patches/options for a while.)
Oh, and if anyone is wondering why I started with a 7k one,
rather than something else with more "punch", it was a
relatively simple one (and it's option name started with
a letter near the beginning of the alphabet ;-)
> And are you only measuring the kernel image size or also theruntime
> memory usage?
I also measure runtime, but my current test is not very good.
I do everything over an NFS-mount, and any network hiccups during boot
disturb the memory footprint. I'm just using a simple "free"
over telnet, and comparing that vs. a baseline.
I suppose a simple "fix" would be to boot each test kernel several
times and discard outlying data points.
A few linux-tiny patches have little effect on kernel image size,
but a nice effect on runtime memory. (e.g. There's one that changes
some mempool settings, that has only a 1k compile-time effect,
but a 12k runtime effect.)
I've been building up a table with real numbers, but I found
several problem areas with my test. I'll try to get some numbers
out early next week.
-- Tim
=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================
next prev parent reply other threads:[~2008-06-06 23:49 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-02 22:37 [PATCH] console - Add configurable support for console charset translation Tim Bird
2008-06-03 1:34 ` H. Peter Anvin
2008-06-03 7:00 ` Jamie Lokier
2008-06-03 15:46 ` Matt Mackall
2008-06-03 8:36 ` David Woodhouse
2008-06-03 13:45 ` David Woodhouse
2008-06-03 14:06 ` Holger Schurig
2008-06-03 14:10 ` David Woodhouse
2008-06-04 0:01 ` Tim Bird
2008-06-04 0:16 ` David Woodhouse
2008-06-04 1:03 ` Josh Boyer
2008-06-04 1:05 ` David Woodhouse
2008-06-04 3:13 ` Josh Boyer
2008-06-04 9:16 ` David Woodhouse
2008-06-04 10:07 ` Adrian Bunk
2008-06-04 10:10 ` David Woodhouse
2008-06-04 15:35 ` Tim Bird
2008-06-04 11:55 ` Alan Cox
2008-06-04 13:55 ` David Woodhouse
2008-06-04 14:07 ` Alan Cox
2008-06-04 14:27 ` David Woodhouse
2008-06-04 10:33 ` Adrian Bunk
2008-06-04 17:51 ` Rob Landley
2008-06-04 18:34 ` Bernhard Fischer
2008-06-04 19:01 ` Adrian Bunk
2008-06-04 19:21 ` Bernhard Fischer
2008-06-04 19:20 ` Alan Cox
2008-06-04 18:51 ` Tim Bird
2008-06-04 19:15 ` Sam Ravnborg
2008-06-04 19:23 ` Tim Bird
2008-06-04 20:23 ` Adrian Bunk
2008-06-04 20:42 ` Tim Bird
2008-06-05 6:55 ` Jörn Engel
2008-06-05 7:18 ` Uwe Klein
2008-06-04 20:24 ` Jörn Engel
2008-06-04 19:40 ` Adrian Bunk
2008-06-06 23:47 ` Tim Bird [this message]
2008-06-07 4:29 ` Rob Landley
2008-06-10 1:37 ` mainlining min-configs Tim Bird
2008-06-10 3:14 ` Ben Nizette
2008-06-10 4:16 ` Paul Mundt
2008-06-10 8:36 ` Adrian Bunk
2008-06-10 18:18 ` Tim Bird
2008-06-10 18:30 ` Adrian Bunk
2008-06-10 18:51 ` Sam Ravnborg
2008-06-10 19:05 ` Adrian Bunk
2008-06-11 5:09 ` Rob Landley
2008-06-11 6:39 ` Sam Ravnborg
2008-06-11 19:09 ` Tim Bird
2008-06-11 19:22 ` Sam Ravnborg
2008-06-11 19:36 ` Adrian Bunk
2008-06-11 19:46 ` Tim Bird
2008-06-12 1:42 ` Rob Landley
2008-06-11 19:48 ` Sam Ravnborg
2008-06-12 0:01 ` Rob Landley
2008-06-11 5:17 ` Rob Landley
2008-06-11 5:51 ` Rob Landley
2008-06-11 3:48 ` Rob Landley
2008-06-11 3:32 ` Rob Landley
2008-06-11 8:59 ` Christian MICHON
2008-06-04 19:42 ` [PATCH] console - Add configurable support for console charset translation Bernhard Fischer
2008-06-11 7:08 ` Holger Schurig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4849CCA3.7040102@am.sony.com \
--to=tim.bird@am.sony.com \
--cc=Linux-tiny@selenic.com \
--cc=adrian.bunk@movial.fi \
--cc=linux-embedded@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox