From owner-freebsd-questions@FreeBSD.ORG Thu Oct 16 20:38:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF08516A4B3 for ; Thu, 16 Oct 2003 20:38:07 -0700 (PDT) Received: from hotmail.com (bay8-f98.bay8.hotmail.com [64.4.27.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3361343FBF for ; Thu, 16 Oct 2003 20:38:07 -0700 (PDT) (envelope-from unixtools@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 16 Oct 2003 20:38:07 -0700 Received: from 203.199.109.165 by by8fd.bay8.hotmail.msn.com with HTTP; Fri, 17 Oct 2003 03:38:06 GMT X-Originating-IP: [203.199.109.165] X-Originating-Email: [unixtools@hotmail.com] From: "Sunil Sunder Raj" To: readbsd@mind.net Date: Fri, 17 Oct 2003 09:08:06 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 17 Oct 2003 03:38:07.0057 (UTC) FILETIME=[140B6C10:01C39460] cc: freebsd-questions@freebsd.org Subject: Re: kernel option to increase max open files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 03:38:07 -0000 Hi, Run sysctl -w kern.maxfiles=#### to what ever value is needed. To get it updated at startup you can put a line like "kern.maxfiles=####" in /etc/sysctl.conf to have the change on every reboot. You may also have to edit /etc/login.conf and adjust any "openfiles=####" lines that might be lowering the per-process limit. By default the openfiles value is unlimited OR infinite. Regards SSR >From: John Fox >To: freebsd-questions@freebsd.org >Subject: kernel option to increase max open files >Date: Thu, 16 Oct 2003 10:09:14 -0700 > >Hi, folks. > >I've got a 2.2.2 machine which I can't currently upgrade, due to funding >issues. This machine handles a lot of mail, and I am lately finding >dmesg output to be full of "file: table is full" messages, and entries >like these in the sendmail log: > > SYSERR(UID0): readqf: cannot open dfAAA29006: Too many open files in \ > system > > SYSERR(UID0): Cannot open hash database /etc/aliases: Too many open \ > files in system > >So I figure I need to increase the max number of open files available. > >I've looked around, and it appears I have two different options: > >1) Kernel option "options OPEN_MAX=###" which sets the max number >of open files per user (which would be 'root' in this case, as that's who >sendmail runs as). > >2) a login.conf class setting assigned to root. The 'openfiles' setting >seems >somewhat equivalent to the OPEN_MAX option. However, I am not certain >that limits set in login.conf apply to a process being run by a user that >didn't log in (sendmail being started by init at boot, rather than from >root's login session). > > >I welcome any thoughts/advice on this matter, as I don't want to try either >of these changes without having done due diligence. > >Thank you, > > >-John >-- >+---------------------------------------------------------------------------+ >| John Fox | System Administrator | InfoStructure >| >+---------------------------------------------------------------------------+ >| Gideon: I thought you said don't hold a grudge. >| >| Galen: I don't. I have no surviving enemies...at all. >| >| -- "Crusdade", _Racing the Night_ >| >+---------------------------------------------------------------------------+ >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" _________________________________________________________________ Buy now! Receive a gold coin on Dhan Teras. http://server1.msn.co.in/features/general/dhanteras/index.asp Celebrate prosperity!