Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2001 15:35:32 +0200 (CEST)
From:      Stefan `Sec` Zehl <sec@yoda.fwe.pi.musin.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/30484: rpc.rstatd consumed lots of open file descriptors
Message-ID:  <200109101335.f8ADZWn75437@yoda.fwe.pi.musin.de>

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

>Number:         30484
>Category:       bin
>Synopsis:       rpc.rstatd consumed lots of open file descriptors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 10 06:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 4.4-RC i386
>Organization:
>Environment:

System: FreeBSD yoda 4.4-RC FreeBSD 4.4-RC #5: Sun Aug 19 13:22:01 CEST 2001 root@yoda:/usr/obj/usr/src/sys/YODA i386

last make world on 1.Sep - have not rebooted yet.

	
>Description:

Today my machine expirienced lots of problems since all maximum number
of open files was reached.

This resulted in amusing messages like:
lsof: can't open pipes: Too many open files in system
ps: /dev/null: Too many open files in system

and others.

I wasn't able to execute any program (besides shell-builtins)

After killing a few programs i found that 'rpc.rstatd' was the source of
the problem. lsof showed that it had consumed them all to open /dev/mem and
/dev/kmem:

[...]
rpc.rstat 58933   root  383r  VCHR        2,1 0xc035c524   6293 /dev/kmem
rpc.rstat 58933   root  384r  VCHR        2,0        0t0   6294 /dev/mem
rpc.rstat 58933   root  385r  VCHR        2,1 0xc035c524   6293 /dev/kmem
rpc.rstat 58933   root  386r  VCHR        2,0        0t0   6294 /dev/mem
rpc.rstat 58933   root  387r  VCHR        2,1 0xc035c524   6293 /dev/kmem
rpc.rstat 58933   root  388r  VCHR        2,0        0t0   6294 /dev/mem
rpc.rstat 58933   root  389r  VCHR        2,1 0xc035c524   6293 /dev/kmem

after killing it, the problem ceased.

	
>How-To-Repeat:

I have rpc.rstatd enabled in the inetd.conf, and query it regularely using 
xosview using a command line like this:

xsysstats -allnames -split 1x3 -display :0 -window 1 -type cpu -color red -window 2 -type disk -color red -window 3 -type packets -color red -samescale -host <myhostname>

This has happened the first time, so I can't really reproduce it. I will
cvsup today and try with a brand new kernel and world and see if thet problem
happens again.

I figured I send this now even though its incomplete, because the release
is so close, and you might want to look into it.

>Fix:

Have ddb in the kernel so you can find the pid of your rpc.rstatd :->

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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