Article View: news.software.nntp
Article #6848Re: newsfeed wanted.
From: Jerry Aguirre
Date: Wed, 24 Apr 1996 00:00
Date: Wed, 24 Apr 1996 00:00
92 lines
5126 bytes
5126 bytes
In article <Pine.GSO.3.92.960420233653.18974E-100000@netdoor.com> Douglas Stewart <douglas@netdoor.com> writes: > >On 19 Apr 1996, Anthony Y. Y. CHOI wrote: > >> We are willing to pay. because we have huge news lag >> with our news provider. UUnet > >We too have a uunet feed. We too have a lag that grows huge. The cycle >is this: 1) news falls behind a couple of days 2) we call uunet and they >turn on an extra feed 3) we catch up after a couple of days 4) they turn >off the extra feed 5) we call behind again. I suspect that UUNET is reluctant to provide split feeds on a regular basis due to the resources that would use. This would essentially double the number of processes, along with the RAM they consume, on their feed systems. It is becoming difficult for a single NNTP feed, even over a T1, to keep up with a full feed. Any delays on the server for history lookup or article filing create dead time on the feed. If the feeding system is also slow, due to heavy load, then it is not supprising that things fall behind. Of course streaming NNTP is the answer. Unfortunately no one has ported it to nntplink. I want to but am working on a different project at the moment. An alternative is for the UUNET customers to be a little more cooperative with each other. UUNET may not be willing to provide a second feed but there is nothing to prevent the customers from feeding each other. I suggest that you find out which UUNET system is feeding you. Your news.notice connection logs should show that. Then post asking for someone who is on a different feed system but taking roughly the same groups. Offer to set up a bi-directional feed with them. The odds are that both feeder systems will not be slow at the same time. With the two feeds there is a much greater chance of keeping up. Remember that news was designed as a mesh. Sites with multiple incomming and outgoing feeds are not having these problems. Trying to shoehorn it into a massive single level tree is what is creating the problem. >I've heard there is some kind of problem with using a combination of >streaming and non-streaming feeds. Can someone give me more details about >this? And a fix to where you can mix them? A streaming feed tends to monopolize the server's resources. The non- streaming feed(s) will feed slower as for every chance they get to send an article the streaming feed will have sent several. Hey, streaming was designed to push articles thru fast, not fair. >articles from uunet the other day. I'm quite open to any more suggestions >on how to improve performance though... (our next move is to put the >history file on its own disk). Certainly moving the history to a less busy disk can help. Another issue is the DBZ tag size. As the size of the history file grows the offsets stored in the history.pag file need more bits. But DBZ reserves some of the bits for a tag that optimizes lookups. Unfortunately expire does not recalculate the offset and tag sizes when it runs. So when the offset gets bigger than 24 bits DBZ stops using tags and you wind up with more IO to the history file. More "ihave"s result in additional delay while physical reads are made. This slows down the transfer. A fix is to rebuild the DBZ files. It is NOT necessary to rebuild the history text file. Rebuilding the DBZ files takes about 10 minutes. The "makehistory -r" will correctly calculate the new offset and tag sizes for the current size of the history file. The man page (news-recovery) explains how to do this. By example, my history size and history.dir contents: -rw-r--r-- 4 news 129143650 Apr 23 19:17 history dbz 3 3100289 9 C 16 15 27 4 0 1 2 3 1974090 2000964 1991104 2034754 2021149 2036300 2036203 2066025 2062602 2066855 2058096 Notice that the 8th field is "27". That is the number of bits reserved for the seek offsets in the history.pag file. Using that size offset I can handle a history file of 2**27 or 134 Meg. Then there are 4 bits of tag and a one bit flag. Each lookup that finds an entry in the history.pag file is hashed and compared to the tag. Thus only 1 in 16 actually need a read of the history file to verify the match. Given that the history file is too large to reasonably cache in RAM any savings in reading it is significant. Especially so when the read blocks innd from doing ANY other work.
Technical Details
Message-ID:
<4lk4mg$sqg@olivea.ATC.Olivetti.Com>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-mailReferences:
<4l8jg8$pcd@bull.hkstar.net> <Pine.GSO.3.92.960420233653.18974E-100000@netdoor.com>Show Full Headers
Complete Article Headers
Message-ID: <4lk4mg$sqg@olivea.ATC.Olivetti.Com> Subject: Re: newsfeed wanted. Date: Wed, 24 Apr 1996 00:00:00 +0000 From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) References: <4l8jg8$pcd@bull.hkstar.net> <Pine.GSO.3.92.960420233653.18974E-100000@netdoor.com> 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: 151084046 Distribution: inet Organization: Olivetti ATC; Cupertino, CA; USA Newsgroups: news.software.nntp Summary: Feed each other. Rebuild DBZ.