* [bernie@develer.com: Kernel 2.6 size increase]
@ 2003-07-23 18:53 Christoph Hellwig
2003-07-23 18:55 ` Christoph Hellwig
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2003-07-23 18:53 UTC (permalink / raw)
To: linux-kernel, netdev
I think this is not only of interest fir the uClinux folks..
----- Forwarded message from Bernardo Innocenti <bernie@develer.com> -----
Date: Wed, 23 Jul 2003 20:46:46 +0200
From: Bernardo Innocenti <bernie@develer.com>
Subject: Kernel 2.6 size increase
To: uClinux development list <uclinux-dev@uclinux.org>
Cc: linux-kernel@vger.kernel.org
Hello,
code bloat can be very harmful on embedded targets, but it's
generally inconvenient for any platform. I've measured the
code increase between 2.4.21 and 2.6.0-test1 on a small
kernel configuration for ColdFire:
text data bss dec hex filename
640564 39152 134260 813976 c6b98 linux-2.4.x/linux
845924 51204 78896 976024 ee498 linux-2.5.x/vmlinux
I could provide the exact .config file for both kernels to
anybody interested. They are almost the same: no filesystems
except JFFS2, IPv4 and a bunch of small drivers. I have no
SMP, security, futexes, modules and anything else not
strictly needed to execute processes.
I've made a linker map file and compared the size of single
subsystems. These are the the major contributors to the
size increase:
kernel/ +27KB
mm/ +14KB
fs/ +47KB
drivers/ +35KB
net/ +64KB
I've digged into net/ with nm -S --size-sort. It seems that
the major increase is caused by net/xfrm/. Could this module
be made optional?
In fs/, almost all modules have got 30-40% bigger, therefore
bloat is probably caused by inlines and macros getting more
complex.
Block drivers and MTD have generally become smaller. Character
devices are responsable for most of the size increase in drivers/.
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html
-
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/
----- End forwarded message -----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bernie@develer.com: Kernel 2.6 size increase]
2003-07-23 18:53 [bernie@develer.com: Kernel 2.6 size increase] Christoph Hellwig
@ 2003-07-23 18:55 ` Christoph Hellwig
2003-07-23 18:58 ` David S. Miller
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2003-07-23 18:55 UTC (permalink / raw)
To: linux-kernel, netdev
On Wed, Jul 23, 2003 at 07:53:55PM +0100, Christoph Hellwig wrote:
> I think this is not only of interest fir the uClinux folks..
Sorry, this actually already Cc'ed lkml :) Still the netdev folks
should read it, too.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bernie@develer.com: Kernel 2.6 size increase]
2003-07-23 18:55 ` Christoph Hellwig
@ 2003-07-23 18:58 ` David S. Miller
[not found] ` <20030723115858.7506829I4.davem@redhat.com>
0 siblings, 1 reply; 6+ messages in thread
From: David S. Miller @ 2003-07-23 18:58 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-kernel, netdev
On Wed, 23 Jul 2003 19:55:04 +0100
Christoph Hellwig <hch@infradead.org> wrote:
> On Wed, Jul 23, 2003 at 07:53:55PM +0100, Christoph Hellwig wrote:
> > I think this is not only of interest fir the uClinux folks..
>
> Sorry, this actually already Cc'ed lkml :) Still the netdev folks
> should read it, too.
Well, we gained some code and a little bit of data, but
the BSS was cut in half which I think deserves noticing :-)
Also, he should analyze the amount of code that actually
gets executed for various tasks, comparing 2.4.x to 2.5.x
I'd take a half-meg code size hit if it meant that all
the normal code paths got cut in half :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-07-23 19:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-23 18:53 [bernie@develer.com: Kernel 2.6 size increase] Christoph Hellwig
2003-07-23 18:55 ` Christoph Hellwig
2003-07-23 18:58 ` David S. Miller
[not found] ` <20030723115858.7506829I4.davem@redhat.com>
2003-07-23 19:06 ` Christoph Hellwig
2003-07-23 19:09 ` David S. Miller
2003-07-23 19:13 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).