Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Originally posted by trickykid Its right there in the man page but its not really recommended or might not be supported:
Code:
tcp Mount the NFS filesystem using the TCP protocol instead of the default UDP protocol. Many NFS
servers only support UDP.
I would imagine how udp and tcp work, udp is the better option when using NFS.
the man page is for mounting, not for serving. I know how to mount using tcp, but I'm not serving over TCP yet, so I can't mount with TCP.
UDP is sometimes a better option for NFS. It is not so good with a lossy network. With TCP, while there is a bit more back & forth, a lost packet does not force a complete retransmission - just a new packet. In that respect, it's much faster.
I am experiencing some NFS slow downs, especially on computers behind two switches. TCP sounds like it might be the solution.
Heck, lots of distros are starting to default to TCP for NFS mounts... that should tell you something, right?
Originally posted by mritch trickykid is absolutely (!) right here. the client asks for tcp - the server serves tcp.
what do you think you'll find in /etc/services?
man mount. edit fstab accourdingly.
to be sure your kernel supports serving it:
$ grep NFSD_TCP config-2.4.20
sl mritch.
Thanks for pointing that out mritch, like I said and like the man pages state, make sure your kernel supports serving out TCP instead of UDP, if its not working by mounting and specifying tcp, its most likely the server that doesn't support it and will default to UDP.
ahhh.. that's the answer I was looking for - it's in the kernel. (for the record, I did read the man pages & did try to mount via TCP, but it dodn't work - hence this question)
so..
# grep NFSD_TCP /boot/config-2.4.20-8
# CONFIG_NFSD_TCP is not set
Does this mean I need to recompile my kernel to get it running over TCP? Is there some way to do this without a kernel recompile?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.