Article View: news.software.nntp
Article #29073Re: Problem with 2.0/CNFS on FreeBSD 2.2.6-STABLE
From: Matt Dillon
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
62 lines
2811 bytes
2811 bytes
:In article <6lpfs7$b4c@transfer.stratus.com>,
:Dan Swartzendruber <dswartz@druber.com> wrote:
:>
:>Dan Swartzendruber wrote in message <6lpd3g$9rb@transfer.stratus.com>...
:>>I've been running this config for several days now. Unfortunately, in the
:>>last 24 hours or so, after the server has been active for several
:>>hours, the logfile starts filling up with these:
:>>
:>>Jun 11 15:47:10 news innd: SERVER cant accept RCreader Too many open files
:>>
:>>This same kernel/HW has been running 1.7.2insync for several months, with
:>no
:>>problems.
:>
:>
:>Don't normally followup to my own posts, but I now believe that what
:>is happening is that nnrp is leaking sockets. Here is a netstat -an
:>before and after a telnet to port 119 (where all I did was 'quit'):
:>
:>news.kersur.net:/root# netstat -an | grep 119 |wc
:> 15 90 1178
:>
:>(then I telnet to port 119 and quit)
:>
:>news.kersur.net:/root# netstat -an | grep 119 |wc
:> 16 96 1255
:>
You can easily determine how many file descriptors a process is using
with fstat:
fstat -p pid
There are several system parameters you need to look at that may be set
too low.
* sysctl -a | fgrep vnode
Increase kern.maxvnodes if necessary
* resources limits. Make sure the INND process is not hitting the
per-process resource limit.
from csh or tcsh, type 'limit'.
Also beware that later FreeBSD releases utilize /etc/login.conf
which will initialize the resources for cron-run programs, your
default login resources, and so on.
Also beware that the 'daemon' user in /etc/login.conf is the base
resource set that /etc/rc uses, and if you set hard limits in this
section it will hard limit every single process on the system!
-Matt
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Technical Details
Message-ID:
<6lph6c$shk$1@flea.best.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6lpd3g$9rb@transfer.stratus.com> <6lpfs7$b4c@transfer.stratus.com>Show Full Headers
Complete Article Headers
Message-ID: <6lph6c$shk$1@flea.best.net> Subject: Re: Problem with 2.0/CNFS on FreeBSD 2.2.6-STABLE Date: Thu, 11 Jun 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <6lpd3g$9rb@transfer.stratus.com> <6lpfs7$b4c@transfer.stratus.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 361812302 Distribution: inet X-Trace: 897599501 13005 dillon 206.184.139.132 Organization: Best Internet Communications, Inc. Newsgroups: news.software.nntp