Re: [klibc] klibc and what's the next step?

From: H. Peter Anvin
Date: Sat Jul 01 2006 - 20:49:35 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/