From owner-freebsd-current@FreeBSD.ORG Tue Apr 8 06:52:42 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E527437B405 for ; Tue, 8 Apr 2003 06:52:42 -0700 (PDT) Received: from gs166.sp.cs.cmu.edu (GS166.SP.CS.CMU.EDU [128.2.205.169]) by mx1.FreeBSD.org (Postfix) with SMTP id 4FCD243FD7 for ; Tue, 8 Apr 2003 06:52:42 -0700 (PDT) (envelope-from dpelleg@gs166.sp.cs.cmu.edu) Sender: dpelleg@gs166.sp.cs.cmu.edu To: current@freebsd.org From: Dan Pelleg Date: 08 Apr 2003 09:52:19 -0400 Message-ID: Lines: 48 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: NIS exhausts system resources X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2003 13:52:43 -0000 I'm using a -CURRENT NIS client against a -STABLE server. When I can ssh in, things work, so this is not the SSH issue reported here several times. But sometimes, using NIS spins the system to the effect it's unusable. The logs are full of: kernel: file: table is full syslogd: /dev/console: Too many open files in system rpcbind: rpc: failed to open /etc/netconfig rpcbind: warning: /etc/hosts.allow, line 23: cannot open /etc/hosts.allow: Too many open files in system If I'm lucky and have some open session, I can type "reboot" in it and after a while things shut down cleanly. If not, I can't login (or can't execute reboot) and have to do a hard reset. When does this happen, you ask? I triggered it this morning by booting the machine when the NIS server was down. I had also seen it in the past when configuring NIS, and it happened as soon as I set the domainname. Any ideas? I can provide packet captures on request, however note the failure where the server is down. Configuration details: rc.conf: nfs_server_enable="YES" nfs_client_enable="YES" mountd_flags="-r -l" nisdomainname="foo" nis_client_enable="YES" rpc_lockd_enable="NO" rpc_statd_enable="YES" rpcbind_enable="YES" rpcbind_flags="-l" amd_enable="YES" nsswitch.conf: passwd: nis files group: nis files tail of passwd: -:*:0:::: +:*::::: Thanks in advance, -- Dan Pelleg