-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lever, Charles wrote: >>the current xprt_bindresvport implementation will search for >>a privileged >>port by counting down from 800 to 0. I think this is a bug, because it >>will potentially interfere with services trying to bind to >>low ports as >>well. > > > is this idle speculation, or do you actually have a test case that > fails? :^) > Well, I haven't seen this 'interfere' with services yet, I can imagine that it is plausible for a service to want to grab some port at a later time only to have it in use by nfs. > >>The bindresvport implementation in glibc picks from the 600-1023 >>range. > > > we should review what other RPC implementations do (namely the reference > implementation, Solaris). > > but also notice this cuts the usable port range in half (from ~800 to > ~420). we need some form of mitigation to ensure we aren't limiting the > number of NFS mounts a client can have. This has been bugging me for a while. The fact that we are limitting ourselves to a single nfs mount per port. From what I can tell, Solaris shares the transports between nfs mounts from the same server and saves themselves a lot of trouble with running out of port numbers in doing so. The attached patch does the same for Linux against 2.6.9. We share xprts from existing connections, effectively removing any limit on the number of nfs mounts we have in the system. The only thing to worry about now is any talking to the portmapper or mountd from userspace using tcp, which will put the reserved ports in TIME_WAIT state. This can limit the 'speed' at which we mount many mounts. - -- Mike Waychison Sun Microsystems, Inc. 1 (650) 352-5299 voice 1 (416) 202-8336 voice ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: The opinions expressed in this email are held by me, and may not represent the views of Sun Microsystems, Inc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBt0VQdQs4kOxk3/MRAjo8AKCJjoqPxk1R3ev+o+UyquE0kiw0LQCfebi8 6mfhMSHLidFslVyt6jFeNis= =0uCI -----END PGP SIGNATURE-----