Article View: news.software.nntp
Article #50359Re: History dups (was: Re: Has anyone built INN-2.3.1 on Open BSD?)
From: Charlie Concatenated
Date: Fri, 02 Feb 2001 03:52
Date: Fri, 02 Feb 2001 03:52
96 lines
6772 bytes
6772 bytes
:: The "can't tag" error goes to the error log (rather than syslog) for :: some reason, and winds up in the daily report. (In some older versions Okay, makes sense to me (and I still should have seen it), but another grep of the last four months or however long of daily reports shows no hits for `tag' other than `*ll*dv*ntage', so I still haven't seen it. :: It happens because the text file offsets get sufficiently big that :: they no longer fit in the number of bits available. The fuzzyness This sounds wrong to me unless I'm misunderstanding fuzzy offset, or your text file has reached the point where one would see problems no matter what one does. (My pained brane is trying to remember if that would be at 2GB or if people were actually seeing problems at the 1GB point which I fixed for myself by changing a `long' to an `unsigned long', but this was years ago, and I'm positive those haX0red k0deZ are long gone) It was my understanding that the table entry was composed of the most significant bits of the offset, and that increasing the bytes available for the tag decreased the precision of the offset, rather than putting a limit on the value and therefore file size. But there is often a great divergence between what I think, and what I would think if I were to look at k0de, and the last time I remember actually being able to look at k0deZ and make sense of them was back in november -- today my eyes just defocus and wander. :: Charlie> If your .pag table is overflowing, that means you probably :: Charlie> didn't properly size your database in advance and the :: That was deliberate in this case, because I was trying to reproduce this :: problem, but in normal operation it can also happen due to variations in :: traffic levels. Well yeah, but unless you're taking in close to a full feed or not expiring regularly, I would expect to see your overflow requiring no more than a single overflow table. It's when I've done silly things like run for a week without expiring on a full feed that I see database files massively larger than the numbers stored in the history.dir file would lead me to expect. This can also happen if someone has problems in expiry and fails to heed them. Of course, with your particular feed, the normal variations in traffic seem to be by a factor of five or so... Now, when I am taking in close to a full feed, I almost universally have used the md5-based v6 history, using the tagged hash only for the smaller feeds or smaller text files, even though the performance hit is not supposed to be as great as before. Today, with the choice of not mmap()ing one of the two md5 files and probably other design decisions I haven't investigated, the performance of the newer history is actually worse, but I can reach the levels I expect by breaking these design choices. So I've never put myself in the situation where I'd see the same things others see, sorry to say. :: that is exactly what was happening, yes - there were about 349890 :: history entries in a default (500009) sized pag file, which is about :: the right point to start seeing occasional overflows. Right. Of course, that is, what, 1/4 or 1/5 of a daily full feed at today's traffic levels, so that anyone who doesn't adjust for this will see massive overflows after the first few hours. I think it should be stressed what the default table size is and what sort of feed it is appropriate for, and that if you have an extremely small feed of The Other Places or local hierarchies you will be wasting a good deal of space, but if you're coming close to a full feed, you will absolutely want to tune this without exception, for at least a 2 million default if you want expire to be responsible for resizing the tables, or maybe 10 million or more if you want to avoid as many overflows as possible before things stabilize. But what disturbs me is that at such a normal case (unlike, say, when you have 2 million entries in a table set for two, er, a third of a million, your overflow entries aren't limited to a single table, and with a handful of them you already need a second table. I thought (not from understanding the k0de, mind you, but from discussion I'd seen somewhere) that you would need at least ten collisions of the very same table entry before you'd start needing another overflow table, and half a dozen entries should certainly be randomly enough scattered in the first overflow table that you shouldn't even need to think about a second for quite some time. I could be gravely mistaken, since I've made no real effort to have a full understanding of this, but a number of things seem Just Wrong. Your text file is nowhere near a gigabyte, is it? I'd be happy to have my misunderstandings pointed out, knowing that it will require at least a week or more of sleep before there could be any connection from my eyeballs back into my brane, to know if the k0deZ actually do what I think, or if what I think is logical. Of course, I could be sleep-deprived.
Technical Details
Message-ID:
<95dauj$erl$1@news.esenet.dk>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!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!news.tele.dk!TDC-news.ESENET.dk.POSTED!for-mail!notReferences:
<m3zogbl7mg.fsf@pyrophore.ogoense.net> <87lmrvqt02.fsf@erlenstar.demon.co.uk> <95253f$dpo$1@news.contactel.cz> <87elxnqq2s.fsf@erlenstar.demon.co.uk> <952eb6$e22$1@news.contactel.cz> <m3y9vvezpo.fsf@pyrophore.ogoense.net> <9531ad$f4e$1@news.contactel.cz> <m3zoga7rrn.fsf@pyrophore.ogoense.net> <95371n$fak$1@news.contactel.cz> <m3n1ca7oti.fsf@pyrophore.ogoense.net> <953a8v$fi4$1@news.contactel.cz> <yl3de2r5xt.fsf@windlord.stanford.edu> <87itmwdyhk.fsf@erlenstar.demon.co.uk> <87zog62m9g.fsf_-_@erlenstar.demon.co.uk> <95clho$dd2$1@news.esenet.dk> <87ofwm2frp.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <95dauj$erl$1@news.esenet.dk> Subject: Re: History dups (was: Re: Has anyone built INN-2.3.1 on Open BSD?) Date: Fri, 02 Feb 2001 03:52:52 +0000 From: Charlie Concatenated <autocyberretributionmeowbot@plonk.invalid> References: <m3zogbl7mg.fsf@pyrophore.ogoense.net> <87lmrvqt02.fsf@erlenstar.demon.co.uk> <95253f$dpo$1@news.contactel.cz> <87elxnqq2s.fsf@erlenstar.demon.co.uk> <952eb6$e22$1@news.contactel.cz> <m3y9vvezpo.fsf@pyrophore.ogoense.net> <9531ad$f4e$1@news.contactel.cz> <m3zoga7rrn.fsf@pyrophore.ogoense.net> <95371n$fak$1@news.contactel.cz> <m3n1ca7oti.fsf@pyrophore.ogoense.net> <953a8v$fi4$1@news.contactel.cz> <yl3de2r5xt.fsf@windlord.stanford.edu> <87itmwdyhk.fsf@erlenstar.demon.co.uk> <87zog62m9g.fsf_-_@erlenstar.demon.co.uk> <95clho$dd2$1@news.esenet.dk> <87ofwm2frp.fsf@erlenstar.demon.co.uk> 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!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!news.tele.dk!TDC-news.ESENET.dk.POSTED!for-mail!not Newsgroups: news.software.nntp Organization: Esbjerg IT-Net -- Portalen til fremtiden... Lines: 95 NNTP-Posting-Host: 2dd950811eed8cd4920adef76f5c8ccd.esenet.dk X-Trace: news.esenet.dk 981085972 93da81bafce8d408716d664e0125a504 X-Complaints-To: ESENET Abuse Reports <abuse@esenet.dk> X-Pedophile: BARRY BOUWSMA IS A PEDOPHILE!!! X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300