🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
13 messages
13 total messages Started by chrisp Tue, 12 Jul 1994 23:57
Make INN NEWS ten times more efficient!!!
#10026
Author: chrisp
Date: Tue, 12 Jul 1994 23:57
36 lines
2007 bytes
NEWS is currently VERY inefficient.

A typical site gets 2,500 news groups.

At a typical site only about 100 news groups are read.  (but this 
figure would vary a great deal)

This means 2,400 news groups are being propogated every day for no
reason.  A very simple improvement to INN would fix this

If the newsfeeds file was made a dynamic file modified by INN.

INN would keep one dummy article in all news groups, if that was 
read by an nntp connection, then it would send a request up the
line to it's feeding INN site and ask it to add that news group
to it's 'newsfeeds' file.

If a group isn't accessed for 60 days then it would send a 'remove'
command up to it's feeding site.

The end result is that sites could carry much larger histories of 
news articles because of the lower disk use. And the network
and cpu processing would be cut by factor of about 10.

This would enable many small sites to run a 'local' server as the
disk and network requirements would be so greatly reduced.

Comments?
Is anyone already doing this?


				Chris,  Email: chrisp@marc.cri.nz

				HortResearch Ltd., New Zealand.

"He's dead, Jim. I'll get his tricorder. You take his wallet."
Re: Make INN NEWS ten times more efficient!!!
#10033
Author: Mark Delany
Date: Wed, 13 Jul 1994 12:31
31 lines
1950 bytes
chrisp@marc.cri.nz writes:

>NEWS is currently VERY inefficient.

>A typical site gets 2,500 news groups.

>At a typical site only about 100 news groups are read.  (but this 
>figure would vary a great deal)

>If the newsfeeds file was made a dynamic file modified by INN.

>If a group isn't accessed for 60 days then it would send a 'remove'
>command up to it's feeding site.

>Comments?
>Is anyone already doing this?

It's a done deal. Plenty of sites do this in many different ways. The
only thing is that it need not involve INN at all. A simple shell
script can determine the actual newsgroups in use at a given site and
send a subscription modification request to its feed site (in fact
there are progs around the traps that will scan your .newsrc for you).

The big problem with this strategy is that you end up *not* carrying
newsgroups that may be of potential interest. If you have a user who
notices the existence of (say) news.software.readers, but you don't
currently carry it because of the aforementioned optimization, then
they have no way of sampling it do they?


M.
Re: Make INN NEWS ten times more efficient!!!
#10037
Author: PE. Smee
Date: Wed, 13 Jul 1994 14:59
40 lines
2909 bytes
In article <2vvass$aum@grunt.marc.cri.nz>,  <chrisp@marc.cri.nz> wrote:
>A typical site gets 2,500 news groups.
>
>At a typical site only about 100 news groups are read.  (but this 
>figure would vary a great deal)

