Article View: news.software.nntp
Article #11224Re: Is dnews the answer?
From: Matthias Urlichs
Date: Sun, 29 Sep 1996 00:00
Date: Sun, 29 Sep 1996 00:00
54 lines
3587 bytes
3587 bytes
In news.software.nntp, article <52maca$7lr@work.smurf.noris.de>,
I wrote:
>
> IMHO, a server which implements a sucking feed is a Mistake with a capital M.
>
I've since been asked to explain why I say so.
First, there are two ways to figure out which articles the server has but
you don't. One is to remember your article position within each newsgroup.
This is comparatively good; actually, Dnews does things this way. The
second way, as exhibited by slurp, is the NEWNEWS command. This requires
the server to search in its history file for the starting point of the
query and then search through the whole (and usually rather big) file for
matching newsgroups. Computing such a match isn't exactly the fastest of
operations... you easily spend a few msecs per history line. It adds up.
Plus, the file access flushes other data out of the system's cache.
Second, you need to pull the articles. This (currently -- people are
working on alternate storage mechanisms) means a path lookup and an article
read. With a "normal" active feed, the article is likely to be in the cache
if the receiving system is reasonably fast and if the sending system has a
reasonably big heap of main memory. A suck feed, on the other hand, will
get the articles when they're long gone from main memory, so the system
will have to read them back in. More load to the poor overworked server.
The next problem is that a human being usually doesn't read that fast. Most
Unix systems keep the data you read in memory for a few seconds (unless
space gets tight). If you read faster, like when you're sucking news, your
article data (which doesn't need to be cached, but the system can't know
that, currently) will push other data out. On a system with unified memory
architecture, that'll mean your program text (and data) will get purged --
to be swapped back in, half a second later. Duh.
> Now, a sever which pulls articles off a distant server when a new user
> starts to read (and the server realizes it's not subscribed to the group in
> question) is probably a good idea. If the beast can be configured to send
> (authenticated?) GUP emails to the upstream server, so much the better.
>
Pulling the articles in this case is a reasonable solution because that
happens _once_; afterwards, the recipient will have the requested newsgroup
added to its regular feed. Of course, the subscription update should be
more immediate than currently available via GUP.
--
You are so agravating you could give an aspirin a headache.
--
Matthias Urlichs \ noris network GmbH / Xlink-POP N�rnberg
Schleiermacherstra�e 12 \ Linux+Internet / EMail: urlichs@noris.de
90491 N�rnberg (Germany) \ Consulting+Programming+Networking+etc'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42
Technical Details
Message-ID:
<52mon9$anh@work.smurf.noris.de>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:
<516i08$t0j@news.eecs.umich.edu> <52maca$7lr@work.smurf.noris.de>Show Full Headers
Complete Article Headers
Message-ID: <52mon9$anh@work.smurf.noris.de> Subject: Re: Is dnews the answer? Date: Sun, 29 Sep 1996 00:00:00 +0000 From: smurf@noris.de (Matthias Urlichs) References: <516i08$t0j@news.eecs.umich.edu> <52maca$7lr@work.smurf.noris.de> 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: 186066887 Content-type: text/plain; charset=iso-8859-1 Organization: noris network GmbH, Nuernberg, FRG Mime-version: 1.0 Newsgroups: news.software.nntp