public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: dcinege@psychosis.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Abbott and Costello meet Crunch Time -- Penultimate 2.5 merge candidate list.
Date: Wed, 30 Oct 2002 06:06:46 -0500	[thread overview]
Message-ID: <3DBFBD46.5000307@pobox.com> (raw)
In-Reply-To: 200210300542.47207.dcinege@psychosis.com

Dave Cinege wrote:

>On Wednesday 30 October 2002 5:24, Jeff Garzik wrote:
>
>  
>
>>You appear to be unaware of early userspace. Moving code out of the
>>kernel does _not_ mean eliminating that code completely. 
>>    
>>
>
>My appologies, I thought you meant do_mounts.c was being yanked
>entirly if initramfs goes in.
>  
>

Apology accepted -- and note my apology further down below ;-)

>>do_mounts.c performs -- otherwise a Linux system would never have a root
>>filesystem mounted.
>>    
>>
>
>Actually it's very possible to eliminate it....require an initramfs image
>to have scripts and tools (mount and pivotroot) to do it all and mount that
>as the root. (An interesting but pretty bad idea IMO) This is what I thought
>you meant.
>

That's what is going to happen.  The initramfs image is completely 
removed from RAM after all this occurs, combined with moving code out of 
the kernel to early userspace, is how the overall kernel size shrinks.

Looking at a kernel cleanliness perspective, mounting root, unpacking 
initrd images, etc. get more and more complex -- with one simply copying 
userspace code into the kernel to get the job done.  In order to do NFS 
root for example, the kernel has an internal BOOTP and DHCP client, to 
snag an IP.  This mess simply does not belong in the kernel.  Never did.


>>Being unaware of early userspace implies that you are not familiar with
>>initramfs.
>>    
>>
>
>I'll accept your apology after you see how nicely I cleaned up do_mounts.c
>(It's 11K now) However I did not know the 'rootfs' was called 'early 
>userspace'. (Or was my above assumption correct?)
>
The absolutely smallest possible code is - unpack a cpio archive onto a 
ramfs.

If you want to support initrd --in kernel-- you must add in much more 
code:  ram disk device, and filesystem of your choice 
(minix/ext2/whatever).  _Any_ initrd code in the kernel is quite simply 
too much.  It doesn't matter how much you clean up the do_mounts.c code, 
"zero bytes" will always be smaller :)


>>Which implies you wish you merge your own code in place of something you
>>do not understand.
>>    
>>
>
>Jeff, be nice. I'm trying very hard myself...and if you knew me, you'd know
>it's a difficult task. : >
>  
>

lol

As promised above, I do apologize for jumping all over you.  :)  I 
should have much more tact and approach posts with a more educational 
perspective.

Further, if you are patient with _me_, I think I can explain how 
initramfs can (a) keep your existing initrd images working just fine or 
(b) help you shrink your startup images even more.

    Jeff





  reply	other threads:[~2002-10-30 11:00 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-28  2:17 Abbott and Costello meet Crunch Time -- Penultimate 2.5 merge candidate list Rob Landley
2002-10-28  8:25 ` Vamsi Krishna S .
2002-10-28  9:55   ` Skip Ford
2002-10-28 10:35     ` Vamsi Krishna S .
2002-10-28 10:29 ` Andrew Walrond
2002-10-28 10:40   ` Rob Landley
2002-10-28 12:15   ` Nicholas Wourms
2002-10-28 13:31   ` Dave Jones
2002-10-28 14:05     ` Andrew Walrond
2002-10-28 14:42       ` Andrew Walrond
2002-10-28 15:02       ` Alan Cox
2002-10-30  7:29 ` Dave Cinege
2002-10-30  7:40   ` Jeff Garzik
2002-10-30  8:22     ` Dave Cinege
2002-10-30  8:37       ` Russell King
2002-10-30  9:32         ` Dave Cinege
2002-10-30  8:41       ` Jeff Garzik
2002-10-30  8:51       ` Erik Andersen
2002-10-30  9:00         ` Miles Bader
2002-10-30  9:06           ` Jeff Garzik
2002-10-30  9:19             ` Miles Bader
2002-10-30  9:26               ` Jeff Garzik
2002-10-30  9:38                 ` Miles Bader
2002-10-30  9:42                   ` Erik Andersen
2002-10-30 10:50                   ` Jeff Garzik
2002-10-30  9:34             ` Russell King
2002-10-30 10:07               ` Dave Cinege
2002-10-30  9:36             ` Erik Andersen
2002-10-30 10:52               ` Jeff Garzik
2002-10-30  9:55           ` Dave Cinege
2002-10-30  9:59             ` Miles Bader
2002-10-30 10:24               ` Dave Cinege
2002-10-30 10:05             ` Jeff Garzik
2002-10-30 10:14               ` Dave Cinege
2002-10-30 10:24                 ` Jeff Garzik
2002-10-30 10:42                   ` Dave Cinege
2002-10-30 11:06                     ` Jeff Garzik [this message]
2002-10-30  9:55         ` Dave Cinege
2002-10-30 10:29           ` Jeff Garzik
2002-11-04  2:13           ` Rob Landley
2002-11-04  7:39             ` Help needed with IRQ on Ali chipset Jacek Pliszka
2002-11-04 13:10             ` Abbott and Costello meet Crunch Time -- Penultimate 2.5 merge candidate list Alan Cox
2002-11-04 22:52             ` Werner Almesberger
2002-11-04 23:02               ` Jeff Garzik
2002-11-04 18:16                 ` Rob Landley
2002-11-04 23:22                 ` Werner Almesberger
2002-10-30 14:32       ` Alan Cox

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=3DBFBD46.5000307@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=dcinege@psychosis.com \
    --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