From owner-freebsd-questions Mon Jan 1 23:45:47 2001 From owner-freebsd-questions@FreeBSD.ORG Mon Jan 1 23:45:43 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id AE56437B400 for ; Mon, 1 Jan 2001 23:45:43 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f027jhk10208; Mon, 1 Jan 2001 23:45:43 -0800 (PST) Date: Mon, 1 Jan 2001 23:45:43 -0800 From: Alfred Perlstein To: David Banning Cc: questions@FreeBSD.ORG Subject: Re: too many files open? Message-ID: <20010101234543.A19572@fw.wintelcom.net> References: <20010102022430.A1250@www3.pacific-pages.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010102022430.A1250@www3.pacific-pages.com>; from david@www3.pacific-pages.com on Tue, Jan 02, 2001 at 02:24:31AM -0500 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * David Banning [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