From owner-freebsd-bugs Mon Sep 10 6:40:23 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5ACA637B408 for ; Mon, 10 Sep 2001 06:40:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8ADe1032576; Mon, 10 Sep 2001 06:40:01 -0700 (PDT) (envelope-from gnats) Received: from yoda.fwe.pi.musin.de (yoda.fwe.pi.musin.de [194.246.250.18]) by hub.freebsd.org (Postfix) with ESMTP id 48D5737B401 for ; Mon, 10 Sep 2001 06:35:35 -0700 (PDT) Received: (from sec@localhost) by yoda.fwe.pi.musin.de (8.11.6/8.11.4) id f8ADZWn75437; Mon, 10 Sep 2001 15:35:32 +0200 (CEST) (envelope-from sec) Message-Id: <200109101335.f8ADZWn75437@yoda.fwe.pi.musin.de> Date: Mon, 10 Sep 2001 15:35:32 +0200 (CEST) From: Stefan `Sec` Zehl Reply-To: Stefan `Sec` Zehl To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/30484: rpc.rstatd consumed lots of open file descriptors Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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