Article View: news.software.nntp
Article #25420Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
From: Charlie Reboot
Date: Wed, 21 Jan 1998 00:00
Date: Wed, 21 Jan 1998 00:00
66 lines
3657 bytes
3657 bytes
On 52 Dec 1997, Michael Hucka wrote: > Help! No. > [...] I examined the dbzconfbase function code and > thought about changing the type of "m" to be unsigned, thus gaining breathing > room in which the loop and subsequent calculations in dbzconfbase could work. > However, I don't really understand the dbz code, and it looks to me like > dbzconfbase may be relying on the fact that the size of m is the size of > offsets used elsewhere. I'm afraid that allowing m to reach higher values > without changing other parts of the code would screw something up. I just got through redefining of_t from type long to type unsigned long, recompiled, rebuilt makehistory and expire, and as a test, ran expire on our rather undersized history file. It seemed to work fine. And makehistory just finished now, creating the expected .pag file. This is with stock dbz v3.3.2 code on an AIX thing. When I rebuild another of my swervers to use a slightly hacked dbz v3.3.2, I'll do the whole thing with an unsigned long of_t (defined in dbz.c) just to see if it freaks somewhere else, like in innd or nnrpd which I haven't bothered to rebuild. It shouldn't. Note that if you were to use the legendary 64-bit history patch, one of the things it does is to redefine of_t to be a qu_t which is a long long. This of_t (and not off_t) is what gets used elsewhere in the code, so you should be safe in changing this. Also, with the size of that thing being more than a mouthful, you probably want to adjust the MAXDROPBITS up from its default. This will give you one more bit that can be used as a tagbit to keep false hits down, at the expense of a bit more fuzziness at the point in the text file where you are seeking. You should do well with it set to 5 and get improved performance in spite of your whopper. (oops, cut an extra line) > Is there a version of this available for INN 1.7.2.insync, or must I get INN > 1.8-current? The 64-bit dbz does not buy you too much more than dbz v3.3.2 offers. You do get a few more tag bits, but because of a bug, you don't get the full 28 or 29 bits you would believe from your file's size. Plus the dbzhash in use is a 32-bit hash, so you will still have collisions. The extra size of the .pag database file also requires quite a bit of memory and disk activity that could also lower performance. For this reason, I'll be comparing how it does now with how 3.3.2 will do with one particular OS. The dbz in 1.8-current is completely different and does not make use of 64-bit types. With a bit of work, it can be applied to non-1.8 INN, as I've done on one of the machines here running a 1.5-based innd. However, be prepared for a long night of wild patching. I'd offer to send you my diffs, but I'm really not prepared to be subjected to any more ridicule than I'm already suffering, thank you. Barry Bouwsma, Tele Danmark Internet
Technical Details
Message-ID:
<Pine.BSF.3.96.980121154154.14356J-100000@coredump.int.tele.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!not-for-mailReferences:
<821zy2jqrh.fsf@robin.eecs.umich.edu>Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.3.96.980121154154.14356J-100000@coredump.int.tele.dk> Subject: Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files Date: Wed, 21 Jan 1998 00:00:00 +0000 From: Charlie Reboot <f00fc7c8@int.tele.dk> References: <821zy2jqrh.fsf@robin.eecs.umich.edu> 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: 318017674 Mime-Version: 1.0 Reply-To: ag786@yfn.ysu.edu Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Sick and Twisted Newsgroups: news.software.nntp