Article View: news.software.nn
Article #6089Re: processing load on news server from nn ?
From: Steven L Kunz
Date: Fri, 08 Jul 1994 15:21
Date: Fri, 08 Jul 1994 15:21
84 lines
4778 bytes
4778 bytes
In <2vhshu$dm8@vixen.cso.uiuc.edu> parker@ehsn17.cen.uiuc.edu (Robert Scott Parker) writes:
>[...] I wanted them to install nn, but they are reluctant
>to do so because of "the load it imposes on the news server". I was wondering
>if anyone knows how the server load would compare to that of rn and xrn, due
>to the collection of new news alone and due to reading by users...
>Does nn use particularly more processing power than that required for rn alone?
>(both in the issue of background news collection/processing and in servicing
>users)
>If you have comparative data, that would be especially appreciated.
Here at Iowa State University we have a central client news-server that
serves out news to about 700 DECStations, hundreds of micros, and a lot of
other misc systems (including two mainframes). We're currently pushing out
about 1.7 million articles a week to our clients. The server is a
DECStation 5000/240 (running ULTRIX and INN). A load of 70-100 simultaneous
clients is not uncommon.
Getting to your "nn" question, we DO run "nnmaster" (the nn thread-builder)
- on the news-server only. We thread every newsgroup (about 2,500 currently)
and keep the threads on the news-server. Every client system NFS-mounts the
thread database by a perverted "nn" front-end command as follows:
#!/bin/sh
#
# Routine: nn -- "front-end" shell script
# Author: Steven L. Kunz (skunz@iastate.edu)
# Date: 8/7/91
# Function: This shell is the front-end to running nn clients over a
# network. It attaches any necessary nn db files and then
# calls the "real" nn program.
#
if [ ! -r /usr/spool/nn/DATA ] ; then
/bin/attach -n -o ro,soft,timeo=8,retrans=7 nndb
fi
exec /usr/local/bin/nnfake $0 $* # Transfer to the "real" nn
The "nnfake" program calls the "real" nn binary (called "nngo") and tricks
it into thinking it was called as "nn" or "nntidy" or "nngoback", etc.
It is a really simple "C" program as follows:
main(argc,argv)
int argc;
char **argv;
{
execvp("/usr/local/bin/nngo",argv+1);
}
All our DECStations run a port of DECAthena called "Project Vincent". The
systems get their binaries off central servers, so it is easy for us to keep
software "common and in-sync". Other (non-Vincent) systems roll their own
and seem to have no problem (providing they support NFS). They can look at
what we did with the scripts (or consult us for advice).
This works pretty slick, because what we found is that the greatest load
happens when everyone tries to run their own copy of "nnmaster" (and you
have hundreds of systems sucking up all the articles over the NNTP port,
consuming network bandwidth, server time, local disk space for threads,
etc). A shared thread database is just the ticket. NFS carries some
baggage but it does not seem to impact the server much.
In fact, we carried this idea over to the "trn" (threaded rn) newsreader and
mounted the "trn" mthreads database the same way until trn got the ability
to use NOV (News Overview) threads. Since we run INN on the news-server, we
let it build NOV threads and converted all our trn clients to use NOV
threads only (served out over the NNTP port, as opposed to an NFS-mounted
"mthreads" database off the server). This is "a good thing" because the
"trn" mthreads process is a real hog on the CPU and memory on your server if
you thread all groups (which we do).
As for future plans, when I get a copy of "nn" that uses NOV threads, I'll
install that and shut down the "nnmaster". This will put us in the position
of having one thread database (NOV) and no NFS mounts (since the threads are
server out over the NNTP port).
One way to do it at a large site - hope this helps.
--
Steven L. Kunz
Networked Applications
Iowa State University Computation Center, Iowa State University, Ames IA
Internet: skunz@iastate.edu Bitnet: gr.slk@isumvs.bitnet
Technical Details
Message-ID:
<skunz.773680876@corvette.cc.iastate.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!newsrelay.iastate.edu!news.iastate.edu!corvette.cc.iastate.edu!skunzReferences:
<2vhshu$dm8@vixen.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <skunz.773680876@corvette.cc.iastate.edu> Subject: Re: processing load on news server from nn ? Date: Fri, 08 Jul 1994 15:21:16 +0000 From: skunz@iastate.edu (Steven L Kunz) References: <2vhshu$dm8@vixen.cso.uiuc.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!newsrelay.iastate.edu!news.iastate.edu!corvette.cc.iastate.edu!skunz Newsgroups: news.software.nn Organization: Iowa State University, Ames, Iowa Lines: 84 NNTP-Posting-Host: corvette.cc.iastate.edu