🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15008

Re: NEWNEWS Command

#15008
From: Simon Burr
Date: Wed, 12 Feb 1997 00:00
55 lines
3210 bytes
Terry Kennedy wrote:
>I use C News + the reference NNTP plus a bunch of local enhancements,
>so I'm not entirely conversant with INN. However, in my environment an
>ARTICLE command that specifies a Message-ID returns the article in
>milliseconds.

The same is true for INN. The problems occur with INN since nnrpd starts
to read the history database into memory to do this. So doing just one
ARTICLE command with a Message-ID isn't going to hurt too much. Its when
lots of ARTICLE commands using Message-IDs are used that problems start to
occur. When this happens more and more of the history database is read
into memory. As I said before, enough of these processes and a news server
can quickly run itself into the ground.

innd does something similar. This is one of the reasons why innd can grow
quite large, anything from 20-90Mb depending on what the news server is
doing.

>it's using the ID's hash to look in the history file and pull out the
>path and item number.

Something like that. The dbz database contains a map of Message-ID to seek
position within the text file. This leads to a very fast lookup of where
an article lives on the spool.

>I have a customer system pulling a full feed via one of these things, and
>the NNTP process is using about 1MB of memory:

I can't really comment, not knowing how your news system works indepth.
I'd guess that the reader program, unlike nnrpd, doesn't read the history
database into memory. I this is the case, it is going to have a smaller
memory footprint.

>Let me expand on this a bit. If the nntpd is reading the history database
>full-tilt, there's less I/O capacity for other accesses of the history
>data-base, as well (..) as articles.

Sortof. Don't forget that the OS will be doing things like caching the
requested blocks, etc. AFAICT part of the reason nnrpd reads the history
dbz into memory is to reduce hits upon it. Whilst this is a good idea when
there is lots of memory available, it can be a loss when memory starts to
run out and a system starts to swap more.

> (if history is on the same disk as articles)

Personally I'd say that you need to place the history files on a different
disk to the articles. Even better is to place the disks the spool is made
up of onto a separate SCSI bus (or buses) from the rest of the news system.

--
Simon Burr                             Work: simonb@uunet.pipex.com
Systems Engineering, UUNetPipex        Play: simes@bpfh.net

Technical Details
Message-ID: <33020774.15E2@bpfh.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-mail
References: <5doh1j$en4$1@jair.pressenter.com> <E5GFKo.Goz@spcuna.spc.edu> <33019E95.4B85@bpfh.net> <E5Hq41.4M2@spcuna.spc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <33020774.15E2@bpfh.net>
Subject: Re: NEWNEWS Command
Date: Wed, 12 Feb 1997 00:00:00 +0000
From: Simon Burr <simes@bpfh.net>
References: <5doh1j$en4$1@jair.pressenter.com> <E5GFKo.Goz@spcuna.spc.edu> <33019E95.4B85@bpfh.net> <E5Hq41.4M2@spcuna.spc.edu>
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: 218298276
Distribution: inet
Content-Type: text/plain; charset=us-ascii
Organization: BPFH - Don't ask
Mime-Version: 1.0
Newsgroups: news.software.nntp
X-Mailer: Mozilla 2.02 (Win95; I)