From owner-freebsd-questions Sun Oct 22 20:31:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from daemon9.cameron.edu (daemon9.cameron.edu [164.58.116.140]) by hub.freebsd.org (Postfix) with ESMTP id D375337B4C5 for ; Sun, 22 Oct 2000 20:31:41 -0700 (PDT) Received: (from jbeley@localhost) by daemon9.cameron.edu (8.11.1/8.11.1) id e9N3VYe27060; Sun, 22 Oct 2000 22:31:34 -0500 (CDT) (envelope-from jbeley) Date: Sun, 22 Oct 2000 22:31:33 -0500 From: Jeff Beley To: Arcady Genkin Cc: freebsd-questions@freebsd.org Subject: Re: Too many open files in system Message-ID: <20001022223133.A23143@daemon9.cameron.edu> References: <87puktbv01.fsf@tea.thpoon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <87puktbv01.fsf@tea.thpoon.com>; from antipode@thpoon.com on Sat, Oct 21, 2000 at 08:05:34PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What is your MAXUSERS set at in your kernel config? On my 4.1.1-STABLE box my maxusers is set to 64 and lsof -n | wc-l reports 3187 open files(this is it a very non-peak time). kern.openfiles is in 5.0-CURRENT not 4.x afaik. --Jeff On Sat, Oct 21, 2000 at 08:05:34PM -0400, Arcady Genkin wrote: > "Otter" writes: > > Otter, thanks for your reply! > > > Looking at the sysctl man page, you'll find plenty of options to > > tweak. I see a kern.maxfiles option, though I'm not exactly sure what > > it does. Sounds like it may be worth looking into. > > This option is not explained in the manpage, so I looked at > sys/sysctl.h file and it seems that this might be the max number of > open files on the system. However, this number is set to 552 right > now, whereas `lsof' reports 809 open files. > > ,---- > | soup:/usr/include/sys# sysctl kern.maxfiles > | kern.maxfiles: 552 > | soup:/usr/include/sys# lsof | wc -l > | 809 > `---- > > Am I misunderstanding something? Any further ideas? > > Many thanks, > -- > Arcady Genkin > Don't read everything you believe. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Jeff Beley Linux System Administrator Information Technology Services Cameron University jeffb@cameron.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message