Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  3 Apr 2006 03:42:38 +0200 (CEST)
From:      Palle Girgensohn <girgen@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/95247: NFS file locking problem, rpc.lockd seems to be leaking ports?
Message-ID:  <20060403014238.98B4317B60@palle.girgensohn.se>
Resent-Message-ID: <200604030150.k331oGpg067432@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         95247
>Category:       kern
>Synopsis:       NFS file locking problem, rpc.lockd seems to be leaking ports?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 03 01:50:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn <girgen@FreeBSD.org>
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
Ping Pong AB
>Environment:
System: FreeBSD rambutan.pingpong.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Tue Mar 21 13:42:51 CET 2006 girgen@rambutan.pingpong.net:/usr/obj/.a/banan/usr/src/sys/WORKSTATION i386
>Description:
(This PR is probably related to kern/84953)

Hi!

I'm having a problem with rpc.lockd

Clients are mainly FreeBSD 5.4-stable, server is FreeBSD-4.11-RELEASE-p13.

/home is nfs mounted via amd.

rpc.statd and rpc.lockd is on for both clients and server

Since we started using eclipse (which requires file locking to
operate) we get problems where the number of open priviledged UDP
ports on the server are exhausted.

running sockstat | grep rpc.lock show over 400 lines like this:

root     rpc.lock   174  440 udp4   *:580                 *:*

The default setting for FreeBSD-4.11 seems to be a portrange of 400
ports, I've bumped this by lowering net.inet.ip.portrange.lowlast from
600 -> 500, but eventually they will all be in use too. I have not
found good way to free them properly apart from rebooting the server.

All nfs traffic is UDP only, perhaps that is a problem?

nfsiod -n 4 on all clients

nfs_server_flags="-u -n 12" on the server, perhaps it is too low?

There are only six workstations attached to the server. Each have
about ten rpc.lockd sockets open, while the server has about 400, so
it seems to be a leakage in the server?

See also kern/84953.

	
>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060403014238.98B4317B60>