From: "H. Peter Anvin" <hpa@zytor.com>
To: Theodore Tso <tytso@mit.edu>, "H. Peter Anvin" <hpa@zytor.com>,
Linus Torvalds <torvalds@osdl.org>,
Jeff Bailey <jbailey@ubuntu.com>,
Michael Tokarev <mjt@tls.msk.ru>,
Roman Zippel <zippel@linux-m68k.org>,
klibc@zytor.com, linux-kernel@vger.kernel.org,
Pavel Machek <pavel@ucw.cz>
Subject: Re: [klibc] klibc and what's the next step?
Date: Sat, 01 Jul 2006 17:50:08 -0700 [thread overview]
Message-ID: <44A71840.8040904@zytor.com> (raw)
In-Reply-To: <20060702003815.GB15375@thunk.org>
Theodore Tso wrote:
>
> Well, I wouldn't be one of those folks. In fact, how big is dash and
> some select set of shell utilities? If they aren't that big, it might
> make sense to include them all the time so that a simple command-line
> option on boot is all that's necessary in order to break into a
> pre-kinit interactive shell. That would make the resulting system
> more debuggable by definition. Then all we will would have to do is
> make sure the distro's use the kernel-supplied kinit solution, instead
> of rolling their own non-standard version.
>
Shared binaries, x86-64 (i386 is about 20-25% smaller):
-rwxrwxr-x 1 hpa hpa 58544 Jul 1 11:41 usr/dash/sh.shared*
-rwxrwxr-x 1 hpa hpa 2760 Jul 1 11:41 cat*
-rwxrwxr-x 1 hpa hpa 888 Jul 1 11:41 chroot*
-rwxrwxr-x 1 hpa hpa 4000 Jul 1 11:41 dd*
-rwxrwxr-x 1 hpa hpa 680 Jul 1 11:41 false*
-rwxrwxr-x 3 hpa hpa 1072 Jul 1 11:41 halt*
-rwxrwxr-x 1 hpa hpa 1664 Jul 1 11:41 insmod*
-rwxrwxr-x 1 hpa hpa 1336 Jul 1 11:41 ln*
-rwxrwxr-x 1 hpa hpa 5000 Jul 1 11:41 minips*
-rwxrwxr-x 1 hpa hpa 1984 Jul 1 11:41 mkdir*
-rwxrwxr-x 1 hpa hpa 1704 Jul 1 11:41 mkfifo*
-rwxrwxr-x 1 hpa hpa 1712 Jul 1 11:41 mknod*
-rwxrwxr-x 1 hpa hpa 2184 Jul 1 11:41 mount
-rwxrwxr-x 1 hpa hpa 1320 Jul 1 11:41 nuke*
-rwxrwxr-x 1 hpa hpa 856 Jul 1 11:41 pivot_root*
-rwxrwxr-x 3 hpa hpa 1072 Jul 1 11:41 poweroff*
-rwxrwxr-x 3 hpa hpa 1072 Jul 1 11:41 reboot*
-rwxrwxr-x 1 hpa hpa 864 Jul 1 11:41 sleep*
-rwxrwxr-x 1 hpa hpa 672 Jul 1 11:41 true*
-rwxrwxr-x 1 hpa hpa 1056 Jul 1 11:41 umount*
-rwxrwxr-x 1 hpa hpa 1952 Jul 1 11:41 uname*
-rw-rw-r-- 2 hpa hpa 71016 Jul 1 11:40
usr/klibc/klibc-Yy9wepARlc-x17pdZDwU1YCOiMQ.so
-rwxrwxr-x 1 hpa hpa 35664 Jul 1 17:48 usr/kinit/kinit.shared*
... totalling about 193K if you include everything. For comparison,
static kinit by itself is 67K (which includes ipconfig, nfsroot, etc.)
For an "include everything" variant, it would probably make more sense
to port busybox, and/or add more tools as dash builtins.
All of these are uncompressed sizes.
-hpa
next prev parent reply other threads:[~2006-07-02 0:50 UTC|newest]
Thread overview: 95+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-26 0:57 [klibc 00/43] klibc as a historyless patchset H. Peter Anvin
2006-06-27 13:12 ` klibc and what's the next step? Roman Zippel
2006-06-27 13:39 ` Jeff Garzik
2006-06-27 16:42 ` [klibc] " Greg KH
2006-06-28 23:46 ` Roman Zippel
2006-06-27 17:01 ` Andi Kleen
2006-06-27 17:11 ` H. Peter Anvin
2006-06-27 17:40 ` Andi Kleen
2006-06-27 17:45 ` H. Peter Anvin
2006-06-27 20:22 ` Joshua Hudson
2006-06-28 5:47 ` H. Peter Anvin
2006-06-29 0:04 ` Roman Zippel
2006-07-03 18:30 ` Rob Landley
2006-07-03 18:46 ` [klibc] " maximilian attems
2006-07-04 1:36 ` Jeff Bailey
2006-07-04 2:02 ` H. Peter Anvin
2006-06-27 14:07 ` Jon Smirl
2006-06-27 14:40 ` Jeff Bailey
2006-06-27 19:47 ` Milton Miller
2006-06-28 23:56 ` Roman Zippel
2006-06-29 0:34 ` H. Peter Anvin
2006-06-29 23:33 ` Roman Zippel
2006-06-30 8:00 ` Gerd Hoffmann
2006-06-30 18:08 ` H. Peter Anvin
2006-06-30 22:58 ` Michael Tokarev
2006-06-30 18:11 ` Pavel Machek
2006-06-30 23:04 ` Michael Tokarev
2006-06-30 23:15 ` H. Peter Anvin
2006-07-01 10:56 ` [klibc] " Jeff Bailey
2006-07-01 15:05 ` Theodore Tso
2006-07-01 20:08 ` Linus Torvalds
2006-07-01 21:58 ` Al Viro
2006-07-01 22:31 ` H. Peter Anvin
2006-07-02 0:05 ` Theodore Tso
2006-07-02 0:17 ` H. Peter Anvin
2006-07-02 0:38 ` Theodore Tso
2006-07-02 0:50 ` H. Peter Anvin [this message]
2006-07-01 22:22 ` H. Peter Anvin
2006-07-03 7:23 ` Gerd Hoffmann
2006-07-03 21:36 ` Pavel Machek
2006-07-01 15:22 ` H. Peter Anvin
2006-07-01 15:47 ` Jeff Garzik
2006-06-30 23:32 ` Pavel Machek
2006-07-11 4:48 ` Olaf Hering
2006-07-11 10:29 ` Michael Tokarev
2006-07-11 11:27 ` [klibc] " Olaf Hering
2006-07-11 16:24 ` H. Peter Anvin
2006-07-11 16:40 ` Olaf Hering
2006-07-11 17:05 ` Jeff Garzik
2006-07-11 17:16 ` Olaf Hering
2006-07-11 17:23 ` H. Peter Anvin
2006-07-11 17:30 ` Olaf Hering
2006-07-11 17:46 ` H. Peter Anvin
2006-07-11 18:01 ` Olaf Hering
2006-07-11 18:04 ` H. Peter Anvin
2006-07-11 18:10 ` Olaf Hering
2006-07-11 18:17 ` H. Peter Anvin
2006-07-11 19:15 ` Olaf Hering
2006-07-11 19:29 ` Linus Torvalds
2006-07-11 19:38 ` H. Peter Anvin
2006-07-11 19:51 ` Linus Torvalds
2006-07-11 19:59 ` Jeff Garzik
2006-07-11 20:01 ` Theodore Tso
2006-07-11 20:11 ` Olaf Hering
2006-07-11 20:57 ` H. Peter Anvin
2006-07-11 18:03 ` H. Peter Anvin
2006-07-11 18:06 ` Michael Tokarev
2006-07-11 18:15 ` Olaf Hering
2006-07-11 18:22 ` H. Peter Anvin
2006-07-11 18:53 ` Alan Cox
2006-07-11 18:46 ` H. Peter Anvin
2006-07-11 20:06 ` Olaf Hering
2006-07-11 20:22 ` Olaf Hering
2006-07-11 21:22 ` Greg KH
2006-07-12 16:54 ` Olaf Hering
2006-07-12 16:58 ` Arjan van de Ven
2006-07-12 17:01 ` Olaf Hering
2006-07-12 21:36 ` Greg KH
2006-07-11 17:55 ` Michael Tokarev
2006-07-11 17:46 ` Michael Tokarev
2006-07-11 17:52 ` Olaf Hering
2006-07-11 18:02 ` Michael Tokarev
2006-07-11 10:51 ` Sam Ravnborg
2006-07-11 13:45 ` Theodore Tso
2006-07-11 14:28 ` Michael Tokarev
2006-07-11 15:13 ` [klibc] " Olaf Hering
2006-07-11 15:30 ` Adrian Bunk
2006-07-11 15:47 ` Olaf Hering
2006-07-11 16:21 ` Alan Cox
2006-07-11 14:32 ` Rene Herman
2006-07-12 15:23 ` David Lang
2006-07-13 11:58 ` Pavel Machek
2006-06-27 18:59 ` [klibc 00/43] klibc as a historyless patchset Milton Miller
2006-06-27 19:12 ` H. Peter Anvin
2006-06-27 20:39 ` Milton Miller
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=44A71840.8040904@zytor.com \
--to=hpa@zytor.com \
--cc=jbailey@ubuntu.com \
--cc=klibc@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mjt@tls.msk.ru \
--cc=pavel@ucw.cz \
--cc=torvalds@osdl.org \
--cc=tytso@mit.edu \
--cc=zippel@linux-m68k.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