Too right! :-)  According to our active file, we take ~2750 groups,
and according to our NNTP logs users are accessing 2700 of them.
(Wonder which 54 aren't being read?)

>INN would keep one dummy article in all news groups, if that was 
>read by an nntp connection, then it would send a request up the
>line to it's feeding INN site and ask it to add that news group
>to it's 'newsfeeds' file.

Depends upon the nature of the net as a whole.  For small 'leaf' sites,
it would seem like a possible win - and, they are the ones most likely
to have difficulties owing to net and disk limitations.  However, see
below.  For larger leaf sites, it feels probable to me that your guess
of 100 'groups being read' is probably far too small.

For 'hosts' generally, it's a lot less clear.  If I serve you, and you
ask me to start sending you a group, then if none of my users are
reading it, I won't have it either, so I'll have to ask my feed sites
to start sending it to me.  This recurses.  Feels like requests for
feed would tend to percolate, by the same sort of flooding transmission
which moves articles, so that in the end you end up with everyone
passing everything around again, but also having to check and maintain
a bloody huge 'should I send this' file.

Feels like whether it wins or not depends upon what percentage of the
hosts are small true leaves, with no-one else downstream from them.  I
have no feeling for this.  (In this count, tiny one-or-2-user desktop
'hosts' don't count, really, since they are probably already using
mechanisms to limit what groups get dumped down to them - assuming
they've really got feeds, and aren't just reading from a server.)

-- 
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
     P.Smee@bristol.ac.uk - Tel +44 272 303132 - FAX +44 272 291576
Re: Make INN NEWS ten times more efficient!!!
#10046
Author: Brad Templeton
Date: Wed, 13 Jul 1994 20:52
9 lines
1241 bytes
Dynafeed   ftp://ftp.clarinet.com/sources/dynafeed.tar.Z does this though
it was written long before INN, and some simple hacks could make it
spit out an INN feed entry rather than the .newsrc it uses for its own
(mostly uucp intended) feeding tool.

I welcome the patches if somebody wants to do 'em.  I haven't the time.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.
The net's #1 electronic newspaper (circulation 60,000) -- info@clarinet.com
Re: Make INN NEWS ten times more efficient!!!
#10048
Author: John L. Jamison
Date: Wed, 13 Jul 1994 23:33
18 lines
1406 bytes

>If the newsfeeds file was made a dynamic file modified by INN.
>
>INN would keep one dummy article in all news groups, if that was 
>read by an nntp connection, then it would send a request up the
>line to it's feeding INN site and ask it to add that news group
>to it's 'newsfeeds' file.
>

I wrote a program which scans through a local active file (presumably trimmed 
down to wanted groups) and your feeder system's active file. It then generates
an INN-appropriate newsfeeds entry.

Reply directly if you are interested in it.

-John Jamison
jamison@metropolis.com
Re: Make INN NEWS ten times more efficient!!!
#10101
Author: Robert A. Rosenberg
Date: Sat, 16 Jul 1994 05:09
26 lines
2098 bytes
In Article <CsvwAK.GBo@info.bris.ac.uk>, ccpes@sun.cse.bris.ac.uk (PE. Smee)
wrote:

>Depends upon the nature of the net as a whole.  For small 'leaf' sites,
>it would seem like a possible win - and, they are the ones most likely
>to have difficulties owing to net and disk limitations.  However, see
>below.  For larger leaf sites, it feels probable to me that your guess
>of 100 'groups being read' is probably far too small.
>
>For 'hosts' generally, it's a lot less clear.  If I serve you, and you
>ask me to start sending you a group, then if none of my users are
>reading it, I won't have it either, so I'll have to ask my feed sites
>to start sending it to me.  This recurses.  Feels like requests for
>feed would tend to percolate, by the same sort of flooding transmission
>which moves articles, so that in the end you end up with everyone
>passing everything around again, but also having to check and maintain
>a bloody huge 'should I send this' file.
>

Paul -

I have a separate question about how Newsfeeds operate. If a site activates
a newsgroup that they previously had not been carrying, is there anyway to
ask their feeder site to flood/prime them with all the articles that the
feeder site has or will they only get new articles received by the feeder
site after the activation request is made? Thank you.
Re: Make INN NEWS ten times more efficient!!!
#10107
Author: chrisp
Date: Sun, 17 Jul 1994 01:36
21 lines
1723 bytes
I agree dynafeed seems to do 95% of what I was suggesting.

>The big problem with this strategy is that you end up *not* carrying
>newsgroups that may be of potential interest. If you have a user who
>notices the existence of (say) news.software.readers, but you don't
>currently carry it because of the aforementioned optimization, then
>they have no way of sampling it do they?
>

	This was my point, it's got to be done properly to be any use, 
which means it probably has to be merged into the nntp protocal or at 
least into the INN or CNEWS software so that it can present the groups which
it isn't carrying and give the user a chance to 'request' them.
(e.g. by the act of reading a dummy article)


				Chris,  Email: chrisp@marc.cri.nz

				HortResearch Ltd., New Zealand.

"He's dead, Jim. I'll get his tricorder. You take his wallet."
Re: Make INN NEWS ten times more efficient!!!
#10121
Author: PE. Smee
Date: Mon, 18 Jul 1994 09:38
18 lines
1885 bytes
In article <hal9001.1124723038D@news.panix.com>,
Robert A. Rosenberg <hal9001@panix.com> wrote:
>I have a separate question about how Newsfeeds operate. If a site activates
>a newsgroup that they previously had not been carrying, is there anyway to
>ask their feeder site to flood/prime them with all the articles that the
>feeder site has or will they only get new articles received by the feeder
>site after the activation request is made? Thank you.

Normal default behavior (for CNews, can't speak for INN) is that you
only get new articles.  If the sysadmin of your feed site is willing to
do a bit of extra work on your behalf, it is possible for him to seed
the 'togo' list for your site with the appropriate list of articles to
send you.  (This could be mechanised if desired.  It would still be 
dependent on the goodwill of the admin of your feed site.)

-- 
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
     P.Smee@bristol.ac.uk - Tel +44 272 303132 - FAX +44 272 291576
Re: Make INN NEWS ten times more efficient!!!
#10124
Author: Randy Zagar
Date: Mon, 18 Jul 1994 19:33
26 lines
1895 bytes
In article aum@grunt.marc.cri.nz,  chrisp@marc.cri.nz writes:
>NEWS is currently VERY inefficient.
>
>A typical site gets 2,500 news groups.

By that measure, we're a *very* unusual site...

As of today, our news server is handling 8,125 newsgroups.
Two years ago that number was around 3,000 and has been 
steadily growing every day.

I just wonder what it'll be like 5 years from now...


-Randy

---
 ______________________________________________________________________
/                                                                      \
| Randy Zagar                 |      Voice: 302/831-1139               |
| College of Marine Studies   |        FAX: 302/831-6838               |
| University of Delaware      |   Internet: zagar@Chester.cms.udel.edu |
| Newark, DE 19711            | Compu$erve: 73072,1413                 |
|----------------------------------------------------------------------|
|          PGP Key available on request, or by 'finger'.               |
\______________________________________________________________________/
Re: Make INN NEWS ten times more efficient!!!
#10152
Author: Robert A. Rosenberg
Date: Wed, 20 Jul 1994 05:05
31 lines
2606 bytes
In Article <Ct4qrE.Jot@info.bris.ac.uk>, ccpes@sun.cse.bris.ac.uk (PE. Smee)
wrote:
>In article <hal9001.1124723038D@news.panix.com>,
>Robert A. Rosenberg <hal9001@panix.com> wrote:
>>I have a separate question about how Newsfeeds operate. If a site activates
>>a newsgroup that they previously had not been carrying, is there anyway to
>>ask their feeder site to flood/prime them with all the articles that the
>>feeder site has or will they only get new articles received by the feeder
>>site after the activation request is made? Thank you.
>
>Normal default behavior (for CNews, can't speak for INN) is that you
>only get new articles.  If the sysadmin of your feed site is willing to
>do a bit of extra work on your behalf, it is possible for him to seed
>the 'togo' list for your site with the appropriate list of articles to
>send you.  (This could be mechanised if desired.  It would still be 
>dependent on the goodwill of the admin of your feed site.)
>


Thank you for your reply. From I get the impression that the feed site sends
ALL newsgroups that it carries (or at least those that you've requested) and
that it maintains the equivalent of a newsrec [togo?] to control which
insures that only "new" articles are sent to you. Thus when you activate a
new group you will get only articles received by your feed since your
activation request due either to you already having "seen" (and
bit-bucketed) the previously unwanted group(s) [in the case of "feed all"
implementation] or the control file being initialized to show that you've
"seen" all articles that existed at the time of the activate request [for
the "feed requested" implementation]. The seeding that you mention would
then be the equivalent of back dating a newsrec file to make it offer more
articles.
Re: Make INN NEWS ten times more efficient!!!
#10153
Author: PE. Smee
Date: Wed, 20 Jul 1994 11:41
44 lines
3339 bytes
In article <hal9001.1125068351A@news.panix.com>,
Robert A. Rosenberg <hal9001@panix.com> wrote:
>Thank you for your reply. From I get the impression that the feed site sends
>ALL newsgroups that it carries (or at least those that you've requested) and
>that it maintains the equivalent of a newsrec [togo?] to control which
>insures that only "new" articles are sent to you.

I'm vaguely aware that there are a number of different possibilities
within Cnews, depending on which of the supported transfer mechanisms
you use; I'm not sure (since I've only checked the one I use) how much
they differ,though I suspect that they are pretty similar in this
detail.  (I also have no idea how INN handles things, though I'd guess
it's probably similar.)

However, having gotten that long disclaimer out of the way, the
Cnews/nntp combination maintains a 'togo' list for each site that you
send things to.  This list contains the article *filenames* within your
spool dir, of articles which need to be sent to the site - e.g.
news/admin/10054 would be article 10054 in news.admin, the filename
being relative to your spool dir.  Look around your spool dir
(conventionally but not necessarily /usr/spool/news), in subdirectories
which have a '.' in their names and which contain the string 'out' in
their names.

Articles are added to this list by the program which processes incoming
news.  E.g. when it puts article 10054 into news.admin, it also makes
notes that said article needs to be shipped to each of the relevant
sites.  Every so often, the prog which handles your outgoing stuff to a
site will pop up, grab the togo file, ship off the articles mentioned
therein, and erase the notes (as it were).  So, the 'seeding' I
referred to above would simply involve the sysadmin popping a list of
the articles already existing in the group's spool dir into the togo
file, when you ask to start receiving the group.

Cnews does also contain a tool which (with a little wrapping) can be
used to check the history file for articles which arrived at your site
within a certain time period, which list can then be injected into a
togo file in order to cause things to be re-sent.  It's all pretty well
described in the assorted docs which come with, and becomes even
clearer if you read the shell scripts involved.

-- 
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
     P.Smee@bristol.ac.uk - Tel +44 272 303132 - FAX +44 272 291576
Re: Make INN NEWS ten times more efficient!!!
#10193
Author: Charles Cooley
Date: Thu, 21 Jul 1994 21:56
30 lines
2412 bytes
OK, the topic is how to get your feeding site to send you the older
articles when you subscribe to a group and Paul explains how the
articles can be identified and sent from the server side.

In article <Ct8LsE.BG@info.bris.ac.uk>, PE. Smee <P.Smee@bristol.ac.uk> wrote:
> ...        So, the 'seeding' I
>referred to above would simply involve the sysadmin popping a list of
>the articles already existing in the group's spool dir into the togo
>file, when you ask to start receiving the group.
> ...
>
>-- 
>Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
>     P.Smee@bristol.ac.uk - Tel +44 272 303132 - FAX +44 272 291576

I believe this thread started as an attempt to reduce the space/bandwidth
used at a small site.  The normal ebb and flow of traffic already causes 
trouble for many sites with small spool directories.  You'll need some way 
to place a limit on how many articles get "seeded".  A small site using 
this method to save disk space may have serious problems if its feed site
keeps articles for 2 months.  :-)

The real difficulty is not in getting the new group as needed, but the
effect of a large number of articles arriving in a group.  Currently,
expiration is based on the date/time when an article ARRIVES.  If a
user were to subscribe to one or more large groups then not only could
you fill up your news spool, but the extra load of articles would stay
until expired (all on the same day). 

Charles Cooley
Re: Make INN NEWS ten times more efficient!!!
#10196
Author: Robert A. Rosenberg
Date: Fri, 22 Jul 1994 04:07
20 lines
1962 bytes
In Article <Ct8LsE.BG@info.bris.ac.uk>, ccpes@sun.cse.bris.ac.uk (PE. Smee)
wrote:
>In article <hal9001.1125068351A@news.panix.com>,
>Robert A. Rosenberg <hal9001@panix.com> wrote:
>>Thank you for your reply. From I get the impression that the feed site sends
>>ALL newsgroups that it carries (or at least those that you've requested) and
>>that it maintains the equivalent of a newsrec [togo?] to control which
>>insures that only "new" articles are sent to you.
>
>I'm vaguely aware that there are a number of different possibilities
>within Cnews, depending on which of the supported transfer mechanisms
[snip]


Thank you for taking the time to give me a writeup on how newsfeeding of
articles is handled. I see that my analogy to newsrec control was accurate
except for the fact that newfeeds use a positive control method (togo -
listing the articles to be sent) as opposed to newsreader's negative method
(newsrec, which lists articles not to be offered for viewing). Given the
function of a newsfeed, I can see why the positive control method is used.
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