Article View: news.software.nntp
Article #22593Re: c-nocem undermining history cache?
From: Forrest J. Cavalier III
Date: Thu, 23 Oct 1997 00:00
Date: Thu, 23 Oct 1997 00:00
51 lines
3214 bytes
3214 bytes
In article <62ob86$86g$1@news.theriver.com>, marcus@theriver.com wrote... > >In article <86pvowi893.fsf@blah.erols.com>, coneill@blah.erols.com wrote: >>marcus@theriver.com (Marcus Needham) writes: >>And what if you just added a bunch of message-id's that you have >>cached as "don't have". You're screwed in that instance. You have to >>keep the cache coherent with the on disk history, and the only way to >>do that is to invalidate the cache on reload or revalidate it on >>reload. I think most people would prefer to invalidate it. If you >>come up with another solution, feel free to submit the code. > >I do, or at least I think I do. My original suggestion was to sweep item by >item through the history cache when the history file is closed, keeping all >"haves" and discarding all "don't haves." I implemented this yesterday, and >I have observed that only a handful of entries are discarded each time. For >midnight to 9am this morning for example my server was paused 46 times (mainly >by c-nocem) and on average only 144 articles (out of approx 64k) were dropped >from the cache each time. This makes sense because almost every time you add a >"don't have" to the cache in normal operation the article is accepted very >soon thereafter and the entry changed to "have." > >I am not an inn hacker (yet) though so that's why I am seeking opinions on the >idea from those in the know. Sounds like you'll make a great INN hacker to me. Currently, the history cache values are considered "HAVE" vs "DONT-HAVE." I prefer to think of them a bit differently, regardless of what the NNTP terminology reply/command is called, and what the functions say they are returning. I think of them as "DONT-WANT" and "DONT-HAVE". So even if nocem cancels removed articles, the DONT-WANT status does not need to be purged from the cache. (It is no longer true that you "HAVE" the article, but it is still true that you "DONT-WANT" it.) I think I agree on the need to purge DONT-HAVE's. A definitive answer to DONT-HAVE is necessary to stop writing duplicate message IDs to the history database. If something else could ensure this could not happen, then the only harm in not purging DONT-HAVE's would be accepting a couple of extra duplicates over your connections. Aside note: last time I looked at the history cache, it was wasting an int (32 bits) to store a BOOL. Is this still true? Surely we could think of better things to do with those other 31 bits. Forrest
Technical Details
Message-ID:
<62ofog$o7r$2@news1.epix.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:
<62ju25$b7q$1@news.theriver.com> <62nju0$i9o$1@bigred.inka.de> <62ntk1$66t$1@news.theriver.com> <86pvowi893.fsf@blah.erols.com> <62ob86$86g$1@news.theriver.com>Show Full Headers
Complete Article Headers
Message-ID: <62ofog$o7r$2@news1.epix.net> Subject: Re: c-nocem undermining history cache? Date: Thu, 23 Oct 1997 00:00:00 +0000 From: mibsoft@epix.net (Forrest J. Cavalier III) References: <62ju25$b7q$1@news.theriver.com> <62nju0$i9o$1@bigred.inka.de> <62ntk1$66t$1@news.theriver.com> <86pvowi893.fsf@blah.erols.com> <62ob86$86g$1@news.theriver.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-mail X-Deja-AN: 284586676 Organization: Mib Software Newsgroups: news.software.nntp