Article View: news.software.nntp
Article #15011Re: NEWNEWS Command
From: Simon Burr
Date: Wed, 12 Feb 1997 00:00
Date: Wed, 12 Feb 1997 00:00
45 lines
3061 bytes
3061 bytes
Terry Kennedy wrote: > All of the common news transports NEWNEWS commands do a search through the > news "history file". This file has grown in step with the number of articles > and can now be quite large (on one of my servers it's > 150MB). This is true, however this is generally *not* the resource hungry part of using NEWNEWS to get new articles. The reader program in INN, nnrpd, uses a binary search to find the start of the articles that should even be looked at for return to the client. From that point each entry in the history database is checked to see if it matches the request the user made in the NEWNEWS command. This is quite efficently written. The problem is that the list of articles which match the request the client made is returned as a list of Message-IDs. Thus the client has to request each article by its Message-ID. It is this part that is expensive as nnrpd has to look in the history database to turn the given Message-ID into the article's location on the spool. When I did some work in this area about a year ago, I found that the NEWNEWS command itself didn't impact performance that much. It was when the client started issuing requests for articles by Message-ID that the problems started. At that point the nnrpd getting such requests would grow in size as more of the history database was read into core. Such nnrpds would be using 16Mb+ of real memory (ie not swapped out). It doesn't that many processes like that to really hurt a news server. It is interesting to note that at least one suck-style program which doesn't use NEWNEWS to get the articles required (AFAIR it used the overview database to get the Message-IDs of the articles in each group), but still got the articles by Message-ID. Since it is the getting of articles by Message-ID that actually hurts the news server, clients which do this are just as bad as clients that make use of NEWNEWS. > While the > news server is searching this file for you, it isn't doing any work for other > users. This is not the case. Multiple nnrpds can run searches on the history database at the same time. Considering that news servers frequently run 300+ simultaneous readers it would be a *real* problem if this was the case. -- Simon Burr Work: simonb@uunet.pipex.com Systems Engineering, UUNetPipex Play: simes@bpfh.net
Technical Details
Message-ID:
<33019E95.4B85@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-mailReferences:
<5doh1j$en4$1@jair.pressenter.com> <E5GFKo.Goz@spcuna.spc.edu>Show Full Headers
Complete Article Headers
Message-ID: <33019E95.4B85@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> 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: 218231246 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)