Article View: news.software.nntp
Article #20920Re: nocem-on-spool efficiency?
From: Richard Michael Todd
Date: Sun, 24 Aug 1997 00:00
Date: Sun, 24 Aug 1997 00:00
41 lines
2579 bytes
2579 bytes
olaf@bigred.inka.de (Olaf Titz) writes: > I agree that it would be nice to have this kind of reliable interface > inside of innd, but this would require some wuite substantial changes. Changes, yeah, but not 'substantial' changes, I'd say. See below. > (Like the datagram socket interface which is not suited for large > batches of commands...) Yeah. I've been playing with some modifications to the ncmspcancel software along those lines (with corresponding modifications in innd). The basic idea is to add a new ctlinnd command 'cancellist', which accepts as argument a filename containing a list of msgids to be cancelled. Then what ncmspcancel does for each msgid is this: 1) Look it up in history. 2) If the msgid is in history and there are article names listed, go ahead and remove those articles. If the msgid is in history and there are no article names listed (a cancel for the message arrived before the message did), just skip this msgid and go on. If the msgid is not in history, add it to a list of msgids to be canceled. 3) Every time the list of msgids gets to be a certain length (I picked 100), write the list out to a file and do ctlinnd cancellist on that file. (Actually it does the appropriate inndcomm.c library call instead of forking ctlinnd, for obvious efficiency reasons). The reason for splitting the msgids to be canceled in batches of 100 before feeding them to innd is to have the canceling not monopolize innd; trying to cancel a whole big NoCeM message worth of messages at once caused unacceptably large delays in innd response times. If anyone's interested in my patches, let me know and I'll put them up for ftp or make them otherwise available.
Technical Details
Message-ID:
<vz2afi8yx8z.fsf@wildstar.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-mailReferences:
<5tbhng$iqb$1@samba.rahul.net> <5vlvuh.baa.hgoldste@bbs.mpcs.com> <5th90q$96v$1@bigred.inka.de> <5til2l$mu8$1@news.gv.tsc.tdk.com> <5tjssg$qbt$1@bigred.inka.de>Show Full Headers
Complete Article Headers
Message-ID: <vz2afi8yx8z.fsf@wildstar.net> Subject: Re: nocem-on-spool efficiency? Date: Sun, 24 Aug 1997 00:00:00 +0000 From: Richard Michael Todd <rmtodd@wildstar.net> References: <5tbhng$iqb$1@samba.rahul.net> <5vlvuh.baa.hgoldste@bbs.mpcs.com> <5th90q$96v$1@bigred.inka.de> <5til2l$mu8$1@news.gv.tsc.tdk.com> <5tjssg$qbt$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: 268288314 X-Complaints-To: news@choctaw.wildstar.net X-Trace: choctaw.wildstar.net 872399917 23092 (None) 198.203.196.143 Organization: WildStar Internet Services Newsgroups: news.software.nntp