public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Erik Andersen <andersen@codepoet.org>
To: Alexander Viro <viro@math.psu.edu>
Cc: "H. Peter Anvin" <hpa@zytor.com>, linux-kernel@vger.kernel.org
Subject: Re: klibc and logging
Date: Tue, 13 Aug 2002 04:12:37 -0600	[thread overview]
Message-ID: <20020813101237.GA27879@codepoet.org> (raw)
In-Reply-To: <Pine.GSO.4.21.0208130356480.1689-100000@weyl.math.psu.edu>

On Tue Aug 13, 2002 at 04:04:59AM -0400, Alexander Viro wrote:
> We do have nfsroot support in the kernel.  If we are going to move it
> into the userland, we _must_ have the code for that.  "Use glibc" is
> laughable - try to link anything statically against that dungpile and
> see what size you'll get.

Using the version of mount from util-linux-2.11n: 

Staticly linked vs glibc 2.2.5:
    $ ls -l ./mount
    -rwxr-xr-x    1 andersen andersen   533912 Aug 13 03:41 ./mount*

Staticly linked vs uClibc 0.9.14:
    $ ls -l ./mount
    -rwxr-xr-x    1 andersen andersen   115844 Aug 13 03:40 ./mount*

Busybox mount w/NFS enabled, statically linked vs uClibc 0.9.14:
$ ls -l ./busybox
-rwxr-xr-x    1 andersen andersen    62628 Aug 13 03:46 ./busybox*

And uClibc's RPC code accounts for 33k of the 62k...

> Said that, we don't need anywhere near the full RPC support for nfsroot
> and I'm not sure that we want it in libc even if it will be implemented.
> "Use -lrpc" is perfectly OK.
> 
> Stuff needed for nfsroot
> 	a) is purely sequential (full-sync)
> 	b) we need 2 or 3 RPC calls
> 	c) we can open-code marshalling for these
> IOW, the most complex part of that is handling of timeout and possibly -
> logics with retransmit.  Other than that it's filling an array, doing
> sendmsg(), waiting for reply, and checking several words in received array.

I would love to see an example of how to do an NFS mount w/o
resorting to the C library at all.  Plainly, having generic RPC
code in the C library sucks, even if you trim it down.  Having
the entire NFS mount process live in application space, and not
in the C library, is clearly a win....

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

  reply	other threads:[~2002-08-13 10:08 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-13  7:12 klibc and logging H. Peter Anvin
2002-08-13  7:52 ` Erik Andersen
2002-08-13  8:04   ` Alexander Viro
2002-08-13 10:12     ` Erik Andersen [this message]
2002-08-13 10:38       ` Alexander Viro
2002-08-13 14:27         ` Eric W. Biederman
2002-08-13 18:05         ` H. Peter Anvin
2002-08-13  9:42 ` Miquel van Smoorenburg
2002-08-13 17:41   ` H. Peter Anvin
2002-08-13 17:54     ` Benjamin LaHaise
2002-08-13 17:59       ` H. Peter Anvin
2002-08-13 17:55     ` Randy.Dunlap
2002-08-16  5:05     ` Oliver Xymoron
2002-08-19 13:27 ` Russell King
2002-08-19 13:59   ` H. Peter Anvin
2002-08-19 16:54     ` Russell King
2002-08-19 16:58       ` H. Peter Anvin
2002-08-19 17:25         ` Russell King
2002-08-19 17:27           ` H. Peter Anvin
2002-08-19 17:29           ` H. Peter Anvin
2002-08-19 19:37             ` Alan Cox
2002-08-19 19:40               ` H. Peter Anvin
2002-08-20 13:22       ` Thunder from the hill
2002-08-20 14:45         ` Russell King

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=20020813101237.GA27879@codepoet.org \
    --to=andersen@codepoet.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@math.psu.edu \
    /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