From owner-freebsd-questions Sun Oct 22 16:36:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by hub.freebsd.org (Postfix) with ESMTP id D968837B479 for ; Sun, 22 Oct 2000 16:36:08 -0700 (PDT) Received: from morgaine.udel.edu (morgaine.wondermutt.net [192.168.1.2]) by wondermutt.net (8.11.1/8.11.1) with ESMTP id e9MNavO58328; Sun, 22 Oct 2000 19:36:58 -0400 (EDT) (envelope-from papalia@udel.edu) Message-Id: <4.3.2.7.2.20001022192850.00adb470@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sun, 22 Oct 2000 19:34:52 -0400 To: Mike Meyer , Arcady Genkin From: John Subject: Re: Too many open files in system Cc: questions@FreeBSD.ORG In-Reply-To: <14835.26280.803484.793146@guru.mired.org> References: <110118888@toto.iv> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > 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? > >I don't have the lsof man page installed, but it may be counting every >occurence of a shared file descriptor, whereas kern.maxfiles counts >the actual open file descriptors. Try checking kern.openfiles. I've been watching this thread hoping that some good info comes to light, seeing as how I've had/got a similar problem... I may be *really* far off on this, but within the man page for sysctl, within `sysctl -a` and also in the source code of sysctl.h there appears to be no reference to kern.openfiles? Even more so interesting is that `sysctl -a | grep file | less` yields about 60+ lines of "<3>file: table is full". I don't want to step on the original poster's quest for an answer, but I'm thinking our problems are quite similar and am interested in learning what's 'wrong' :) --John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message