Article View: news.software.nntp
Article #21550Re: YOUHAVE transaction and speeding up nocem's
From: Charles Ball
Date: Mon, 15 Sep 1997 00:00
Date: Mon, 15 Sep 1997 00:00
46 lines
2832 bytes
2832 bytes
Olaf Titz (olaf@bigred.inka.de) wrote: : brian moore <bem@news.cmc.net> wrote: : > I played with c-nocem a bit, but found it rather annoying: it likes pausing : > the server to process its mods to the history database, which of course : > kills any connections trying to deliver articles and is generally annoying : This is annoying, but pausing the server should not kill any : connections. (Or do they time out at the client side?) : > since I am too lazy to figure out record locking on dbz files (locking : > individual hash chains while its updating), I thought of something truly : Record locking in dbz looks rather hard to me. First problem: the hash : chains are not explicitly there; when a slot is filled the next one : gets taken. For locking a chain you had to keep track of the : individual slots. Second problem: there are three modes in which the : history.pag file is handlesd, depending on compilation and run-time : flags: in small chunks (regular), all at once in memory (dbzincore) : and mapped (-DMMAP). A reliable locking mechanism has to work for all : of them. : In any case, it would be necessary to flock() the history text file in : addition to the hash file. Unfortunately, you can't get away with this : alone because of the second problem mentioned above. Has anyone tried using db version 2 (http://www.sleepycat.com/db) to replace dbz? While this would have the disadvantage of storing hashes in the hashfile, it offers advantages like shared rw support, optional shared memory pools (cache), data-level transaction logs with crash-recovery mechanisms, record level locking, etc. Db v2 should be a drop in replacement using the included dbm() replacement library, but the semester started while I was trying to do so and I'm busy elsewhere for awhile. If the expanded history storage utilization is a problem, with [considerably?] more work it should be possible to drop the flat history file altogether and just eliminate the whole business of routine history rebuilds. If the hashed key performance is anything like we've seen with b-tree keyed databases, this should be a viable mechanism for both history and active. Charles Ball Information Technology Boston University
Technical Details
Message-ID:
<5vjv5d$ovv$1@news1.bu.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-mailReferences:
<5ud3lb$grv$1@news.cmc.net> <5ui1ir$cqv$1@bigred.inka.de>Show Full Headers
Complete Article Headers
Message-ID: <5vjv5d$ovv$1@news1.bu.edu> Subject: Re: YOUHAVE transaction and speeding up nocem's Date: Mon, 15 Sep 1997 00:00:00 +0000 From: cball@bu.edu (Charles Ball) References: <5ud3lb$grv$1@news.cmc.net> <5ui1ir$cqv$1@bigred.inka.de> 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: 272745166 Organization: Boston University Newsgroups: news.software.nntp