Article View: news.software.nntp
Article #18798Re: Another question about cancels
From: Joe Greco
Date: Fri, 27 Jun 1997 00:00
Date: Fri, 27 Jun 1997 00:00
52 lines
2635 bytes
2635 bytes
In news.software.nntp article <82iuz0n1l0.fsf@peachfuzz.eecs.umich.edu>, Michael Hucka <hucka@eecs.umich.edu> wrote: :On our server, processing cancels takes a significant amount of time -- so :much so that I get a substantial innd speedup after implementing a variant of :Joe Greco's recent suggestion of trimming the control/cancel directory. :However, this impacts cancel messages that are supposed to be passed on to :other sites: many of our outgoing feeds backlog and will miss getting cancel :messages if they're removed after a few hours. This is detrimental to :various people's efforts at spam control. : :I've been wondering about this idea, though: what if one could periodically :move the cancel messages out of control/cancel into some other directory (to :keep the size of control/cancel small) and then arrange to feed the cancel :messages from this alternate directory? : :Is there an easy way to implement such a scheme? Yes, you do the following: Inside INN, you locate the location where the article pathname is generated. That would be right here, in art.c: /* Write the article the first time. */ (void)sprintf(Data.Name, "%s/%lu", ngp->Dir, ngp->Filenum); You then track that down and break it to not write to a single directory. Since nobody seems to have realized that NO sane person goes into the control.cancel newsgroup via NNRP, I'll lay it out really simply: you can change the spool format for control/cancel safely! Dammit! Arrrrggghhh. I figured this out _years_ ago when I was running a Sun 3/60 with half a dozen slow 660MB disks. Okay, well, I'm irritated, probably more than I should be. Too little sleep. I may be able to even dig up the PATCH I wrote to do this. Arrrrrg. Okay, so it needs a little updating. You want a thousandfold decrease in cancel directory searching overhead? All right then. Have at it. The grand fix of all fixes for the Great Cancel Problem is located at http://www.nntp.sol.net/patches :-) ... JG
Technical Details
Message-ID:
<5p0m5c$jaa$1@earth.execpc.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:
<82iuz0n1l0.fsf@peachfuzz.eecs.umich.edu>Show Full Headers
Complete Article Headers
Message-ID: <5p0m5c$jaa$1@earth.execpc.com> Subject: Re: Another question about cancels Date: Fri, 27 Jun 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <82iuz0n1l0.fsf@peachfuzz.eecs.umich.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: 252982301 Sender: jgreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp