Article View: news.software.nntp
Article #41246Re: NoCeM & INN2.3
From: bostic
Date: Wed, 03 Nov 1999 00:00
Date: Wed, 03 Nov 1999 00:00
58 lines
3321 bytes
3321 bytes
In article <ylg0yomrmj.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >>> Precisely. :) Any API will obviously be designed with some eye to >>> thread safeness as well. (A thread-safe header parsing library that >>> doesn't use > >> Not just thread safeness, but safe concurrent access by different >> _processes_ as well, if the backend can do that. Then programs like >> fastcancel or a rewritten expire wouldn't have to pause the server at >> all. > > The problem is that writing a backend that can do that is pretty hard, and > I'm worried about the performance hit on INN. Maybe optionally using > fcntl range locking on the history file and having a ctlinnd command to > turn it on or off? Hurm. Fcntl range locking is too slow for any real thread usage -- doing a system call for an uncontested lock isn't reasonable. If you look underneath Berkeley DB, there's a lot of work invested in doing locking mutexes that don't require system calls. It's a portability nightmare, of course, but if you're going to run any significant numbers of threads or processes in an application, you have to do it. >> (I've already played with the idea of simply trying Berkeley Berkeley >> DB for that and see it fail spectacularly in the performance area, and >> then write a specialized replacement.) > > dbz is impressively simple and fast for what it does. It's basically > living at one end of the memory vs. performance curve; I'm really not sure > how you could get it much faster than it is already (well, apart from > improving the hash algorithm, which I'm going to look at -- MD5 is > dog-slow and there are better algorithms out there). I've never looked inside of INN, so it's fair to say that I don't understand the problem. However, it seems to me that INN is a database problem, and wouldn't it make sense to try a database solution? I don't know what the scaling and recoverability requirements of INN are, but Berkeley DB already offers real scalability and thread support, not to mention recoverability after failure. And yes, Berkeley DB can do better than 500 queries a second on commodity hardware. :-) I regularly see multiple thousands of queries a second on fairly low-end x86 hardware. --keith Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<7vpog2$2qm$1@nnrp1.deja.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:
<3819A774.9C57FDCA@boerde.de> <ylyachnwki.fsf@windlord.stanford.edu> <87u2n5wa1n.fsf@slip-32-100-243-27.ma.us.prserv.net> <yl66zlnugn.fsf@windlord.stanford.edu> <7vnkfo$cpt@bigred.inka.de> <ylg0yomrmj.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <7vpog2$2qm$1@nnrp1.deja.com> Subject: Re: NoCeM & INN2.3 Date: Wed, 03 Nov 1999 00:00:00 +0000 From: bostic@bostic.com References: <3819A774.9C57FDCA@boerde.de> <ylyachnwki.fsf@windlord.stanford.edu> <87u2n5wa1n.fsf@slip-32-100-243-27.ma.us.prserv.net> <yl66zlnugn.fsf@windlord.stanford.edu> <7vnkfo$cpt@bigred.inka.de> <ylg0yomrmj.fsf@windlord.stanford.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: 543981427 To: bostic@bostic.com X-Http-User-Agent: Mozilla/4.04 [en] (X11; I; BSD/OS 4.0 i386) X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 199.103.241.218 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Nov 03 16:39:30 1999 GMT X-MyDeja-Info: XMYDJUIDbostic Newsgroups: news.software.nntp