Article View: news.software.nntp
Article #6935Re: newsfeed wanted.
From: Jerry Aguirre
Date: Thu, 25 Apr 1996 00:00
Date: Thu, 25 Apr 1996 00:00
75 lines
4591 bytes
4591 bytes
In article <4lmccn$6df@panix4.panix.com> chuckie@panix.com (Alec H. Peterson) writes: >Yes, but then that defeats the purpose of streaming (if you only send >an IHAVE with a small number of message IDs). Actually it is a "check <id>" command and it only does one ID at a time. The difference from "ihave <id>" is that it doesn't have to wait for the response as the next thing. The purpose of streaming is to send the articles more quickly, specifically by eliminating the "dead" link time inherent to the regular NNTP protocol. If it is sending articles as fast as they come in then it is being as efficient as it can be. It only needs to stream lots of articles if it is behind. >>Yes, there is a tendancy for streaming to make innd more sluggish in >>responding to new connections. But innd already had that problem. If >>instead of a streaming feed you split the existing feed "N" ways then >>the result would make innd just as sluggish. The real problem is innd >>getting blocked when it does disk IO. If that could be eliminated then >>the sluggishness induced by other feeds would not be a problem. > >But without streaming I do _not_ have that problem (with slugish >connections)! Connection time is reduced from sometimes as much as 7 >seconds to just about always instantaeous. As I said innd needs to give special priority to new connections. The same problem existed for control connections. Minor changes to the code fixed that compleatly without having to disable streaming. My point above was that if you split the streaming feed into N separate connections you would still have the same sluggishness. It sounds to me like you did not. You still have only the one feed but now it is ihave/sendme instead of streaming. It transfers less articles/second so it loads your system less. This is no big supprise. I see this as being one of two ways. Assuming you can keep up with that feed using regular NNTP then before it would not have been continuously connected for streaming. It would have been a case of them connecting sending a streaming burst that made new connections sluggish for a while, exhausting the queue and disconnecting for a while. The other alternative is that that site really needed streaming to keep up. In that case a backlog will start to accumulate on their end as regular NNTP can not keep up. Eventually this will reach some kind of limit but you will be receiving news that is N days old and always be behind. They could split the feed but then your back to heavier load on your end. >What I'd like to see is a hack to innd that would take in a streamed >IHAVE command, do all of the relavent checks on the history database, >and return the message IDs it wants all without select()ing onto >another descriptor. After that is done, the stream should be put onto >the select() cycle just like all of the other feeds are. That way, >you get the win of doing the history lookup, which takes relatively >little time, and you also get the win of not having the stream >monopolize the server while it is coming in. This sounds interesting. The default NNTP protocol has two wait states that result in dead time. The first after the "ihave" and the second after the article. One could tune the streaming code such that it would stream lots of "check"s, hopefully resulting in little IO, but would not stream very many articles at a time. (It would only send N articles before waiting for an ACK.) This would provide about half the improvement of full streaming without hogging the innd connection. For the rejected articles this would provide the full advantage of streaming. There is no protocol change required for this, just tuning of the sending code. But I still think that giving higher priority to new connections will be a better fix to the problem. Jerry Aguirre
Technical Details
Message-ID:
<4loqk3$rvu@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> <4lk7f1$9le@panix4.panix.com> <4llpk2$m0a@olivea.atc.olivetti.com> <4lmccn$6df@panix4.panix.com>Show Full Headers
Complete Article Headers
Message-ID: <4loqk3$rvu@olivea.ATC.Olivetti.Com> Subject: Re: newsfeed wanted. Date: Thu, 25 Apr 1996 00:00:00 +0000 From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) References: <4l8jg8$pcd@bull.hkstar.net> <4lk7f1$9le@panix4.panix.com> <4llpk2$m0a@olivea.atc.olivetti.com> <4lmccn$6df@panix4.panix.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: 151431373 Distribution: inet Organization: Olivetti ATC; Cupertino, CA; USA Newsgroups: news.software.nntp