linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Kernel bloat 2.4 vs. 2.5
@ 2003-03-06 14:22 Felipe Alfaro Solana
  2003-03-06 19:51 ` Daniel Egger
  0 siblings, 1 reply; 16+ messages in thread
From: Felipe Alfaro Solana @ 2003-03-06 14:22 UTC (permalink / raw)
  To: degger, akpm; +Cc: linux-kernel

----- Original Message ----- 
From: Daniel Egger <degger@fhm.edu> 
Date: 	06 Mar 2003 04:25:15 +0100 
To: Andrew Morton <akpm@digeo.com> 
Subject: Re: Kernel bloat 2.4 vs. 2.5 
 
> Am Mit, 2003-03-05 um 00.41 schrieb Andrew Morton: 
 
> As I said, the 2.4 kernel has almost everything built in while 2.5 was 
> stripped down to minimum size possible. The latter is still unusable 
> since modules do not work. :/ 
 
??? I'm using 2.5 and modules do work perfectly... Did you 
get Rusty's latest modutils? 
 
   Felipe 
 
-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze

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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-06 14:22 Kernel bloat 2.4 vs. 2.5 Felipe Alfaro Solana
@ 2003-03-06 19:51 ` Daniel Egger
  2003-03-06 23:34   ` Andreas Boman
  0 siblings, 1 reply; 16+ messages in thread
From: Daniel Egger @ 2003-03-06 19:51 UTC (permalink / raw)
  To: Felipe Alfaro Solana; +Cc: akpm, Linux Kernel Mailinglist

[-- Attachment #1: Type: text/plain, Size: 461 bytes --]

Am Don, 2003-03-06 um 15.22 schrieb Felipe Alfaro Solana:

> ??? I'm using 2.5 and modules do work perfectly... Did you 
> get Rusty's latest modutils? 

Negative, I'm using what Debian (unstable in this case) provides
me. This system has to be booted by a variety of systems, will the
latest modutils work with 2.4 without modification?

This is what I have:
ii  modutils       2.4.21-1       Linux module utilities.
 
-- 
Servus,
       Daniel

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-06 19:51 ` Daniel Egger
@ 2003-03-06 23:34   ` Andreas Boman
  2003-03-06 23:44     ` Joel Becker
  2003-03-07 13:33     ` Daniel Egger
  0 siblings, 2 replies; 16+ messages in thread
From: Andreas Boman @ 2003-03-06 23:34 UTC (permalink / raw)
  To: Daniel Egger; +Cc: Linux Kernel Mailinglist

On Thu, 2003-03-06 at 14:51, Daniel Egger wrote:
> Am Don, 2003-03-06 um 15.22 schrieb Felipe Alfaro Solana:
> 
> > ??? I'm using 2.5 and modules do work perfectly... Did you 
> > get Rusty's latest modutils? 
> 
> Negative, I'm using what Debian (unstable in this case) provides
> me. This system has to be booted by a variety of systems, will the
> latest modutils work with 2.4 without modification?
> 
> This is what I have:
> ii  modutils       2.4.21-1       Linux module utilities.
>  

apt-get install module-init-tools, it will install 'right' and let you
use modules with 2.4 and 2.5 kernels.

--
Andreas


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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-06 23:34   ` Andreas Boman
@ 2003-03-06 23:44     ` Joel Becker
  2003-03-07 13:33     ` Daniel Egger
  1 sibling, 0 replies; 16+ messages in thread
From: Joel Becker @ 2003-03-06 23:44 UTC (permalink / raw)
  To: Andreas Boman; +Cc: Daniel Egger, Linux Kernel Mailinglist

On Thu, Mar 06, 2003 at 06:34:13PM -0500, Andreas Boman wrote:
> apt-get install module-init-tools, it will install 'right' and let you
> use modules with 2.4 and 2.5 kernels.

	As long as you don't use mkinitrd.  If you do, make sure you
keep around the 2.4 insmod.static in another directory to fix your
initrds.

Joel

-- 

Life's Little Instruction Book #267

	"Lie on your back and look at the stars."

Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127

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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-06 23:34   ` Andreas Boman
  2003-03-06 23:44     ` Joel Becker
@ 2003-03-07 13:33     ` Daniel Egger
  1 sibling, 0 replies; 16+ messages in thread
From: Daniel Egger @ 2003-03-07 13:33 UTC (permalink / raw)
  To: Andreas Boman; +Cc: Linux Kernel Mailinglist

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

Am Fre, 2003-03-07 um 00.34 schrieb Andreas Boman:

> apt-get install module-init-tools, it will install 'right' and let you
> use modules with 2.4 and 2.5 kernels.

Close but not cigar. Trying to load modules blocks the system quite a
bit and I get lots of failures like realloc errors which unfortunately
disappear too fast from the screen to capture. The system is still
booting after 6 mins...

  257 root      15 -10  257m 227m 1176 D 80.8 45.1   0:22.67 modprobe

The system is fully saturated by modprobes... :(

-- 
Servus,
       Daniel

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-04 23:41 ` Andrew Morton
  2003-03-05  1:59   ` Chris Wedgwood
@ 2003-03-06  3:25   ` Daniel Egger
  1 sibling, 0 replies; 16+ messages in thread
