All of lore.kernel.org
 help / color / mirror / Atom feed
* Meaning of 'udp' mount option
@ 2003-06-30 19:35 Dan Kegel
  2003-06-30 22:24 ` [PATCH] Make 'udp' mount option really mean it (was: Meaning of 'udp' mount option) Dan Kegel
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Kegel @ 2003-06-30 19:35 UTC (permalink / raw)
  To: nfs

Question 1: what does the 'udp' mount option really mean?
It appears to mean 'Use udp mostly, but use TCP when calling pmap_getmaps()'.
Question 2: is this a bug or a feature?
Question 3: if it's a feature, should we add a new mount option to
mean 'really, dude, use udp for everything'?

The long story:

Imagine, if you will, an NFS server running on an operating system
that will shut down all further TCP connects on a given port if that
port ever encounters more than five simultaneous connects.
(That's a rather perverse limitation, but unfortunately, it seems to
be widespread.)

Imagine further that you have 500 NFS clients that want to connect
simultaneously to that server.  "Ah, simple, I'll just use UDP, and
avoid the issue!", you say.

Unfortunately, it appears that even when you specify UDP as a
mount option, util-linux-2.11[nz]'s mount appears
to always connect to the server's portmapper using TCP.  The
culprit is glibc's pmap_getmaps, which always uses tcp.

I threw together a version of rpcinfo.c that uses udp to do
the same thing as pmap_getmaps, and it works.

The next step is for me to patch nfsmount.c's get_mountport()
to only use the standard pmap_getmaps() if mounting via TCP,
and to use my pmap_getmaps_via_udp() if mounting via UDP.

If that works, then presumably it'd be nice to fold something
like this in to the main tree.  But making the 'udp' mount
option really mean 'udp, goddammit' might be too much of a
change in semantics; perhaps there should be a new mount option
always_udp?

- Dan



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-30 22:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-30 19:35 Meaning of 'udp' mount option Dan Kegel
2003-06-30 22:24 ` [PATCH] Make 'udp' mount option really mean it (was: Meaning of 'udp' mount option) Dan Kegel
2003-06-30 22:29   ` [PATCH] Make 'udp' mount option really mean it Dan Kegel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.