public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: klibc - another libc?
Date: Wed, 7 Jun 2006 14:17:08 -0700 (PDT)	[thread overview]
Message-ID: <e67fok$h25$1@terminus.zytor.com> (raw)
In-Reply-To: 44869397.4000907@tls.msk.ru

Followup to:  <44869397.4000907@tls.msk.ru>
By author:    Michael Tokarev <mjt@tls.msk.ru>
In newsgroup: linux.dev.kernel
>
> After several mentions of klibc recently, I want to ask a question.
> 
> I understand all the kernel-mode cleanups -- moving initialization
> from kernel to user space is a very good thing.
> 
> But the question really is: why yet another libc?  We already have
> dietlibc, uclibc, glibc, now klibc...  With modern kernel, initramfs
> will very probably contain quite some programs linked with glibc
> (modprobe/insmod, mdadm/lvm, etc; I highly suggest putting some
> minimal text editor like nvi there too, for rescue purposes) --
> so why not have an option to use whatever libc is available on
> the host platform?
> 

You have that option just fine; if you build your own initramfs you
can do whatever you want.

> In the other words, kinit/ipconfig/nfsmount/etc stuff is ok,
> no questions.  But the libc itself -- what for?

To be able to *require* it, which means it can't significantly bloat
the total size of the kernel image.  klibc binaries are *extremely*
small.  Static kinit is only a few tens of kilobytes, a lot of which
is zlib.

> And another related question: why not dietlibc which is already
> here, for quite long time?

- Bigger by an order of magnitude
- License issues
- Platform support
- Speed of portability (klibc is fully portable to a new platform in an afternoon)
- Additional issues which you can find if look through the archives of this list

	-hpa


  reply	other threads:[~2006-06-07 21:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-07  8:51 klibc - another libc? Michael Tokarev
2006-06-07 21:17 ` H. Peter Anvin [this message]
2006-06-07 22:42   ` Roman Zippel
2006-06-08 15:32     ` H. Peter Anvin
2006-06-09 14:13       ` Roman Zippel
2006-06-09 19:02         ` H. Peter Anvin
2006-06-09 19:13           ` Michael Tokarev
2006-06-09 19:29             ` H. Peter Anvin
2006-06-10  1:28             ` Roman Zippel
2006-06-10 16:24               ` Michael Tokarev
2006-06-10 17:28                 ` Sam Ravnborg
2006-06-11  0:21                 ` Roman Zippel
2006-06-10  1:15           ` Roman Zippel
2006-06-10  6:13             ` Sam Ravnborg
2006-06-10 23:37               ` Roman Zippel
2006-06-13  2:31             ` Paul Dickson

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='e67fok$h25$1@terminus.zytor.com' \
    --to=hpa@zytor.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