From: Daniel Egger @ 2003-03-06  3:25 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailinglist

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

Am Mit, 2003-03-05 um 00.41 schrieb Andrew Morton:

> Please specify the compiler which was used, and use /usr/bin/size to report
> image sizes.

The compiler was in both cases:
gcc version 3.2.3 20030228 (Debian prerelease)

2.4.20:

2271565 Feb 25 17:08 vmlinux

   text    data     bss     dec     hex filename
1730302  112564  176676 2019542  1ed0d6 vmlinux

2.5.63:

2561828 Mar  4 16:50 vmlinux

   text    data     bss     dec     hex filename
1867787  167450  140292 2175529  213229 vmlinux


As I said, the 2.4 kernel has almost everything built in while 2.5 was
stripped down to minimum size possible. The latter is still unusable
since modules do not work. :/

-- 
Servus,
       Daniel

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-05  2:37         ` Robert Love
@ 2003-03-05  3:13           ` Steven Cole
  0 siblings, 0 replies; 16+ messages in thread
From: Steven Cole @ 2003-03-05  3:13 UTC (permalink / raw)
  To: Robert Love; +Cc: Andrew Morton, cw, degger, LKML

On Tue, 2003-03-04 at 19:37, Robert Love wrote:
> On Tue, 2003-03-04 at 21:32, Andrew Morton wrote:
> 
> > well kallsyms is worth 150k.
> > 
> > Do `strings vmlinux' and take a look at it all.
> 
> Oh, yah.  If he has kallsyms enabled that explains most of it.
> 
> 	Robert Love

This shows what taking out kallsyms can do:

   text    data     bss     dec     hex filename
1860575  293780  337404 2491759  26056f kernels/linux-2.4.18/vmlinux
1936720  311656  157792 2406168  24b718 BK/testing-2.5/vmlinux
1936592  437556  158720 2532868  26a604 BK/testing-2.5/vmlinux-with-kallsyms

The 2.5 tree was current yesterday.
The .config files were as "functionally equivalent" as I could make them,
and except for CONFIG_KALLSYMS, were identical for the two 2.5 images.
gcc is 2.96.

Steven


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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-05  2:23     ` Robert Love
  2003-03-05  2:32       ` Andrew Morton
@ 2003-03-05  3:06       ` Chris Wedgwood
  1 sibling, 0 replies; 16+ messages in thread
From: Chris Wedgwood @ 2003-03-05  3:06 UTC (permalink / raw)
  To: Robert Love; +Cc: Andrew Morton, Daniel Egger, linux-kernel

On Tue, Mar 04, 2003 at 09:23:00PM -0500, Robert Love wrote:

> Ugh look at that increase in data.  Is this SMP?

UP ... no preempt.

As somene pointed out, kallsyms doesn't help, so let me rebuild and
compare again.


  --cw

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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-05  2:32       ` Andrew Morton
@ 2003-03-05  2:37         ` Robert Love
  2003-03-05  3:13           ` Steven Cole
  0 siblings, 1 reply; 16+ messages in thread
From: Robert Love @ 2003-03-05  2:37 UTC (permalink / raw)
  To: Andrew Morton; +Cc: cw, degger, linux-kernel

On Tue, 2003-03-04 at 21:32, Andrew Morton wrote:

> well kallsyms is worth 150k.
> 
> Do `strings vmlinux' and take a look at it all.

Oh, yah.  If he has kallsyms enabled that explains most of it.

	Robert Love


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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-05  1:59   ` Chris Wedgwood
  2003-03-05  2:11     ` Andrew Morton
  2003-03-05  2:23     ` Robert Love
@ 2003-03-05  2:35     ` Kai Germaschewski
  2 siblings, 0 replies; 16+ messages in thread
From: Kai Germaschewski @ 2003-03-05  2:35 UTC (permalink / raw)
  To: Chris Wedgwood; +Cc: Andrew Morton, Daniel Egger, linux-kernel

On Tue, 4 Mar 2003, Chris Wedgwood wrote:

>     charon:~/wk/linux% size 2.4.x-cw/vmlinux bk-2.5.x/vmlinux
>        text    data     bss     dec     hex filename
>     2003887  120260  191657 2315804  23561c 2.4.x-cw/vmlinux
>     2411323  267551  181004 2859878  2ba366 bk-2.5.x/vmlinux
> 
>     gcc version 2.95.4 20011002 (Debian prerelease)

