Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Sep 2001 17:52:24 +0200
From:      OundK.Gregorius@t-online.de (Gregorius)
To:        "Edwin Groothuis" <edwin@mavetju.org>
Cc:        <freebsd-questions@FreeBSD.org>
Subject:   AW: /kernel: /file:table is full
Message-ID:  <NFBBJMEECLHACGHGMBBEEEFOCCAA.OundK.gregorius@t-online.de>
In-Reply-To: <20010923211545.K10641@k7.mavetju.org>

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


> -----Ursprüngliche Nachricht-----
> Von: Edwin Groothuis [mailto:edwin@mavetju.org]
> Gesendet: Sonntag, 23. September 2001 13:16
> An: Gregorius
> Cc: freebsd-questions@FreeBSD.org
> Betreff: Re: /kernel: /file:table is full
>
>
> On Sun, Sep 23, 2001 at 12:00:40PM +0200, Gregorius wrote:
> > >smbclient Win98
> > params.c: Open Conf File () - unable to open configuration file
> > "usr/local/etc/smb.conf"
> > too many open files in System
>
> You should see if you can install lsof (it's from the ports
> collection) and see what process is eating your file descriptors.
> A friend had this problem once when he ran fetchmail as root in
> deamon mode and it was not closing a file each poll. After three
> days he had a zillion open file descriptors.
>
 Hi Edwin,
thank you for your replay.

I did as you told me, but that didn´t solve the problem.

Httpd seemed to be very active, but after I killed it, I still got the same
message.
(Maybe I should also mention that I can do everything else. I only get this
message with Samba)

When I do

>pstat -T

I get:
49/2088 files
0M/131M swap space

doesn´t that mean that there should be enough files to open?

I noticed another thing that seems strange to me:
when I tried to connect to my Win98 box for the first time my BSD box asked
for a file called
"smb.conf.". So I changed my "smb.conf" to "smb.conf." .
After that it tried to connect but ended up with "connection failed" and
"too many open files in system" as I wrote bevor.
Isn´t that strange? Why does it need a "." ?


Thanks again for helping me.

Kirstin


P.S. Here is the output of lsof.
Maybe someone who has more experience than I can notice a problem.


>lsof

