Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2001 13:34:28 -0500
From:      David Banning <david@www3.pacific-pages.com>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        David Banning <david@banning.com>, questions@FreeBSD.ORG
Subject:   Re: too many files open?
Message-ID:  <20010102133428.A7337@www3.pacific-pages.com>
In-Reply-To: <20010101234543.A19572@fw.wintelcom.net>; from bright@wintelcom.net on Mon, Jan 01, 2001 at 11:45:43PM -0800
References:  <20010102022430.A1250@www3.pacific-pages.com> <20010101234543.A19572@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
That didn't seem to solve my samba problem - but I'll bet
it does solve my "too many files open problem".

Thanks for your help.


On Mon, Jan 01, 2001 at 11:45:43PM -0800, Alfred Perlstein wrote:
> * David Banning <david@www3.pacific-pages.com> [010101 23:26] wrote:
> > All of a sudden samba stopped working.  I notice the
> > smbd and nmdb daemons are not staying loaded.
> > 
> > Here is what /var/log/messages says on boot;
> > 
> > n  2 01:25:00 d named[118]: starting.  named 8.2.2-P5-NOESW Mon Mar 20 20:43:5
> > 4 GMT 2000      root@monster.cdrom.com:/usr/obj/usr/src/usr.sbin/named
> > Jan  2 01:25:00 d named[118]: limit files set to fdlimit (1024)
> > Jan  2 01:25:00 d named[119]: Ready to answer queries.
> > Jan  2 01:25:01 d /kernel: dc0: DAD complete for fe80:0001::0220:78ff:fe0e:13d6
> > - no duplicates found
> > Jan  2 01:25:02 d lpd[144]: restarted
> > Jan  2 01:26:11 d syslogd: /dev/console: Too many open files in system: Too many
> >  open files in system
> > Jan  2 01:26:11 d syslogd: /var/run/utmp: Too many open files in system
> > Jan  2 01:26:11 d syslogd: /var/run/utmp: Too many open files in system
> > Jan  2 01:26:11 d /kernel: file: table is full
> > Jan  2 01:26:14 d last message repeated 4 times
> > Jan  2 01:27:01 d rshd[300]: auth_pam: Permission denied
> > Jan  2 01:27:01 d rshd[300]: PAM authentication failed
> > Jan  2 01:29:01 d su: david to root on /dev/ttyp0
> > 
> > any ideas? Are the too many files linked to the fdlimit?
> 
> Not that I know of.
> 
> > If so should I just raise fdlimit?  how?
> 
> sysctl kern.maxfiles
> then
> sysctl -w kern.maxfiles=N
> 
> where N is some higher number than what was returned by the first
> command.
> 
> You might want to recompile your kernel with a higher "maxusers"
> setting because that will automagically scale the amount of other
> system structures to deal with your high load situation better.
> 
> > Is this why the samba daemons won't get running?
> 
> Probably :)
> 
> -- 
> -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
> "I have the heart of a child; I keep it in a jar on my desk."
> 


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?20010102133428.A7337>