objdump -h vmlinux gives even more detailed information, which could be 
quite useful. E.g. the increase in data could be __kallsyms, which is a 
config option in 2.5.

--Kai



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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-05  2:23     ` Robert Love
@ 2003-03-05  2:32       ` Andrew Morton
  2003-03-05  2:37         ` Robert Love
  2003-03-05  3:06       ` Chris Wedgwood
  1 sibling, 1 reply; 16+ messages in thread
From: Andrew Morton @ 2003-03-05  2:32 UTC (permalink / raw)
  To: Robert Love; +Cc: cw, degger, linux-kernel

Robert Love <rml@tech9.net> wrote:
>
> On Tue, 2003-03-04 at 20:59, Chris Wedgwood wrote:
> 
> > I can't see it helping *that* much, for me I have:
> > 
> >     charon:~/wk/linux% size 2.4.x-cw/vmlinux bk-2.5.x/vmlinux
> >        text    data     bss     dec     hex filename
> >     2003887  120260  191657 2315804  23561c 2.4.x-cw/vmlinux
> >     2411323  267551  181004 2859878  2ba366 bk-2.5.x/vmlinux
> > 
> >     gcc version 2.95.4 20011002 (Debian prerelease)
> 
> Ugh look at that increase in data.  Is this SMP?
> 

well kallsyms is worth 150k.

Do `strings vmlinux' and take a look at it all.

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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-05  1:59   ` Chris Wedgwood
  2003-03-05  2:11     ` Andrew Morton
@ 2003-03-05  2:23     ` Robert Love
  2003-03-05  2:32       ` Andrew Morton
  2003-03-05  3:06       ` Chris Wedgwood
  2003-03-05  2:35     ` Kai Germaschewski
  2 siblings, 2 replies; 16+ messages in thread
From: Robert Love @ 2003-03-05  2:23 UTC (permalink / raw)
  To: Chris Wedgwood; +Cc: Andrew Morton, Daniel Egger, linux-kernel

On Tue, 2003-03-04 at 20:59, Chris Wedgwood wrote:

> I can't see it helping *that* much, for me I have:
> 
>     charon:~/wk/linux% size 2.4.x-cw/vmlinux bk-2.5.x/vmlinux
>        text    data     bss     dec     hex filename
>     2003887  120260  191657 2315804  23561c 2.4.x-cw/vmlinux
>     2411323  267551  181004 2859878  2ba366 bk-2.5.x/vmlinux
> 
>     gcc version 2.95.4 20011002 (Debian prerelease)

Ugh look at that increase in data.  Is this SMP?

	Robert Love


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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-05  1:59   ` Chris Wedgwood
@ 2003-03-05  2:11     ` Andrew Morton
  2003-03-05  2:23     ` Robert Love
  2003-03-05  2:35     ` Kai Germaschewski
  2 siblings, 0 replies; 16+ messages in thread
From: Andrew Morton @ 2003-03-05  2:11 UTC (permalink / raw)
  To: Chris Wedgwood; +Cc: degger, linux-kernel

Chris Wedgwood <cw@f00f.org> wrote:
>
> On Tue, Mar 04, 2003 at 03:41:05PM -0800, Andrew Morton wrote:
> 
> > Daniel Egger <degger@fhm.edu> wrote:
> 
> > > I've seen surprisingly few messages about the dramatic size
> > > increase between a simple 2.4 and a 2.5 kernel image.
> 
> > 2.4 has magical size reduction tricks in it which were not brought
> > into 2.5 because we expect that gcc will do it for us.
> 
> I can't see it helping *that* much, for me I have:
> 
>     charon:~/wk/linux% size 2.4.x-cw/vmlinux bk-2.5.x/vmlinux
>        text    data     bss     dec     hex filename
>     2003887  120260  191657 2315804  23561c 2.4.x-cw/vmlinux
>     2411323  267551  181004 2859878  2ba366 bk-2.5.x/vmlinux
> 
>     gcc version 2.95.4 20011002 (Debian prerelease)
> 
> this is for functionally (in terms of .config) equivalent kernels.
> 

Don't know what your point is here, really.

2.4 has hacks to make it smaller.  iirc they were worth ~200 kbytes, or
around 10%.

gcc-3.x string sharing was supposed to make those hacks unnecesary.  However
a quick test here shows gcc-3.2.1 generating a 10% larger 2.5 image than
gcc-2.95.3, so a club may need to be taken to 2.5 as well.


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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-04 23:41 ` Andrew Morton
@ 2003-03-05  1:59   ` Chris Wedgwood
  2003-03-05  2:11     ` Andrew Morton
                       ` (2 more replies)
  2003-03-06  3:25   ` Daniel Egger
  1 sibling, 3 replies; 16+ messages in thread
