Thread View: news.software.nntp
14 messages
14 total messages
Started by Allan Joergensen
Tue, 28 Jul 1998 00:00
[Diablo] Removing newsfeed
Author: Allan Joergensen
Date: Tue, 28 Jul 1998 00:00
Date: Tue, 28 Jul 1998 00:00
13 lines
1046 bytes
1046 bytes
I wish to remove a downlink newsfeed. I've commented out the entry en dnewsfeeds but how do I remove the spool? Diablo 1.13 -- Allan "[DW]" Joergensen - <URL:http://www.nowhere.dk> Public PGP key: <URL:http://www.nowhere.dk/special/dw.asc> Key fingerprint = 67E1 96F1 49F5 537E 3A07 D9C8 39F9 50D1 D1AD 479D
Re: [Diablo] Removing newsfeed
Author: Matt Dillon
Date: Tue, 28 Jul 1998 00:00
Date: Tue, 28 Jul 1998 00:00
28 lines
1410 bytes
1410 bytes
:In article <slrn6rqs27.6kb.dw@coredump.nowhere.dk>,
:Allan Joergensen <NO!> wrote:
:>I wish to remove a downlink newsfeed.
:>
:>I've commented out the entry en dnewsfeeds but how do I remove the
:>spool?
:>
:>Diablo 1.13
:>
:>--
:>Allan "[DW]" Joergensen - <URL:http://www.nowhere.dk>
:>Public PGP key: <URL:http://www.nowhere.dk/special/dw.asc>
:>Key fingerprint = 67E1 96F1 49F5 537E 3A07 D9C8 39F9 50D1 D1AD 479D
cd into /news/dqueue and remove any left-over queue files. For
example, if the name of the feed was 'fubar' you would:
cd /news/dqueue
rm fubar fubar.S*
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: [Diablo] Removing newsfeed
Author: Matt Dillon
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
80 lines
3356 bytes
3356 bytes
:>:Allan Joergensen <NO!> wrote:
:>:>On 28 Jul 1998 00:21:36 -0700, Matt Dillon <dillon@best.net>
:>:> wrote in <6pju60$51r$1@flea.best.net>:
:..
:>
:>:>2) Is there a way of sorting the articles, say 6 streams for articles <
:>:>4KB and 2 for the rest?
Yes, but you may have to upgrade your release. See if the latest
Diablo-test release compiles on your box.
In the dnewsfeeds file you can put 'minsize' and 'maxsize' directives.
The way you split streams is to split the physical feed. For example,
I split the feeds going to my biggest peers:
label erols1
alias *.erols.com
maxconnect 8
filter best.*
filter bofh.*
filter junk
maxsize 50k
groupref EXTFULL
## temporary
addgroup net.*
rtflush
end
label erols2
alias *.erols.com
maxconnect 8
filter best.*
filter bofh.*
filter junk
minsize 50k
maxsize 250k
groupref EXTFULL
## temporary
addgroup net.*
rtflush
end
And my dspoolout.ctl file contains:
erols1 best-in.news.erols.com 50 realtime d-1
erols2 best-in.news.erols.com 50 realtime
This means I need to have two entries in dspoolout.ctl, one for erols1,
one for erols2. I then specify the number of stream for each separately.
In this case, I'm only pushing two realtime feeds to erols, one for
each entry.
In general terms, if you are talking to a fast *transit* peer you should
only need to push one feed. Doing so also reduces the load on the peer.
When I'm sending feeds to my INN boxes, I generally run several streams
in parallel as well as split the feeds. If I am not sending a redundant
feed to my INN or dreaderd 'leaf' boxes, I generally use a slightly
different dspoolout.ctl line. Here I specify a one-queue-file delay
rather then a realtime feed so the dnewslink statistics tell me
the maximum transfer rate they are able to achieve, and I specify a
large output buffer to try to reduce increase command/response latencies.
(But I don't use large output TCP buffers for most of the feeds because
it, of course, eats a lot of kernel memory).
nntp3 nntp3.ba.best.com 500 n2 T131072 R16384 nocheck q1
-Matt
:>:>--
:>:>Allan "[DW]" Joergensen - <URL:http://www.nowhere.dk>
:>
:>
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: [Diablo] Removing newsfeed
Author: Matt Ranney
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
25 lines
1432 bytes
1432 bytes
dw@nowhere.dk (Allan Joergensen) writes: [...] > He's on a 2Mbit with 8 streams and still the queue keeps growing. That should be enough bandwidth. I figure that a full feed takes just under a T1. > 1) How "big" is a stream As big as it can be. Take the total volume of news you are trying to move, and divide it by the number of streams. > 2) Is there a way of sorting the articles, say 6 streams for articles < > 4KB and 2 for the rest? There's no "minsize" parameter in dnewsfeeds, as far as I can tell. You could just group binaries together in one label and non-binaries in another label. Then send the non-binaries out right away with many streams, and send the binaries out after a delay with less streams. -- Matt Ranney - mjr@ranney.com Let's not let the students run the High School.
Re: [Diablo] Removing newsfeed
Author: Matt Dillon
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
65 lines
3129 bytes
3129 bytes
:In article <slrn6s0ljt.4gv.dw@coredump.nowhere.dk>,
:Allan Joergensen <NO!> wrote:
:>On 28 Jul 1998 00:21:36 -0700, Matt Dillon <dillon@best.net>
:> wrote in <6pju60$51r$1@flea.best.net>:
:>
:>> cd into /news/dqueue and remove any left-over queue files. For
:>> example, if the name of the feed was 'fubar' you would:
:>
:>Silly me :)..
:>
:>Well, I have another more difficult question regarding 1.13
:>
:>I have a downlink wich is having problems keeping up with the amount of
:>news we are feeding him.
:>
:>He's on a 2Mbit with 8 streams and still the queue keeps growing.
:>
:>1) How "big" is a stream
Do a 'netstat -tn | fgrep his.news.boxes.ip.address' and look at
the TCP input and output queues. If the output queue is mostly full
then either the pipe isn't big enough or the receiving machine is
too slow. If the input queue is full and the output queue is empty,
your local news machine may have problems. If both queues are empty
the local dnewslink is probably waiting for an acknowledgement from
the remote news machine and, again, the remote news machine may be
too slow.
You are running 'n8' in dspoolout.ctl ? If he can't keep up, you may
need to research it a little more.
You can temporarily comment out the line in dspoolout.ctl, kill any
dnewslinks that are running to that destination, and then try running one
dnewslink manually with the '-d2' option. For example, if his diablo is
running on port 435 on machine fubar.com, something like:
cd /news/dqueue
ls fubar* (get a list of queue files ready to go out)
dnewslink -h fubar.com -P 435 -b fubar.S07018 -d2
You should be able to determine where the bottleneck is by looking at
the delta timestamps. You may also want to ktrace (ktrace if running
FreeBSD, strace for linux, truss for solaris I think, etc...) i.e.
system call tracer on the dnewslink process as well.
Remember to reenable the entry in dspoolout.ctl when you are through,
though :-)
-Matt
:>2) Is there a way of sorting the articles, say 6 streams for articles <
:>4KB and 2 for the rest?
:>
:>--
:>Allan "[DW]" Joergensen - <URL:http://www.nowhere.dk>
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: [Diablo] Removing newsfeed
Author: Matt Dillon
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
13 lines
1187 bytes
1187 bytes
oops. One more thing. If you are running 1.13 that means you are running
with the old prime-based hash algorithm. If you intend to upgrade, read
the RELEASE_NOTES carefully in regards to switching over to the new crc
hash algorithm. It could be a bumpy road.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: [Diablo] Removing newsfeed
Author: Matt Dillon
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
98 lines
5648 bytes
5648 bytes
:In article <19980730212847.357$gY@newsreader.com>,
:Curt Welch <curt@kcwc.com> wrote:
:>Matt Ranney <mjr@ranney.com> wrote:
:>> dw@nowhere.dk (Allan Joergensen) writes:
:>> > He's on a 2Mbit with 8 streams and still the queue keeps growing.
:>>
:>> That should be enough bandwidth. I figure that a full feed takes just
:>> under a T1.
:>
:>You figured wrong. I have a T1 (1.544 Mbps) that's running at an _avg_
:>load of 1.3 Mbps (24x7) and I'm only able to push 6GB/day of news through
:>it. And 98% of all traffic on that line is caused by my news feeds. A
:>full feed is more than twice that.
:>
:>A T1 can carry 16GB/day of raw data but the IP/TCP/NNTP overhead takes
:>the "real" news bandwidth way down below that.
:>
:>You need at least 3 or 4 Mbit of bandwidth these days to get a full feed
:>with a standard NNTP feed.
:>
:>Sure wish I had a satellite feed working to help out with my bandwidth
:>problems....
:>
:>--
:>Curt Welch http://CurtWelch.Com/
:>curt@kcwc.com Webmaster for http://NewsReader.Com/
I'm pushing a single full feed, binaries and all, from my news box to
nntp3.ba.best.com (my diablo reader test box). This should be a
reasonable approximation of the bandwidth numbers involved even though
the data is slightly polluted by the 120 or so mostly outgoing NNTP
connections going into the destination box.
Here is the netstat -in 60 output (one line per 60 seconds) over a
period of 30 minutes, which should account for the burstiness of
the non-realtime batch feed I'm using. It ain't pretty, folks.
nntp3:/news/log# netstat -in 60
input (Total) output
packets errs bytes packets errs bytes colls
11138 0 12341948 8892 0 8207504 0
4603 0 3126498 5120 0 7036045 0
5436 0 5665645 6082 0 9728745 0
12407 0 14602775 9597 0 9056217 0
15454 0 18558632 11502 0 9809673 0
17481 0 21297332 11908 0 8586290 0
5616 0 4338742 6124 0 8592616 0
5842 0 5911770 6417 0 9938280 0
15149 0 17857107 11091 0 9499481 0
20404 0 22959115 13602 0 9100592 0
14747 0 17945397 11001 0 10835239 0
5757 0 4985346 6253 0 9531008 0
6069 0 4559605 6698 0 9035189 0
15341 0 16968522 11162 0 9595154 0
18907 0 22422767 13038 0 9794580 0
19282 0 23633332 13385 0 9061720 0
6226 0 5372895 6727 0 9592954 0
5843 0 5349893 6310 0 9607886 0
14768 0 17338964 11192 0 10750161 0
16190 0 18305829 11870 0 9296857 0
19277 0 24173770 13418 0 10192785 0
6678 0 6770372 6900 0 10170259 0
5938 0 3932233 6533 0 8427023 0
13826 0 15459720 11660 0 11898782 0
19458 0 22492184 14640 0 12554240 0
20604 0 23924969 15303 0 12350803 0
13106 0 14278184 11371 0 12545669 0
6870 0 6485393 7461 0 11640571 0
17914 0 20703243 13005 0 11025674 0
20943 0 23903764 14815 0 12385340 0
-------------
425665946 (30 minutes)
425665946/30min = 236 KBytes/sec.
The bandwidth required drops significantly if you get rid of binaries
(i.e. just have the feed not send anything over 250Kbytes), plus kill
the binaries groups, but I don't have another 30 minutes to spend on
this so someone else will have to post those numbers :-)
This is one reason why I'm working on Diablo's reader stuff, because
an ISP can use that and pull a header-only full feed which is considerably
less then a full article body feed... hmm, dnewslink isn't reporting the
right bytes xfered for header-only feeds. Damn. Well, looking at a
typical article's headers, lets say 1500 bytes per article in header
information. Say 800K arts/day, so a header-only feed is around
14 KBytes/sec. 14 KBytes/sec is not hard. Of course, you need spool
access, and that requires bandwidth. But for the typical small ISP
it should realize a huge savings.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: [Diablo] Removing newsfeed
Author: Matt Dillon
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
28 lines
1760 bytes
1760 bytes
:In article <m2yatb847z.fsf@wacky.ranney.com>,
:Matt Ranney <mjr@ranney.com> wrote:
:>dillon@best.net (Matt Dillon) writes:
:>
:>[...]
:>> In the dnewsfeeds file you can put 'minsize' and 'maxsize' directives.
:>> The way you split streams is to split the physical feed. For example,
:>> I split the feeds going to my biggest peers:
:>
:>Any chance you could put that in the documentation somewhere? I'm
:>running the latest test release, and the only place in the entire
:>source tree I can find the word "minsize" is in lib/newsfeed.c.
:>--
:>Matt Ranney - mjr@ranney.com
:>Let's not let the students run the High School.
I usually document configuration file options in the samples/
directory, that way I can both document *and* provide examples for
the more esoteric items. Take a look at samples/dnewsfeeds.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: [Diablo] Removing newsfeed
Author: Matt Ranney
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
15 lines
1203 bytes
1203 bytes
dillon@best.net (Matt Dillon) writes: [...] > In the dnewsfeeds file you can put 'minsize' and 'maxsize' directives. > The way you split streams is to split the physical feed. For example, > I split the feeds going to my biggest peers: Any chance you could put that in the documentation somewhere? I'm running the latest test release, and the only place in the entire source tree I can find the word "minsize" is in lib/newsfeed.c. -- Matt Ranney - mjr@ranney.com Let's not let the students run the High School.
Re: [Diablo] Removing newsfeed
Author: Allan Joergensen
Date: Thu, 30 Jul 1998 00:00
Date: Thu, 30 Jul 1998 00:00
26 lines
1569 bytes
1569 bytes
On 28 Jul 1998 00:21:36 -0700, Matt Dillon <dillon@best.net> wrote in <6pju60$51r$1@flea.best.net>: > cd into /news/dqueue and remove any left-over queue files. For > example, if the name of the feed was 'fubar' you would: Silly me :).. Well, I have another more difficult question regarding 1.13 I have a downlink wich is having problems keeping up with the amount of news we are feeding him. He's on a 2Mbit with 8 streams and still the queue keeps growing. 1) How "big" is a stream 2) Is there a way of sorting the articles, say 6 streams for articles < 4KB and 2 for the rest? -- Allan "[DW]" Joergensen - <URL:http://www.nowhere.dk> Public PGP key: <URL:http://www.nowhere.dk/special/dw.asc> Key fingerprint = 67E1 96F1 49F5 537E 3A07 D9C8 39F9 50D1 D1AD 479D
Re: [Diablo] Removing newsfeed
Author: Curt Welch
Date: Fri, 31 Jul 1998 00:00
Date: Fri, 31 Jul 1998 00:00
26 lines
1832 bytes
1832 bytes
Matt Ranney <mjr@ranney.com> wrote: > dw@nowhere.dk (Allan Joergensen) writes: > > He's on a 2Mbit with 8 streams and still the queue keeps growing. > > That should be enough bandwidth. I figure that a full feed takes just > under a T1. You figured wrong. I have a T1 (1.544 Mbps) that's running at an _avg_ load of 1.3 Mbps (24x7) and I'm only able to push 6GB/day of news through it. And 98% of all traffic on that line is caused by my news feeds. A full feed is more than twice that. A T1 can carry 16GB/day of raw data but the IP/TCP/NNTP overhead takes the "real" news bandwidth way down below that. You need at least 3 or 4 Mbit of bandwidth these days to get a full feed with a standard NNTP feed. Sure wish I had a satellite feed working to help out with my bandwidth problems.... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [Diablo] Removing newsfeed
Author: Matt Ranney
Date: Fri, 31 Jul 1998 00:00
Date: Fri, 31 Jul 1998 00:00
17 lines
1264 bytes
1264 bytes
curt@kcwc.com (Curt Welch) writes: [...] > A T1 can carry 16GB/day of raw data but the IP/TCP/NNTP overhead takes > the "real" news bandwidth way down below that. OK, fair enough. I forgot about the protocol overhead. I have at least one T1 customer that's taking a full feed without the warez groups, and his T1 runs at around 90% most of the time. While it isn't pretty, its still possible to get a very usable feed down a T1 if you are willing to trim out some of the warez and porn. -- Matt Ranney - mjr@ranney.com Let's not let the students run the High School.
Re: [Diablo] Removing newsfeed
Author: Another Victim of the Usenet Maf...
Date: Sat, 01 Aug 1998 00:00
Date: Sat, 01 Aug 1998 00:00
61 lines
3906 bytes
3906 bytes
On 1 Aug 1998, Curt Welch wrote: > > > A T1 can carry 16GB/day of raw data but the IP/TCP/NNTP overhead takes > > > the "real" news bandwidth way down below that. > > > > OK, fair enough. I forgot about the protocol overhead. > > I never would have guessed the overhead would be as high as what > I'm seeing and I even wonder if there's nothing something more > complex going on that's adding more overhead. But I know for sure > that there's no extra traffic on my line because when I stop the > feeds I see what the traffic drops to. Believe it. Did you say feed_s_? Like, several? Count on seeing a fixed amount of overhead for each feed, but I've found that a real killer has been the bandwidth wasted by articles received simultaneously from several feeds. Just for some numbers, by using a simple history pre-commit cache and INN, we were seeing 2 gigabytes a day or so of articles tossed after being received. Such a cache, by refusing articles offered simultaneously, is supposed to help so I don't want to know how much gets tossed without a cache like this. Without this cache, well-synchronized streaming feeds will all be offering pretty much the same articles at the same time, then delivering them. The only time stock INN will try to minimize the possibility of articles arriving simultaneously is when one is already underway, when it will return a 431 (defer) response. Meaning, if two peers offer the same sets of messgae IDs that you don't have, you'll be willing to accept all of them from all peers, then toss all but one copy. My guess is that the problem with the pre-commit cache is that with the large number of articles that can be offered streaming, some of the message IDs would time out before the sending site could get around to delivering them (think big binaries that take a significant amount of time to transfer). By disabling streaming, using the same pre-commit cache, the number of articles which arrive simultaneously from two sites has dropped to a fairly negligible number, with most probably a result of the time our swerver sits frozen while updating the mongo history databases. The actual rejected volume here is now down to a few dozen megabytes. Without this cache and by disabling streaming (which I have not done), the result would be that as soon as the first site offers the article, it will cause other feeds that want to send the same article to wait until delivery is complete. This is somewhat undesirable in the case of feeders which keep a queue behind the article being offered which will get backed up until delivery is complete. Other software may make use of a comparable cache and do somewhat different things with it but the goal is the same, to reduce the chances of an article being delivered multiple times. Barry Bouwsma
Re: [Diablo] Removing newsfeed
Author: Curt Welch
Date: Sat, 01 Aug 1998 00:00
Date: Sat, 01 Aug 1998 00:00
31 lines
2266 bytes
2266 bytes
Matt Ranney <mjr@ranney.com> wrote: > curt@kcwc.com (Curt Welch) writes: > > [...] > > A T1 can carry 16GB/day of raw data but the IP/TCP/NNTP overhead takes > > the "real" news bandwidth way down below that. > > OK, fair enough. I forgot about the protocol overhead. I never would have guessed the overhead would be as high as what I'm seeing and I even wonder if there's nothing something more complex going on that's adding more overhead. But I know for sure that there's no extra traffic on my line because when I stop the feeds I see what the traffic drops to. > I have at least one T1 customer that's taking a full feed without the > warez groups, and his T1 runs at around 90% most of the time. While > it isn't pretty, its still possible to get a very usable feed down a > T1 if you are willing to trim out some of the warez and porn. Very true. I try to get everything but what I end up with is everything minus the warze and other large binary groups like the mp3 and cd-image. My coverage of the normal "picture" groups is really pretty good. By article count I'd say I'm getting 95% of all news. But by volume I'm missing over 50%. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.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