From owner-freebsd-questions Thu Mar 6 22:56:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA20456 for questions-outgoing; Thu, 6 Mar 1997 22:56:39 -0800 (PST) Received: from Radford.i-Plus.net (root@Radford.i-Plus.net [206.99.237.6]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA20444 for ; Thu, 6 Mar 1997 22:56:34 -0800 (PST) Received: from abyss (pitlord@abyss.i-Plus.net [206.99.237.42]) by Radford.i-Plus.net (8.8.5/8.8.5) with SMTP id BAA26976; Fri, 7 Mar 1997 01:55:29 -0500 (EST) Message-Id: <199703070655.BAA26976@Radford.i-Plus.net> Comments: Authenticated sender is From: "Troy Settle" Organization: iPlus Internet Services To: The Hermit Hacker , questions@freebsd.org Date: Fri, 7 Mar 1997 02:07:35 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Too many open files... Reply-to: rewt@i-Plus.net Priority: normal In-reply-to: X-mailer: Pegasus Mail for Win32 (v2.52) Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hi... > > I'm running a news server on a FreeBSD 2.2-CURRENT machine (it > was CURRENT when I upgraded to it way way back) and have just added a > few news feeds onto it. Over the past couple of days, I've started to > get the following error, which I'm assuming is a result of now having > more newsfeeds then my currently compiled kernel can handle (am upgrading > to the Feb 3.0-CURRENT over the next few days: > > news> ctlinnd mode > Server throttled Too many open files writing article file -- throttling > Allowing remote connections > Parameters c 14 i 0 (28) l 1000000 o 115 t 300 H 2 T 60 X 0 normal specified > Not reserved > Readers separate enabled > > Am I correct in doing the following to fix/reduce this problem: > > hub# sysctl kern.maxfilesperproc > kern.maxfilesperproc: 2088 > hub# sysctl kern.maxfiles > kern.maxfiles: 2088 > hub# sysctl -w kern.maxfiles=4096 > kern.maxfiles: 2088 -> 4096 > hub# ^files^filesperproc > sysctl -w kern.maxfilesperproc=4096 > kern.maxfilesperproc: 2088 -> 4096 > > Am more or less wondering if I've set the correct values... > > Thanks... I thought it was something like: MAXFILES=XXXX oh... wait, that's some other OS.... oh well Actually, I've been having the same problem lately on a 2.2-GAMMA box, and am wondering what all that sysctl stuff is. Isn't there a kernel config option I can use? --Troy -- Troy Settle Network Administrator, iPlus Internet Services http://www.i-Plus.net ( Stuff I said does not reflect the company I work ) ( for unless I'm speaking on behalf of said company )