🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #2246

Re: NFS vs NNTP for news reading

#2246
From: Eliot Lear
Date: Fri, 25 Sep 1992 13:51
53 lines
3593 bytes
In <Bv3qL8.AvE@cs.bham.ac.uk> axs@cs.bham.ac.uk (Aaron Sloman) writes:
>Without being an expert in these matters I gained the impression
>from earlier articles responding to my original question that sites
>that had actually *tried* both instead of just theorising found that
>nfs worked better for reading (mainly because nntp required a
>separate process on the server for each reader, whereas a fixed
>number of nfsd processes can support any number of readers), and
>nntp worked better for posting, mainly because of problems of
>locking via nfs.

Your impression may be true for others, but not for me.  I admit to
being a bit opaque in my previous message so let me clarify a bit.

Whether or not NFS does better than NNTP is implementation dependent
and probably site specific.  With most popular UNIXes there is a
substantial cost for context switches.  Thus NFS may get you the
articles faster.

NNTP buys you a way to impose on the news readers an API to the
information on the server that allows you to optimize for your local
conditions.  Depending on those conditions, NNTP optimization may far
outweigh the cost of a context.

Here's a real life example of each case:

Most news readers want some amount of information about every unread
article in every subscribed newsgroup.  In the case of RN, it will
open each unread article when using NFS to dig out name, subject,
lines, and some other information, when the user presses = to get a
header summary.  If RN uses NNTP, it will issue XHDR commands for each
header the user wants.  Assuming people use the = key (and readers
like XRN automatically do) the cost of using rn is O(unread
subscribed) - generally a LARGE number.

However, since I know that the NNTP version of RN uses XHDR to get
this information, and I know that at my site lots of people use RN,
I'm going to cache the from, subject, and lines fields of each message
into one or two files per newsgroup, or maybe even one big file.  That
would reduce my file opens on my server to O(# unread groups) or O(1)
just for that function.  One other note- file opens are expensive in
many environments.

On the other side, if I conclude that the reader of choice is GNUS,
since that reader really wants every header, it is probably not
practical for me to cache the header of every article.  Therefore, the
cost will be on the same order of magnitude as not caching at all.  In
this case, NFS will actually buy you something if it is indeed more
efficient at getting the bits to the client.

Again, your mileage will vary.
--
Eliot Lear
[lear@sgi.com]
Technical Details
Message-ID: <1992Sep25.063701.28466@odin.corp.sgi.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!sdd.hp.com!elroy.jpl.nasa.gov!ames!pacbell.com!tandem!zorch!scott
References: <1992Sep21.181925.20551@kronos.com> <1992Sep22.171014.5757@e3u001.ped.pto.ford.com> <TROST.92Sep23212955@romulus.reed.edu> <Bv3qL8.AvE@cs.bham.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <1992Sep25.063701.28466@odin.corp.sgi.com>
Subject: Re: NFS vs NNTP for news reading
Date: Fri, 25 Sep 1992 13:51:06 GMT
From: lear@yeager.corp.sgi.com (Eliot Lear)
References: <1992Sep21.181925.20551@kronos.com> <1992Sep22.171014.5757@e3u001.ped.pto.ford.com> <TROST.92Sep23212955@romulus.reed.edu> <Bv3qL8.AvE@cs.bham.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!sdd.hp.com!elroy.jpl.nasa.gov!ames!pacbell.com!tandem!zorch!scott
Newsgroups: news.admin.technical,news.software.b,news.software.readers
Sender: scott@zorch.SF-Bay.ORG (Scott Hazen Mueller)
Organization: Silicon Graphics, Inc. Mountain View, CA
Approved: scott@zorch.SF-Bay.ORG
Lines: 53