🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7556

What type of feed works for you? (was: Re: nntplink sending batched articles)

#7556
From: Anthony D'Atri
Date: Mon, 13 May 1996 00:00
66 lines
4556 bytes
>This is most likely because your nntpsend (or rather innxmit) does
>streaming, and nntplink does not.

I'm interested in what sorts of feeding strategies others are using, and why.
I'll start off with some observations I've made:

o nntplink vs. innxmit:  innxmit can stream, but streaming might tie up
  innd (if used) on the other end, causing slow startup times for any remote
  NNTP newsreasers.  nntplink claims that it can be more efficient than
  innxmit because its best-case behavior forwards articles as they come
  in, thus exploiting the buffer cache for improved performance and decreased
  overhead.  Some people question that this makes much difference in practice,
  though, since nntplink feeds often take articles at different rates, thus
  developing backlogs.  As a backlog becomes bigger, the buffer cache becomes
  moot.

o nntplink logfile feeds:  Simple to set up, no data fed between processes and
  thus perhaps relatively few context switches.  I've found, though, that
  nntplink can behave badly when one tries to clear a backlog, apparently
  restarting from the top of the logfile.

o nntplink stdin feeds:  Avoids the problem of logfile pointers being reset,
  but it would seem that such feeds would result in many more context switches
  as article pointers are fed from innd to (potentially many) nntplink
  processes.  I've found that for me stdin feeds also don't keep up as well
  as logfile ones, developing backlogs where logfile feeds don't.

o nntplink stdin + rebatch:  For me, results in disturbing error messages, and
  when the other end doesn't stream, dropped articles.  This sort of
  arrangement may work better on multiprocessor feeding machines where context
  switching may not be as big a concern, or when the remote ends stream.

o innxmit file feed:  Streams when the other end does, thus potentially
  sending articles at a greater rate, however the batch nature of such a feed
  potentially introduces latency in article propagation.  I say 'potentially'
  since an on-the-fly feed such as nntplink may well be backlogged anyway.
  There's also the fact that since one must invoke nntpsend periodically out
  of cron (I'm currently doing so every five minutes), there will be some
  time between runs when no articles are being offered.  One advantage of this
  sort of feed is that innd can tail-truncate the batchfile on its own,
  solving the problem where a down or slow remote ends fill up out.going with
  large backlogs that are difficult to make up, especially when the remote end
  doesn't stream.

o innfeed:  Streams when the remote end can, which is a plus, and adaptively
  feeds articles to the remote end over multiple streams, which is of
  debatable utility.  Such a split feed might be of greatest utility
  when the remote end is a multiprocessor running a multithreaded server or
  multiple reference nntpds, or perhaps when latency is high enough along the
  path between the two machines that streaming doesn't completely compensate,
  or when the remote end doesn't stream.  innfeed is intended to run as a
  single funnel feed, which perhaps could save context switches as compared
  to having at least one process for each remote end, though since it is
  a single, monolithic process, the scheduler could conceivably allot it
  fewer cycles than might be best, though in theory it could be (re)niced on
  some OS where nice values are significant.  IMHO, innfeed suffers from one
  glaring shortcoming:  the per-process/user file-descriptor/open file limit.
  Multiple channels eat up file descriptors quickly.


I welcome comment on these ideas.  I'm not claiming that I'm presenting
The One Truth -- I'm just trying to spark (foment?) discussion as I try to
feed my customers as best I can.

Technical Details
Message-ID: <4n7pse$4uv@olympus.nwnet.net>
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
References: <4mvfrr$sjn@rn.com> <gergDrA1x8.FA9@netcom.com> <4n5spi$clt@euas20.eua.ericsson.se>

Show Full Headers
Complete Article Headers
Message-ID: <4n7pse$4uv@olympus.nwnet.net>
Subject: What type of feed works for you? (was: Re: nntplink sending batched articles)
Date: Mon, 13 May 1996 00:00:00 +0000
From: aad@nwnet.net (Anthony D'Atri)
References: <4mvfrr$sjn@rn.com> <gergDrA1x8.FA9@netcom.com> <4n5spi$clt@euas20.eua.ericsson.se>
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: 154600428
Organization: NorthWestNet, Bellevue, WA, USA, Earth
Reply-to: aad@nwnet.net
Newsgroups: news.software.nntp,news.software.b