From: Chris Wedgwood @ 2003-03-05  1:59 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Daniel Egger, linux-kernel

On Tue, Mar 04, 2003 at 03:41:05PM -0800, Andrew Morton wrote:

> Daniel Egger <degger@fhm.edu> wrote:

> > I've seen surprisingly few messages about the dramatic size
> > increase between a simple 2.4 and a 2.5 kernel image.

> 2.4 has magical size reduction tricks in it which were not brought
> into 2.5 because we expect that gcc will do it for us.

I can't see it helping *that* much, for me I have:

    charon:~/wk/linux% size 2.4.x-cw/vmlinux bk-2.5.x/vmlinux
       text    data     bss     dec     hex filename
    2003887  120260  191657 2315804  23561c 2.4.x-cw/vmlinux
    2411323  267551  181004 2859878  2ba366 bk-2.5.x/vmlinux

    gcc version 2.95.4 20011002 (Debian prerelease)

this is for functionally (in terms of .config) equivalent kernels.


  --cw

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

* Re: Kernel bloat 2.4 vs. 2.5
  2003-03-04 22:42 Daniel Egger
@ 2003-03-04 23:41 ` Andrew Morton
  2003-03-05  1:59   ` Chris Wedgwood
  2003-03-06  3:25   ` Daniel Egger
  0 siblings, 2 replies; 16+ messages in thread
From: Andrew Morton @ 2003-03-04 23:41 UTC (permalink / raw)
  To: Daniel Egger; +Cc: linux-kernel

Daniel Egger <degger@fhm.edu> wrote:
>
> Hija,
> 
> I've seen surprisingly few messages about the dramatic size increase
> between a simple 2.4 and a 2.5 kernel image. 
> 
> I just decided to check back with the 2.5 series again after my last try
> with 2.5.53 (which wouldn't even boot) but had to dramatically cut down
> the kernel featurewise to keep it below 1MB because I can't boot it over
> tftp otherwise. 
> 
> 909824 Feb 14 20:02 vmlinuz-192.168.11.3-2.4.20
> 954880 Mar  4 17:01 vmlinuz-192.168.11.3-2.5.63

2.4 has magical size reduction tricks in it which were not brought into 2.5
because we expect that gcc will do it for us.

Please specify the compiler which was used, and use /usr/bin/size to report
image sizes.



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

* Kernel bloat 2.4 vs. 2.5
@ 2003-03-04 22:42 Daniel Egger
  2003-03-04 23:41 ` Andrew Morton
  0 siblings, 1 reply; 16+ messages in thread
From: Daniel Egger @ 2003-03-04 22:42 UTC (permalink / raw)
  To: Linux Kernel Mailinglist

[-- Attachment #1: Type: text/plain, Size: 909 bytes --]

Hija,

I've seen surprisingly few messages about the dramatic size increase
between a simple 2.4 and a 2.5 kernel image. 

I just decided to check back with the 2.5 series again after my last try
with 2.5.53 (which wouldn't even boot) but had to dramatically cut down
the kernel featurewise to keep it below 1MB because I can't boot it over
tftp otherwise. 

909824 Feb 14 20:02 vmlinuz-192.168.11.3-2.4.20
954880 Mar  4 17:01 vmlinuz-192.168.11.3-2.5.63

What you see here is a 2.4 kernel with almost everything needed to run
the machine built in and a (rsync'ed) 2.5.63 kernel with everything but
the basic stuff + ipv4 + NIC + NFS (+ other necessary features not
builtable as modules) built as modules.

Are there any patches I've missed to get that down? A slight tad bigger
and I couldn't even work with recent kernels if modules actually
worked... :/

-- 
Servus,
       Daniel

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2003-03-07 14:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-06 14:22 Kernel bloat 2.4 vs. 2.5 Felipe Alfaro Solana
2003-03-06 19:51 ` Daniel Egger
2003-03-06 23:34   ` Andreas Boman
2003-03-06 23:44     ` Joel Becker
2003-03-07 13:33     ` Daniel Egger
  -- strict thread matches above, loose matches on Subject: below --
2003-03-04 22:42 Daniel Egger
2003-03-04 23:41 ` Andrew Morton
2003-03-05  1:59   ` Chris Wedgwood
2003-03-05  2:11     ` Andrew Morton
2003-03-05  2:23     ` Robert Love
2003-03-05  2:32       ` Andrew Morton
2003-03-05  2:37         ` Robert Love
2003-03-05  3:13           ` Steven Cole
2003-03-05  3:06       ` Chris Wedgwood
2003-03-05  2:35     ` Kai Germaschewski
2003-03-06  3:25   ` Daniel Egger

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