Thread View: news.software.readers
13 messages
13 total messages
Started by Ted Goldblatt
Fri, 04 Sep 1992 21:53
NFS vs NNTP for news reading
Author: Ted Goldblatt
Date: Fri, 04 Sep 1992 21:53
Date: Fri, 04 Sep 1992 21:53
100 lines
5125 bytes
5125 bytes
Thanks to all who responded to my request for suggestions on
sizing a news partition. (BTW, the general consensus was that
given my (restrictive) expire schedule, 300MB would be tight,
but adequate right now, though it probably wouldn't be in 6
months or so. There was also a feeling that the 4 day expire
was too short, so I'm attempting to weasel another couple of
hundred MB (you know, I remember back to when that was a lot
of disk space :-)) so that I'll have breathing room and so I
can extend the expiry on at least the "important" stuff to
(maybe) a week).
New question:
Is it the sense of the net (:-)) that having the news server
feed the news readers via nntp is preferable to feeding via
(read only) exported NFS filesystems, or vice versa?
I have seen some (vague) discussions on this topic, but I
don't remember any conclusions (it may be too configuration
dependent, though I believe Henry Spencer at least made it
clear to me that _he_ doesn't like nntp).
My config:
cnews (will be the latest, since I have to reinstall anyway
:-)), trn with threads database is the principal newsreader,
some use of GNUS - as far as I know no other readers
currently used, basically a full feed, SunOS 4.1.1
(upgrading to 4.1.2, but not all at once - the new news
host, however, _will_ be running 4.1.2), reading from
Apollos also needed, but no other platforms need be
supported (at least at this time)
3 ethernets (call them X, Y, and Z). Each is populated with
relatively small number of workstations (8 to about 15). No
other (significant) users sit on the nets. Slow growth (at
most) of the workstation population is expected. The
workstations and servers are largely Sparcs of various
flavors, with a few Apollos (I use one) and a few HPs. All
workstations are disked, so no paging traffic hits any of
the nets, and in general the nets are far from saturated.
Net X (which I happen to be on) has a router with our
Internet link (56kb leased line). Our news host is
currently a workstation on net X. We will be moving the
news to a file server (Sparc of some flavor with 32 or 40 MB
of RAM and lots of files, but not too much activity) on net
Y. Connecting X, Y, and Z is a (separate) router that also
provides connectivity to our 2 remote sites (low bandwidth).
Users on net X are (relatively heavy) news users; there will
be some (but probably less) news use on net Y. There is
(I believe) no interest in news on the part of users on net
Z. (The news server is being moved to net Y because that's
where a file server with space exists; as I indicated to
several people by mail, news is a luxury here and must
subsist on space we can scrounge :-(.)
The bandwidth between nets X and Y has been measured
(at I believe the FTP level) to be on the order of 70kB (bytes)
per second. There is currently very little traffic between
the nets, and in particular, there are no NFS file systems
mounted between the nets (not policy, just no requirement
up to now).
So...
As I see it, we have 2 choices for how newsreaders on nets
X and Y access the news store: exclusively use NNTP (for
accessing active, articles, trn threads database, posting,
and anything else needed), or export the news file system
(read only) and handle posting either via NNTP or (as in
the standard(?) cnews inews) using rsh to export an inews
command to the server. If it matters, we have a single
incoming feed (NNTP) and currently have no outgoing feeds.
If we _do_ ever add an outgoing feed, it would be to one
of our remote sites.
Firstly: would a purely NFS solution work? I'm assuming that
there are no synchronization issues except when posting, but
I could be wrong.
Secondly: (taking into account the bandwidth bottleneck at
our router (which will have to handle newsflow in both
directions, since we will _not_ be moving the router which
is our Internet connection to net Y)) are there obvious
benefits to one or the other approach?
Thirdly: is there a hybrid or other approach that would be
superior to either of these?
Finally: if the NFS solution is deemed preferable, would
using NNTP or rsh for posting be better?
Thanx for all assistance!
ted
--
Ted Goldblatt ted@telematics.com (305) 351-4367
Telematics Intl., Inc. Ft. Lauderdale, FL
Re: NFS vs NNTP for news reading
Author: John Hascall
Date: Sun, 13 Sep 1992 05:23
Date: Sun, 13 Sep 1992 05:23
16 lines
1611 bytes
1611 bytes
In article <Bu8pDC.HJ5@ux1.isu.edu> axs@cs.bham.ac.uk (Aaron Sloman) writes: }One problem with nntp is that it provides only a limited set of ways }of accessing the news directories. For some users it is important to }be able to apply any Unix utility (e.g. grep) to news files. Cross }mounting disks via NFS makes this possible. Some of us see this as an NNTP advantage -- having an (irrational?) fear of a couple hundred students grepping through a gigabyte of news... John -- John Hascall ``Live with it pink-boy!'' Project Vincent Iowa State University Computation Center john@iastate.edu Ames, IA 50011 515/294-9551 [fax -1717]
Re: NFS vs NNTP for news reading
Author: Andreas Karrer
Date: Mon, 14 Sep 1992 14:34
Date: Mon, 14 Sep 1992 14:34
26 lines
1999 bytes
1999 bytes
axs@cs.bham.ac.uk (Aaron Sloman) writes: >simmdan@ux1.isu.edu = ted@telematics.com (Ted Goldblatt) writes: >> Is it the sense of the net (:-)) that having the news server >> feed the news readers via nntp is preferable to feeding via >> (read only) exported NFS filesystems, or vice versa? >One problem with nntp is that it provides only a limited set of ways >of accessing the news directories. For some users it is important to >be able to apply any Unix utility (e.g. grep) to news files. Cross >mounting disks via NFS makes this possible. It also makes it possible for someone to run a "find /usr/spool/news ..." on your news spool. Just watch that load average go up. Most Mac/PC newsreaders cannot use NFS. I export the trn and nn databases read-only to those users who run trn or nn, and tell them not to run mthreads or nnmaster -- until some consensus is reached on how thread information should be presented by the nntp server (will there ever?). everything else goes thru NNTP. +----------- Andi Karrer, Communication Systems, ETH Zuerich, Switzerland karrer@bernina.ethz.ch - Objects in mirror are closer than they appear
Re: NFS vs NNTP for news reading
Author: Rich Braun
Date: Mon, 21 Sep 1992 23:16
Date: Mon, 21 Sep 1992 23:16
18 lines
1784 bytes
1784 bytes
>>One problem with nntp is that it provides only a limited set of ways >>of accessing the news directories. For some users it is important to >>be able to apply any Unix utility (e.g. grep) to news files. Cross >>mounting disks via NFS makes this possible. It seems to be conventional wisdom that users actually _want_ to do a shell-escape to grep a spool directory for something. Personally, I'd much rather have a newsreader and news transport which has this kind of capability built in. Storing netnews in a binary data structure, and providing useful front ends to replace the common operations like "!grep something-I-want /usr/spool/news/comp/foo/*" that people want, would result in a better-performing and easier-to-use system. Is there any company in the business of building this kind of software, or is it all still left to the public domain? -rich
Re: NFS vs NNTP for news reading
Author: Larry Cannell
Date: Tue, 22 Sep 1992 18:38
Date: Tue, 22 Sep 1992 18:38
16 lines
1496 bytes
1496 bytes
Perhaps I am coming into this conversation late but... Is there any performance reasons to use either NNTP or NFS? It would appear to me that perhaps NFS would use the network better, or more consistently, then NNTP since the latter depends on the reader's usage of the protocol. Whereas NFS is known system software which is made to do efficient buffering over the network. But, on the other hand, perhaps NFS is doing more work than necessary? I don't claim to be experienced in either protocol so some expert opinions would be appreciated. Larry Cannell Powertrain Electronics Ford Motor Company
Re: NFS vs NNTP for news reading
Author: Bill Trost
Date: Thu, 24 Sep 1992 14:25
Date: Thu, 24 Sep 1992 14:25
18 lines
1808 bytes
1808 bytes
In article <1992Sep22.171014.5757@e3u001.ped.pto.ford.com> cannell@ed8217.ped.pto.ford.com (Larry Cannell) writes: Is there any performance reasons to use either NNTP or NFS? It would appear to me that perhaps NFS would use the network better, or more consistently, then NNTP since the latter depends on the reader's usage of the protocol. Note that NFS is (generally) constrained to transfer 8K blocks of the file at a time (or the whole file, if it's shorter than that). If you're only reading the subject lines of your message to determine that you want to kill it, that's about 7.9K more than you need. :-) Also, NFS involves several rather expensive path-lookup transactions (generally considered the worst part of NFS, performance-wise). What we need now is a good NFS-quote from Henry Spencer.... :-) -- Bill Trost <trost@reed.edu> If someone wants to believe in something, that doesn't make it true.
Re: NFS vs NNTP for news reading
Author: Barry Margolin
Date: Fri, 25 Sep 1992 04:32
Date: Fri, 25 Sep 1992 04:32
10 lines
1253 bytes
1253 bytes
In article <TROST.92Sep23212955@romulus.reed.edu> trost@romulus.reed.edu (Bill Trost) writes:
>Also, NFS involves several rather expensive path-lookup transactions
>(generally considered the worst part of NFS, performance-wise).
Most of them should be bypassed by caches in the client.
--
Barry Margolin
System Manager, Thinking Machines Corp.
barmar@think.com {uunet,harvard}!think!barmar
Re: NFS vs NNTP for news reading
Author: Aaron Sloman
Date: Fri, 25 Sep 1992 04:33
Date: Fri, 25 Sep 1992 04:33
38 lines
2644 bytes
2644 bytes
trost@romulus.reed.edu (Bill Trost) writes > In article <1992Sep22.171014.5757@e3u001.ped.pto.ford.com> cannell@ed8217.ped.pto.ford.com (Larry Cannell) writes: > Is there any performance reasons to use either NNTP or NFS? > > It would appear to me that perhaps NFS would use the network > better, or more consistently, then NNTP since the latter depends on > the reader's usage of the protocol. > > Note that NFS is (generally) constrained to transfer 8K blocks of the > file at a time (or the whole file, if it's shorter than that). If > you're only reading the subject lines of your message to determine > that you want to kill it, that's about 7.9K more than you need. :-) > Also, NFS involves several rather expensive path-lookup transactions > (generally considered the worst part of NFS, performance-wise). 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. It was suggested that the news disk should be mounted with option "intr" or "soft" in case the news server goes down, and, of course, exported read only. Of course, this is of no interest to sites that cannot use NFS, for whatever reason. Aaron -- Aaron Sloman, School of Computer Science, The University of Birmingham, B15 2TT, England EMAIL A.Sloman@cs.bham.ac.uk Phone: +44-(0)21-414-3711 Fax: +44-(0)21-414-4281
Re: NFS vs NNTP for news reading
Author: Eliot Lear
Date: Fri, 25 Sep 1992 13:51
Date: Fri, 25 Sep 1992 13:51
53 lines
3593 bytes
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]
Re: NFS vs NNTP for news reading
Author: Joe Burger
Date: Fri, 25 Sep 1992 18:07
Date: Fri, 25 Sep 1992 18:07
35 lines
2590 bytes
2590 bytes
Somebody 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. My experience is exactly the reverse. The problem with letting people read news using NFS is that you CAN'T control the news-reading load (because all the requests are seen by the kernel). Actually it's worse than that -- all those newsreaders get preferential treatment over the user-level processes (such as news transport) on your news server. I speak from experience; I used to have news read by NFS from our news machine -- performance on the news machine was horrible, often news would be backed up for several days. Just changing the news-reading load to nntp allowed news to catch up. Another advantage with nntp-style (aka, a user-level process) is that you can fine-tune news-reading .vs. news-transport priorities; for example, the nntp's serving local newsreaders all do a nice(1) to stay out of the way of the news transport software. The people reading news didn't see a noticeable performance loss, and it keeps the news transport software going full-bore. Admittedly, this was a worst-case scenario; my news machine (until recently) was a vax 750! bolo/joe -- | Joe Burger U of WI-Madison Computer Sciences | bolo@cs.wisc.edu uwvax!bolo
Re: NFS vs NNTP for news reading
Author: Jerry Aguirre
Date: Sat, 26 Sep 1992 02:54
Date: Sat, 26 Sep 1992 02:54
12 lines
1622 bytes
1622 bytes
In article <bolo.717434610@cs.wisc.edu> bolo@cs.wisc.edu (Joe Burger) writes: >My experience is exactly the reverse. The problem with letting >people read news using NFS is that you CAN'T control the news-reading >load (because all the requests are seen by the kernel). Actually >it's worse than that -- all those newsreaders get preferential treatment >over the user-level processes (such as news transport) on your news server. So, what you are saying is that it is more important to get new news, or to pass the news you already have on to some external site, than to let your own people read what you already have? You would rather slow down your own users access than tell one of your leaf sites to take a hike?
Re: NFS vs NNTP for news reading
Author: Aaron Sloman
Date: Sat, 26 Sep 1992 21:05
Date: Sat, 26 Sep 1992 21:05
38 lines
2762 bytes
2762 bytes
cimshop!davidm@uunet.UU.NET (David S. Masterson) writes: > Date: 25 Sep 92 22:32:51 GMT > Organization: Consilium Inc., Mountain View, California > The general consensus around here is that NNTP allows for better performance > monitoring and control of news reading than NFS. We run our news connection > to the outside world on a SUN-3 and that system would be severely taxed if it > had to handle NFS demands from within the company as well as unwind the news > batches from UUNET. NNTP requests have been much more palatable for this > system and the priority of NNTP can be set down if too many people are reading > the news. And, as I mentioned in a previous reply, if the *only* purpose of NFS on the server is to support news readings, you can also reduce the priority of nfsd processes. I am getting the impression that a lot depends on the configuration. E.g. my experience is that having a Sun-3 export disks via NFS to *much faster* workstations, e.g. SPARCStations, can put a much larger load on the machine and the network than if the clients were better matched to the server. Perhaps it seems to have something to do with the frequency of failed attempts to contact the server when the server is busy? It seems to me from all the comments so far that the only way to find out what works well is to try various options, and the results will depend on the configuration and the number of simultaneous news users. In my department the news system is used by a relatively small number of people at any one time, so I would like to maximise its functionality for them. Aaron -- Aaron Sloman, School of Computer Science, The University of Birmingham, B15 2TT, England EMAIL A.Sloman@cs.bham.ac.uk Phone: +44-(0)21-414-3711 Fax: +44-(0)21-414-4281
Re: NFS vs NNTP for news reading
Author: Henry Mensch
Date: Sun, 04 Oct 1992 20:52
Date: Sun, 04 Oct 1992 20:52
15 lines
1391 bytes
1391 bytes
richb@kronos.com (Rich Braun) wrote: ->It seems to be conventional wisdom that users actually _want_ to ->do a shell-escape to grep a spool directory for something. actually, i think it is something that the individuals posting to this space want to do ... but i don't think this is what the general population wants. ->Personally, I'd much rather have a newsreader and news transport which has ->this kind of capability built in. ... much better. -- # henry mensch / booz, allen & hamilton, inc. / <henry@ads.com>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads