Thread View: news.software.nntp
5 messages
5 total messages
Started by Dan Swartzendruber
Thu, 11 Jun 1998 00:00
Problem with 2.0/CNFS on FreeBSD 2.2.6-STABLE
Author: Dan Swartzendruber
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
18 lines
984 bytes
984 bytes
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.
Re: Problem with 2.0/CNFS on FreeBSD 2.2.6-STABLE
Author: Dan Swartzendruber
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
34 lines
1531 bytes
1531 bytes
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
Re: Problem with 2.0/CNFS on FreeBSD 2.2.6-STABLE
Author: 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
Re: Problem with 2.0/CNFS on FreeBSD 2.2.6-STABLE
Author: Dan Swartzendruber
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
23 lines
1227 bytes
1227 bytes
Okay, I think I know what is happening (just not why). Apparently
innd seems to try to restrict the number of open fd/socket to one
less than the system max (64/process in this case). I went out to
dinner and when I came back, it had gone south again. Here is a
before and after of fstat -p | wc (thanks Matt!):
/root# fstat -p 20889 | wc
63 552 4468
(and after it is wedged)
67 584 4712
I guess I can bump the fd limit, but I'm curious why innd's heuristic
is going south...
Re: Problem with 2.0/CNFS on FreeBSD 2.2.6-STABLE
Author: Dan Swartzendruber
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
14 lines
974 bytes
974 bytes
Mystery solved. Despite my having put
:openfiles=256:\
in the news entry in login.conf, apparently since inndstart starts life
as a non-news process, it inherited the 64 file limit non-news users
had by default. Sigh...
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads