Article View: news.software.nntp
Article #20855Re: nocem-on-spool efficiency?
From: Don Lewis
Date: Sat, 23 Aug 1997 00:00
Date: Sat, 23 Aug 1997 00:00
46 lines
2937 bytes
2937 bytes
In article <5tjti6$qo4$1@bigred.inka.de>, Olaf Titz <olaf@bigred.inka.de> wrote: >Don Lewis <gdonl@tsc.tdk.com> wrote: >> more extensive changes. First I would add a cancel style interface >> to innd that ncmspool could use. It would only need to do one history >> lookup to decide whether to remove the article or add the history file >> entry. > >Since NoCeM cancels come bulkwise, this would need an interface that >scales well to a large number of cancels (as opposed to the datagram >socket which is designed for "one at a time"). How about after validating the NoCeM message and filtering out all the Message-IDs for groups not in the active file, wrap the remaining Message-IDs in a special control message that is not accepted from outside and is never propagated, post the message, and let innd process its contents. This scheme has the advantage of getting the locking correct. BTW, one good reason for batching this up is that if your server is busy enough and you've got enough incoming feeds, you'll fall behind on NoCeM processing since they'll be arriving faster than you can process them since you can only do one addhist per turn of the innd select loop. >> Also when an article is removed either by a cancel message or a NoCeM, >> either the history entry would be flagged so that a second unlink() >> isn't attempted, or the file fields in the history entry should be >> cleared. In the former case, expire would add the file names to the > >You can't easily change an existing history entry on the fly. At most >you can blank out the file fields, but I'm not sure if this could >break other things that read the history. Adding the space for a flag field would probably make it necessary to make changes in a number of places (even if appended to the existing entry?). Once added, it should be pretty painless to update the flag. Various bits of code would have to be examined for problems if the file names were blanked. I think the performance gains would be worth it, though. -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Technical Details
Message-ID:
<5tlmnm$fif$1@news.gv.tsc.tdk.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:
<5tbhng$iqb$1@samba.rahul.net> <5vlv9c.baa.hgoldste@bbs.mpcs.com> <5tgppv$mbb$1@news.gv.tsc.tdk.com> <5tjti6$qo4$1@bigred.inka.de>Show Full Headers
Complete Article Headers
Message-ID: <5tlmnm$fif$1@news.gv.tsc.tdk.com> Subject: Re: nocem-on-spool efficiency? Date: Sat, 23 Aug 1997 00:00:00 +0000 From: gdonl@tsc.tdk.com (Don Lewis) References: <5tbhng$iqb$1@samba.rahul.net> <5vlv9c.baa.hgoldste@bbs.mpcs.com> <5tgppv$mbb$1@news.gv.tsc.tdk.com> <5tjti6$qo4$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: 268101492 Organization: TDK Semiconductor, Nevada City CA Newsgroups: news.software.nntp