Thread View: news.software.nntp
5 messages
5 total messages
Started by Larry D Snyder
Fri, 10 May 1996 00:00
nntplink sending batched articles
Author: Larry D Snyder
Date: Fri, 10 May 1996 00:00
Date: Fri, 10 May 1996 00:00
22 lines
1320 bytes
1320 bytes
We are running the latest inn 1.4unoff4 on a Sparc 20 with 196 megs of RAM and support around 150 readers and 40 nntplinks. It appears that using nntpsend instead of nntplink in the batch mode is faster when sending long/large queues out over the net. Have others found this to be true? I'm curious if others have a script or utility to send the *.old's via nntpsend -- or if maybe there is another, faster solution -- since we get complete links via NNTP, it doesn't take long for the queues to get quite large larry -- Larry Snyder Internet Access Group, Inc. larry@rn.com Central Florida's Finest Internet Connections 407-786-1145 Speeds from T3 to 28.8 including ISDN dialup 800-380-4IAG ISDN dialup pool available TODAY!
Re: nntplink sending batched articles
Author: Greg Andrews
Date: Sun, 12 May 1996 00:00
Date: Sun, 12 May 1996 00:00
35 lines
2102 bytes
2102 bytes
larry@rn.com (Larry D Snyder) writes:
>
>We are running the latest inn 1.4unoff4 on a Sparc 20 with 196 megs
>of RAM and support around 150 readers and 40 nntplinks.
>
>It appears that using nntpsend instead of nntplink in the batch mode
>is faster when sending long/large queues out over the net. Have others
>found this to be true?
>
One thing I noticed about nntplink's default configuration is that
it will disconnect and reconnect the NNTP link after only 250 articles.
At full-bore article transfer rates (2-3 per second), that forces a
disconnect/reconnect every three or four minutes.
When I was using nntplink for propagation among some local news servers,
I had a lot of trouble keeping the nntplinks going. When I noticed the
above configuration, I changed the newsfeeds file to invoke it with
a '-a 6000' argument. That bumped the disconnect/reconnect interval
up to 6,000 articles, or about 30-45 minutes. That helped a lot.
I can't tell why the default would be so low, unless it might be to
prevent TCP timeouts from growing too long over links that have lots
of packet loss. (If anyone knows the answer, I'm curious about it)
-Greg
--
::::::::::::::::::: Greg Andrews gerg@netcom.com :::::::::::::::::::
A large number of installed systems work by fiat.
That is, they work by being declared to work.
-- Anatol Holt
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Re: nntplink sending batched articles
Author: Per Hedeland
Date: Sun, 12 May 1996 00:00
Date: Sun, 12 May 1996 00:00
33 lines
1953 bytes
1953 bytes
In article <gergDrA1x8.FA9@netcom.com> gerg@netcom.com (Greg Andrews) writes:
>larry@rn.com (Larry D Snyder) writes:
>>It appears that using nntpsend instead of nntplink in the batch mode
>>is faster when sending long/large queues out over the net. Have others
>>found this to be true?
This is most likely because your nntpsend (or rather innxmit) does
streaming, and nntplink does not.
>One thing I noticed about nntplink's default configuration is that
>it will disconnect and reconnect the NNTP link after only 250 articles.
...
>I can't tell why the default would be so low, unless it might be to
>prevent TCP timeouts from growing too long over links that have lots
>of packet loss. (If anyone knows the answer, I'm curious about it)
It's in the man page:
-a close-after
Specify the number of articles that will be offered
before nntplink will close the connection to allow the
remote end to log statistics. [Default: 250]
It's primarily for the reference implementation and others that behave
similarly, i.e. only log statistics when the connection is closed (innd
will log "checkpoints"). Also, the number was chosen when 250 articles
represented a much longer time than it does now...
--Per Hedeland
per@erix.ericsson.se
What type of feed works for you? (was: Re: nntplink sending batched articles)
Author: Anthony D'Atri
Date: Mon, 13 May 1996 00:00
Date: Mon, 13 May 1996 00:00
66 lines
4556 bytes
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.
Re: nntplink sending batched articles
Author: Mahesh Ramachandran
Date: Mon, 13 May 1996 00:00
Date: Mon, 13 May 1996 00:00
16 lines
1162 bytes
1162 bytes
In article <gergDrA1x8.FA9@netcom.com>, gerg@netcom.com (Greg Andrews) writes: |> I can't tell why the default would be so low, unless it might be to |> prevent TCP timeouts from growing too long over links that have lots |> of packet loss. (If anyone knows the answer, I'm curious about it) actually the default of 250 has been there for quite some time ... and at that time 250 articles *was* a longer time. :) even for innd, you may want to increment the checkpoints from the default of 200 to say 1000 articles. -rr
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