COMMAND   PID    USER   FD   TYPE     DEVICE   SIZE/OFF   NODE NAME
init        1    root  cwd   VDIR 116,131072        512      2 /
init        1    root  rtd   VDIR 116,131072        512      2 /
init        1    root  txt   VREG 116,131072     274932  18923 /sbin/init
adjkerntz  30    root  cwd   VDIR 116,131072        512      2 /
adjkerntz  30    root  rtd   VDIR 116,131072        512      2 /
adjkerntz  30    root  txt   VREG 116,131072      61968  18900
/sbin/adjkerntz
adjkerntz  30    root    0u  VBAD                              (revoked)
adjkerntz  30    root    1u  VBAD                              (revoked)
adjkerntz  30    root    2u  VBAD                              (revoked)
syslogd   152    root  cwd   VDIR 116,131072        512      2 /
syslogd   152    root  rtd   VDIR 116,131072        512      2 /
syslogd   152    root  txt   VREG 116,131078      28572 563587
/usr/sbin/syslogd
syslogd   152    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
syslogd   152    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
syslogd   152    root    0u  VCHR        2,2        0t0   6297 /dev/null
syslogd   152    root    1u  VCHR        2,2        0t0   6297 /dev/null
syslogd   152    root    2u  VCHR        2,2        0t0   6297 /dev/null
syslogd   152    root    3u  unix 0xc61acf00        0t0        ->(none)
syslogd   152    root    4u  IPv6 0xc620ef00        0t0    UDP *:syslog
syslogd   152    root    5u  IPv4 0xc620ee40        0t0    UDP *:syslog
syslogd   152    root    6r  VCHR        7,0     0t5736   6323 /dev/klog
syslogd   152    root    8w  VREG 116,131077      61111  35847
/var/log/messages
syslogd   152    root    9w  VREG 116,131077          0  35848
/var/log/security
syslogd   152    root   10w  VREG 116,131077        416  35845
/var/log/maillog
syslogd   152    root   11w  VREG 116,131077          0  35844
/var/log/lpd-errs
syslogd   152    root   12w  VREG 116,131077      11537  35842 /var/log/cron
syslogd   152    root   13w  VREG 116,131077       6777  35852
/var/log/console.log
syslogd   152    root   14w  VCHR       12,9        0t0   6610 /dev/ttyv9
syslogd   152    root   15w  VREG 116,131077          0  35849
/var/log/slip.log
syslogd   152    root   16w  VREG 116,131077          0  35850
/var/log/ppp.log
inetd     173    root  cwd   VDIR 116,131072        512      2 /
inetd     173    root  rtd   VDIR 116,131072        512      2 /
inetd     173    root  txt   VREG 116,131078      33820 563505
/usr/sbin/inetd
inetd     173    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
inetd     173    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
inetd     173    root  txt   VREG 116,131078      27088 389008
/usr/lib/libwrap.so.3
inetd     173    root  txt   VREG 116,131078      21672 388950
/usr/lib/libipsec.so.1
inetd     173    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
inetd     173    root    0u  VCHR        2,2        0t0   6297 /dev/null
inetd     173    root    1u  VCHR        2,2        0t0   6297 /dev/null
inetd     173    root    2u  VCHR        2,2        0t0   6297 /dev/null
inetd     173    root    3u  PIPE 0xc665af20      16384        ->0xc665ae80
inetd     173    root    4u  IPv4 0xc626fd80        0t0    TCP *:ftp
(LISTEN)
inetd     173    root    5u  IPv4 0xc6270d80        0t0    TCP *:netbios-ssn
(LISTEN)
inetd     173    root    6u  IPv4 0xc620ed80        0t0    UDP *:netbios-ns
inetd     173    root    7u  PIPE 0xc665ae80      16384        ->0xc665af20
cron      175    root  cwd   VDIR 116,131077        512   7169 /var/cron
cron      175    root  rtd   VDIR 116,131072        512      2 /
cron      175    root  txt   VREG 116,131078      30344 563491
/usr/sbin/cron
cron      175    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
cron      175    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
cron      175    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
cron      175    root    0u  VCHR        2,2        0t0   6297 /dev/null
cron      175    root    1u  VCHR        2,2        0t0   6297 /dev/null
cron      175    root    2u  VCHR        2,2        0t0   6297 /dev/null
cron      175    root    3uW VREG 116,131077          4  14382 /var
(/dev/ad0s1f)
sshd      178    root  cwd   VDIR 116,131072        512      2 /
sshd      178    root  rtd   VDIR 116,131072        512      2 /
sshd      178    root  txt   VREG 116,131078     198112 563669
/usr/sbin/sshd
sshd      178    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
sshd      178    root  txt   VREG 116,131078      33988 388971
/usr/lib/libopie.so.2
sshd      178    root  txt   VREG 116,131078      34272 388879
/usr/lib/libmd.so.2
sshd      178    root  txt   VREG 116,131078      28588 388873
/usr/lib/libcrypt.so.2
sshd      178    root  txt   VREG 116,131078     762068 389060
/usr/lib/libcrypto.so.2
sshd      178    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
sshd      178    root  txt   VREG 116,131078      50748 389015
/usr/lib/libz.so.2
sshd      178    root  txt   VREG 116,131078      27088 389008
/usr/lib/libwrap.so.3
sshd      178    root  txt   VREG 116,131078      34664 388983
/usr/lib/libpam.so.1
sshd      178    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
sshd      178    root    0u  VCHR        2,2        0t0   6297 /dev/null
sshd      178    root    1u  VCHR        2,2        0t0   6297 /dev/null
sshd      178    root    2u  VCHR        2,2        0t0   6297 /dev/null
sshd      178    root    3u  IPv6 0xc6270b60        0t0    TCP *:ssh
sshd      178    root    4u  IPv4 0xc6270940        0t0    TCP *:ssh
(LISTEN)
tcsh      232    root  cwd   VDIR 116,131072        512  12606 /root
tcsh      232    root  rtd   VDIR 116,131072        512      2 /
tcsh      232    root  txt   VREG 116,131072     636076  12581 /bin/tcsh
tcsh      232    root   15u  VCHR       12,0     0t1373   6300 /dev/ttyv0
tcsh      232    root   16u  VCHR       12,0     0t1373   6300 /dev/ttyv0
tcsh      232    root   17u  VCHR       12,0     0t1373   6300 /dev/ttyv0
tcsh      232    root   18u  VCHR       12,0     0t1373   6300 /dev/ttyv0
tcsh      232    root   19u  VCHR       12,0     0t1373   6300 /dev/ttyv0
getty     233    root  cwd   VDIR 116,131072        512      2 /
getty     233    root  rtd   VDIR 116,131072        512      2 /
getty     233    root  txt   VREG 116,131078      21256 492047
/usr/libexec/getty
getty     233    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
getty     233    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
getty     233    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
getty     233    root    0u  VCHR       12,1       0t60   6301 /dev/ttyv1
getty     233    root    1u  VCHR       12,1       0t60   6301 /dev/ttyv1
getty     233    root    2u  VCHR       12,1       0t60   6301 /dev/ttyv1
getty     234    root  cwd   VDIR 116,131072        512      2 /
getty     234    root  rtd   VDIR 116,131072        512      2 /
getty     234    root  txt   VREG 116,131078      21256 492047
/usr/libexec/getty
getty     234    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
getty     234    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
getty     234    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
getty     234    root    0u  VCHR       12,2       0t60   6302 /dev/ttyv2
getty     234    root    1u  VCHR       12,2       0t60   6302 /dev/ttyv2
getty     234    root    2u  VCHR       12,2       0t60   6302 /dev/ttyv2
getty     235    root  cwd   VDIR 116,131072        512      2 /
getty     235    root  rtd   VDIR 116,131072        512      2 /
getty     235    root  txt   VREG 116,131078      21256 492047
/usr/libexec/getty
getty     235    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
getty     235    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
getty     235    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
getty     235    root    0u  VCHR       12,3       0t60   6604 /dev/ttyv3
getty     235    root    1u  VCHR       12,3       0t60   6604 /dev/ttyv3
getty     235    root    2u  VCHR       12,3       0t60   6604 /dev/ttyv3
getty     236    root  cwd   VDIR 116,131072        512      2 /
getty     236    root  rtd   VDIR 116,131072        512      2 /
getty     236    root  txt   VREG 116,131078      21256 492047
/usr/libexec/getty
getty     236    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
getty     236    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
getty     236    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
getty     236    root    0u  VCHR       12,4       0t60   6605 /dev/ttyv4
getty     236    root    1u  VCHR       12,4       0t60   6605 /dev/ttyv4
getty     236    root    2u  VCHR       12,4       0t60   6605 /dev/ttyv4
getty     237    root  cwd   VDIR 116,131072        512      2 /
getty     237    root  rtd   VDIR 116,131072        512      2 /
getty     237    root  txt   VREG 116,131078      21256 492047
/usr/libexec/getty
getty     237    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
getty     237    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
getty     237    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
getty     237    root    0u  VCHR       12,5       0t60   6606 /dev/ttyv5
getty     237    root    1u  VCHR       12,5       0t60   6606 /dev/ttyv5
getty     237    root    2u  VCHR       12,5       0t60   6606 /dev/ttyv5
getty     238    root  cwd   VDIR 116,131072        512      2 /
getty     238    root  rtd   VDIR 116,131072        512      2 /
getty     238    root  txt   VREG 116,131078      21256 492047
/usr/libexec/getty
getty     238    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
getty     238    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
getty     238    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
getty     238    root    0u  VCHR       12,6       0t60   6607 /dev/ttyv6
getty     238    root    1u  VCHR       12,6       0t60   6607 /dev/ttyv6
getty     238    root    2u  VCHR       12,6       0t60   6607 /dev/ttyv6
getty     239    root  cwd   VDIR 116,131072        512      2 /
getty     239    root  rtd   VDIR 116,131072        512      2 /
getty     239    root  txt   VREG 116,131078      21256 492047
/usr/libexec/getty
getty     239    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
getty     239    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
getty     239    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
getty     239    root    0u  VCHR       12,7       0t60   6608 /dev/ttyv7
getty     239    root    1u  VCHR       12,7       0t60   6608 /dev/ttyv7
getty     239    root    2u  VCHR       12,7       0t60   6608 /dev/ttyv7
nmbd      245    root  cwd   VDIR 116,131072        512      2 /
nmbd      245    root  rtd   VDIR 116,131072        512      2 /
nmbd      245    root  txt   VREG 116,131078     430958 127265
/usr/local/sbin/nmbd
nmbd      245    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
nmbd      245    root  txt   VREG 116,131078     147288 389038
/usr/lib/libreadline.so.4
nmbd      245    root  txt   VREG 116,131078      28588 388873
/usr/lib/libcrypt.so.2
nmbd      245    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
nmbd      245    root  txt   VREG 116,131078     260360 388882
/usr/lib/libncurses.so.5
nmbd      245    root    0u  IPv4 0xc620ed80        0t0    UDP *:netbios-ns
nmbd      245    root    1u  IPv4 0xc620ed80        0t0    UDP *:netbios-ns
nmbd      245    root    2u  IPv4 0xc620ed80        0t0    UDP *:netbios-ns
nmbd      245    root    3w  VREG 116,131077       7021  35858
/var/log/log.nmb
nmbd      245    root    4ww VREG 116,131077         20  14345 /var
(/dev/ad0s1f)
nmbd      245    root    5u  IPv4 0xc620ecc0        0t0    UDP *:netbios-dgm
nmbd      245    root    6u  IPv4 0xc620ec00        0t0    UDP
JarJarBinks.StarWars.prv:netbios-ns
nmbd      245    root    7u  IPv4 0xc620eb40        0t0    UDP
JarJarBinks.StarWars.prv:netbios-dgm
sshd      247    root  cwd   VDIR 116,131072        512      2 /
sshd      247    root  rtd   VDIR 116,131072        512      2 /
sshd      247    root  txt   VREG 116,131078     198112 563669
/usr/sbin/sshd
sshd      247    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
sshd      247    root  txt   VREG 116,131078      33988 388971
/usr/lib/libopie.so.2
sshd      247    root  txt   VREG 116,131078      34272 388879
/usr/lib/libmd.so.2
sshd      247    root  txt   VREG 116,131078      28588 388873
/usr/lib/libcrypt.so.2
sshd      247    root  txt   VREG 116,131078     762068 389060
/usr/lib/libcrypto.so.2
sshd      247    root  txt   VREG 116,131078      32528 388907
/usr/lib/libutil.so.3
sshd      247    root  txt   VREG 116,131078      50748 389015
/usr/lib/libz.so.2
sshd      247    root  txt   VREG 116,131078      27088 389008
/usr/lib/libwrap.so.3
sshd      247    root  txt   VREG 116,131078      34664 388983
/usr/lib/libpam.so.1
sshd      247    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
sshd      247    root  txt   VREG 116,131078       4024 388978
/usr/lib/pam_skey.so
sshd      247    root  txt   VREG 116,131078      24220 388901
/usr/lib/libskey.so.2
sshd      247    root  txt   VREG 116,131078       4828 388981
/usr/lib/pam_unix.so
sshd      247    root  txt   VREG 116,131078       3436 388976
/usr/lib/pam_permit.so
sshd      247    root    0u  VCHR        2,2        0t0   6297 /dev/null
sshd      247    root    1u  VCHR        2,2        0t0   6297 /dev/null
sshd      247    root    2u  VCHR        2,2        0t0   6297 /dev/null
sshd      247    root    3u  VCHR        6,0    0t47089   6625 /dev/ptyp0
sshd      247    root    4u  VCHR        6,0    0t47089   6625 /dev/ptyp0
sshd      247    root    5u  IPv4 0xc6270500        0t0    TCP
JarJarBinks.StarWars.prv:ssh->C3PO.StarWars.prv.:1026 (ESTABLISHED)
sshd      247    root    6u  VCHR        6,0    0t47089   6625 /dev/ptyp0
tcsh      248 kirstin  cwd   VDIR 116,131078        512  16008
/usr/home/kirstin
tcsh      248 kirstin  rtd   VDIR 116,131072        512      2 /
tcsh      248 kirstin  txt   VREG 116,131072     636076  12581 /bin/tcsh
tcsh      248 kirstin   15u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      248 kirstin   16u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      248 kirstin   17u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      248 kirstin   18u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      248 kirstin   19u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      255    root  cwd   VDIR 116,131078        512  16008
/usr/home/kirstin
tcsh      255    root  rtd   VDIR 116,131072        512      2 /
tcsh      255    root  txt   VREG 116,131072     636076  12581 /bin/tcsh
tcsh      255    root   15u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      255    root   16u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      255    root   17u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      255    root   18u  VCHR        5,0      0t108   6624 /dev/ttyp0
tcsh      255    root   19u  VCHR        5,0      0t108   6624 /dev/ttyp0
lsof      275    root  cwd   VDIR 116,131078        512  16008
/usr/home/kirstin
lsof      275    root  rtd   VDIR 116,131072        512      2 /
lsof      275    root  txt   VREG 116,131078     104704 198879
/usr/local/sbin/lsof
lsof      275    root  txt   VREG 116,131078      76264 492069
/usr/libexec/ld-elf.so.1
lsof      275    root  txt   VREG 116,131078      19200 388959
/usr/lib/libkvm.so.2
lsof      275    root  txt   VREG 116,131078     572876 388919
/usr/lib/libc.so.4
lsof      275    root    0u  VCHR        5,0      0t108   6624 /dev/ttyp0
lsof      275    root    1u  VCHR        5,0      0t108   6624 /dev/ttyp0
lsof      275    root    2u  VCHR        5,0      0t108   6624 /dev/ttyp0
lsof      275    root    3r  VCHR        2,0        0t0   6296 /dev/mem
lsof      275    root    4r  VCHR        2,1 0xc0b0e540   6295 /dev/kmem


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




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