Article View: news.software.nntp
Article #22427Re: Shared Active patch for NNRPD
From: Ken Lalonde
Date: Wed, 15 Oct 1997 00:00
Date: Wed, 15 Oct 1997 00:00
26 lines
1664 bytes
1664 bytes
I found mmap-active to be a huge win in terms of memory, but each nnrpd still had to parse the entire file, and each held a large private hash table in memory. I gave actived a try, but ended up taking a slightly different approach. On our reader boxes, a perl script periodically converts the active file to a hashed database, in Dan Bernstein's "cdb" format (see http://pobox.com/~djb/cdb.html). The database maps a newsgroup name to the corresponding line in the active file. Nnrpd will use the CDB database if it exists, falling back to the old method otherwise. This scheme is basically the same as actived, except that the hash table is in a file rather than a process. Caching is handled by the OS as usual, and may be improved by moving the database to a tmpfs filesystem. A database has some minor advantages - simultaneous access, no client delay on rebuilds - but mainly, it's simpler and more robust. Ken Lalonde UUNET Canada
Technical Details
Message-ID:
<622rfv$p55@angel.uunet.ca>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:
<34325C40.8894971@skynet.be> <61lrbn$1ehg$1@newssvr03-int.news.prodigy.com> <61qolq$66s$1@earth.execpc.com> <620jvg$1dq8$1@newssvr03-int.news.prodigy.com> <620vaf$c3c$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <622rfv$p55@angel.uunet.ca> Subject: Re: Shared Active patch for NNRPD Date: Wed, 15 Oct 1997 00:00:00 +0000 From: ken@angel.uunet.ca (Ken Lalonde) References: <34325C40.8894971@skynet.be> <61lrbn$1ehg$1@newssvr03-int.news.prodigy.com> <61qolq$66s$1@earth.execpc.com> <620jvg$1dq8$1@newssvr03-int.news.prodigy.com> <620vaf$c3c$1@flea.best.net> 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: 280750520 Organization: UUNET Canada News Transport Newsgroups: news.software.nntp