linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [uClinux-dev] Kernel 2.6 size increase
@ 2003-07-28 17:13 Nicolas Pitre
  2003-07-28 23:02 ` Bernardo Innocenti
  0 siblings, 1 reply; 16+ messages in thread
From: Nicolas Pitre @ 2003-07-28 17:13 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Bernardo Innocenti, Willy Tarreau, Christoph Hellwig,
	uClinux development list, lkml, Alan Cox

On Fri, 25 Jul 2003, Christoph Hellwig wrote:

> On Thu, Jul 24, 2003 at 10:27:16PM +0200, Bernardo Innocenti wrote:
> > Some of the bigger 2.6 additions cannot be configured out.
> > I wish sysfs and the different I/O schedulers could be removed.
> 
> Removing the I/O schedulers is pretty trivial, please come up with a
> patch to make both of them optional and maybe add a trivial noop one.
> 
> Removing sysfs should also be pretty trivial but I'm not sure whether
> you really want that.

Being able to remove the block layer entirely, just as for the networking
layer, should be considered too, since none of ramfs, tmpfs, nfs, smbfs,
jffs and jffs2 just to name those ones actually need the block layer to
operate.  This is really a big pile of dead code in many embedded setups.


Nicolas


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Kernel 2.6 size increase
@ 2003-07-23 18:46 Bernardo Innocenti
  2003-07-23 19:14 ` Richard B. Johnson
  2003-07-23 22:07 ` [uClinux-dev] " Bernardo Innocenti
  0 siblings, 2 replies; 16+ messages in thread
From: Bernardo Innocenti @ 2003-07-23 18:46 UTC (permalink / raw)
  To: uClinux development list; +Cc: linux-kernel

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



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-07-31 18:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cArb.74D.1@gated-at.bofh.it>
     [not found] ` <cUTh.6JZ.33@gated-at.bofh.it>
     [not found]   ` <eLiy.31J.3@gated-at.bofh.it>
     [not found]     ` <eLBW.3eJ.7@gated-at.bofh.it>
     [not found]       ` <eLVb.3yF.1@gated-at.bofh.it>
     [not found]         ` <eOJn.5NI.1@gated-at.bofh.it>
     [not found]           ` <f1dJ.GS.21@gated-at.bofh.it>
     [not found]             ` <faTE.2LQ.3@gated-at.bofh.it>
     [not found]               ` <fd56.4Te.9@gated-at.bofh.it>
     [not found]                 ` <fdRv.5uB.9@gated-at.bofh.it>
     [not found]                   ` <fnHd.54o.19@gated-at.bofh.it>
2003-07-31 16:31                     ` Kernel 2.6 size increase Ihar "Philips" Filipau
2003-07-31 16:43                       ` Tom Rini
2003-07-31 17:04                         ` Ihar "Philips" Filipau
2003-07-31 17:20                           ` Tom Rini
2003-07-31 18:02                             ` Ihar "Philips" Filipau
2003-07-28 17:13 [uClinux-dev] " Nicolas Pitre
2003-07-28 23:02 ` Bernardo Innocenti
2003-07-29  2:36   ` Miles Bader
  -- strict thread matches above, loose matches on Subject: below --
2003-07-23 18:46 Bernardo Innocenti
2003-07-23 19:14 ` Richard B. Johnson
2003-07-23 20:07   ` David S. Miller
2003-07-23 21:47     ` Randy.Dunlap
2003-07-23 22:07 ` [uClinux-dev] " Bernardo Innocenti
2003-07-23 22:27   ` Willy Tarreau
2003-07-24 20:27     ` Bernardo Innocenti
2003-07-29 22:29       ` Tom Rini
2003-07-29 22:48         ` Alan Cox
2003-07-29 23:06           ` Tom Rini
2003-07-30  2:07             ` Miles Bader
2003-07-30 15:33               ` Tom Rini
2003-07-31  1:49                 ` Miles Bader
2003-07-31  4:17                   ` Tom Rini
2003-07-31  5:03                     ` Miles Bader
2003-07-31 15:24                       ` Tom Rini

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