Article View: news.software.nntp
Article #37211Re: Abandoning uniover - but how?
From: T. William Wells
Date: Tue, 04 May 1999 00:00
Date: Tue, 04 May 1999 00:00
47 lines
3064 bytes
3064 bytes
In article <7gnqs3$41jm$1@newssvr03-int.news.prodigy.com>, bill davidsen <davidsen@tmr.com> wrote: : | The 1.x overview : | method has this problem, though to a lesser extent than the 1.x : | one-file-per-article, inasmuch as each overview record requires : | one file open/write/close sequence. In the ideal world, you don't : | do that. So how to avoid it? Well, basically, you have to batch : | process the overview creation, somehow. : : No, the open/close is implementation, not requirement. In one patch : floating around for 2.1, the overchan used an fd cache to keep many : files open and close them on an LRU basis. I modified my 1.x overchan to do this. It helps significantly, though overview writes are still scattered all over the place. I never did any stats on what effect this had.... : I have a real problem with batching, it means that something isn't : getting done as soon as possible, and it means that there will be a load : spike when it does get done. Well, the advantage of batching is that you _can_ have desynchronization between innd and overchan. In theory, this allows their respective load spikes to occur at different times. In practice, of course, there isn't any real way to communicate "not now, I'm processing a mother batch of news" from innd to overchan, other than in the sense that innd can starve overchan of bandwidth. But batching does mean that this starvation results in spreading the peaks. : spike when it does get done. Obviously this is only one criteria and : batching may be a win for some things, but I think any practical solution : to overview has to avoid delays in getting the information to the : reader, and that's harder to do with batches, since the benefits usually : go up with batch size, and the delays do as well. On my systems, what I do is have a loop that runs overchan and sleeps for 10 seconds. This doesn't add any significant overhead (what's one process every 10 seconds?) and keeps the batching delay to 10 seconds plus however long it takes to run overchan on 10 seconds worth of data. And if there is a heavy load, overchan gets delayed, effectively increasing the batch size, which has the effect of decreasing the overhead associated with overview processing. All in all, I don't see appreciable delays _or_ overhead from overchan.
Technical Details
Message-ID:
<7gnrgp$8hq$1@twwells.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:
<7ga14u$h7f$1@news.netmar.com> <7gl3va$ofa$1@newssvr03-int.news.prodigy.com> <7glbhu$pdg$1@twwells.com> <7gnqs3$41jm$1@newssvr03-int.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <7gnrgp$8hq$1@twwells.com> Subject: Re: Abandoning uniover - but how? Date: Tue, 04 May 1999 00:00:00 +0000 From: bill@twwells.com (T. William Wells) References: <7ga14u$h7f$1@news.netmar.com> <7gl3va$ofa$1@newssvr03-int.news.prodigy.com> <7glbhu$pdg$1@twwells.com> <7gnqs3$41jm$1@newssvr03-int.news.prodigy.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: 474084554 Organization: None, Mt. Laurel, NJ Newsgroups: news.software.nntp