Article View: news.software.nntp
Article #41802Re: Reduce memory footprint of INN expire process?
From: Richard Michael Todd
Date: Fri, 26 Nov 1999 00:00
Date: Fri, 26 Nov 1999 00:00
22 lines
1895 bytes
1895 bytes
brad@shub-internet.org (Brad Knowles) writes: > In article <ylyabm8ink.fsf@windlord.stanford.edu>, Russ Allbery > <rra@stanford.edu> wrote: > > > Yes, it will as much as half the memory consumption, since you've as much > > as halved the size of the index file for the history file which is memory > > mapped. > > This didn't seem to happen on the first run after reducing the > remember, however this kind of makes sense since you've got to run it one > last time with the old history file before you can create the newer (and > much smaller) one. Actually, it's more complicated than that. Dbz keeps track of the file sizes of the index file at the time of the past 10 expire runs (look at the 2nd line of history.dir, IIRC), and sizes the new index file to the max of these recorded sizes. So you won't see the index size/memory use drop until 9 more expire runs go by, or unless you go ahead and manually rebuild the dbz index with makehistory (<=2.2) or makedbz (2.3).
Technical Details
Message-ID:
<yl63dttowo2.fsf@intrepid.ecn.ou.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-mailReferences:
<brad-2511991706200001@brad.techos.skynet.be> <ylyabm8ink.fsf@windlord.stanford.edu> <brad-2611991600470001@brad.techos.skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <yl63dttowo2.fsf@intrepid.ecn.ou.edu> Subject: Re: Reduce memory footprint of INN expire process? Date: Fri, 26 Nov 1999 00:00:00 +0000 From: Richard Michael Todd <rmtodd@intrepid.ecn.ou.edu> References: <brad-2511991706200001@brad.techos.skynet.be> <ylyabm8ink.fsf@windlord.stanford.edu> <brad-2611991600470001@brad.techos.skynet.be> 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: 553405632 X-Complaints-To: news@mailhost.ecn.ou.edu X-Trace: skywalker.ecn.ou.edu 943646109 77431 129.15.112.112 (26 Nov 1999 19:55:09 GMT) Organization: University of Oklahoma, Engineering Computer Network NNTP-Posting-Date: 26 Nov 1999 19:55:09 GMT Newsgroups: news.software.nntp