🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21958

Re: nnrpd going berserk (INN-1.5.1sec2, Linux pre-2.0.31-9)

#21958
From: Georg v.Zezschwitz
Date: Mon, 29 Sep 1997 00:00
53 lines
2560 bytes
In news.software.nntp Lars Syrstad <lars@idb.hist.no> wrote:
: What happens is that occasionally, the server's load will go totally
: wild.  The record so far is 47.  This seems to be caused by a
: ....

I noticed the same problem. Imagine what happens when just another
alt.binaries.-junk is clicking to the next images while the recent
one is still transfered: Each time a new connection is being built
up. This means nearly nothing for the client, but a hell of work
for the server: INN is forked just to recognize that the IP-number
is a client one and that nnrpd should be called. Linux has to copy
the whole memory descriptor table for innd to fork and some other
work, too.

This might result in a really bad situation where the client is
trying faster to open new connections than the server can cope
with the started ones.

The situation typically lasts for some minutes. 

There are two approaches to cope with the problem:

- More memory, faster machine (PPro 200 e.g.) making the fork-
  call faster.

- Directly starting nnrpd for the readers. There are two ways 
  to do so:

  a) you direct your feeding sites to port 120 and change the
     port you run innd at (it's a setting in the include sub-
     directory) to 120. In inetd.conf, you attach port 119
     to nnrpd (remember: not as user root but user news).
     A client connection will start nnrpd directly.

  b) you tell your clients to use port 120 (e.g.) and attach
     nnrpd to port 120 in inetd.conf.

  c) You use "transparent proxying" in Linux (beta feature) to
     redirect requests from certain IP-numbers to a certain port
     on your server (119) to port 120 and start nnrpd in the
     nnrpd. 

Currently, we are using method c), but are trying to switch to
method a) (as I guess it will save some time for IP redirection).


Greetings,


Georg

Technical Details
Message-ID: <60muan$a78$1@alzheimer.hamburg.pop.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <vzyb4hov9n.fsf@kvakk.idb.hist.no>

Show Full Headers
Complete Article Headers
Message-ID: <60muan$a78$1@alzheimer.hamburg.pop.de>
Subject: Re: nnrpd going berserk (INN-1.5.1sec2, Linux pre-2.0.31-9)
Date: Mon, 29 Sep 1997 00:00:00 +0000
From: "Georg v.Zezschwitz" <gvz@popocate.hamburg.pop.de>
References: <vzyb4hov9n.fsf@kvakk.idb.hist.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 276500134
Organization: Point of Presence GmbH (http://www.pop.de)
Newsgroups: news.software.nntp,comp.os.linux.networking