Article View: news.software.nntp
Article #22595Re: c-nocem undermining history cache?
From: coneill
Date: Thu, 23 Oct 1997 00:00
Date: Thu, 23 Oct 1997 00:00
33 lines
2510 bytes
2510 bytes
marcus@theriver.com (Marcus Needham) writes: > In article <62nju0$i9o$1@bigred.inka.de>, olaf@bigred.inka.de (Olaf Titz) wrote: > >Marcus Needham <marcus@theriver.com> wrote: > >> I notice that Jeff Garzik's history cache patch's cache is cleared when > >> innd is paused and the history file closed (and I think Clayton O'Niell's > >> is too). Running c-nocem this happens on my news server every 10-30 > >> minutes or so which seems to me to undermine the usefulness of the cache > >> somewhat. Is it strictly necessary to wholly flush the cache? > > > >I don't know how the history cache works, but I assume the answer is > >yes, because theoretically re-opening the history can mean opening a > >completely new history file. Think of what expire does. > > The cache stores message-id hashes with "have" or "don't have" from previous > lookups. Even though expire generates a whole new history file the existing > values of these lookups seem to me to still be valid (or at least "useful"). > > If we have a "have" value cached that is now no longer actually correct > because expire removed the message its does not matter because we still don't > want another copy of the message so its ok to believe we still have one. If > we have a "don't have" value cached then expire does not add messages so it > must still be valid. No? 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.
Technical Details
Message-ID:
<86pvowi893.fsf@blah.erols.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:
<62ju25$b7q$1@news.theriver.com> <62nju0$i9o$1@bigred.inka.de> <62ntk1$66t$1@news.theriver.com>Show Full Headers
Complete Article Headers
Message-ID: <86pvowi893.fsf@blah.erols.com> Subject: Re: c-nocem undermining history cache? Date: Thu, 23 Oct 1997 00:00:00 +0000 From: coneill@blah.erols.com References: <62ju25$b7q$1@news.theriver.com> <62nju0$i9o$1@bigred.inka.de> <62ntk1$66t$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: 282679278 X-Complaints-To: abuse@erols.com X-Trace: winter.news.erols.com 877635265 13744 207.172.25.192 (23 Oct 1997 19:34:25 GMT) Organization: Erol's Internet Services Newsgroups: news.software.nntp