Article View: news.software.nntp
Article #41880Re: Reduce memory footprint of INN expire process?
From: bill davidsen
Date: Wed, 01 Dec 1999 00:00
Date: Wed, 01 Dec 1999 00:00
42 lines
2738 bytes
2738 bytes
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. One of the things I have noted about dbz is that it uses ALL of the index file all the time, so you beat your paging to death if it doesn't fit in physical memory. So the problem is not to fit the expire and innd in virtual memory, but to be absolutely sure that it fits in physical memory. This is just another argument for a "real database" for history, with entries which could be deleted as well as added. That would allow innd and expire to share the same index in memory. Consider all arguments about performance made before, obviously we can't tolerate a performance hit to do this, it would just be a desirable feature. Question: if makehistory can run to build history and then run makedbz later, why can't expire do the same thing? That is, build the new history file, build the indices only when the (almost) whole history file is known, then pause innd, get the final entries, add them, and do the rename. In any case, I think Brad need tagged hash to really solve the problem, until he can add physical memory. The real problem with history as we know it is that it is pushing the file size limit of many 32 bit machines, and the article count is still going up. The current solution doesn't scale, and a solution should be addressed in the next year or so. If I get to take my vacation this weekend I'll post some thoughts on how to do that, reduce memory use, and improve performance. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
Technical Details
Message-ID:
<823m89$hjn$1@newssvr02.news.prodigy.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:
<brad-2511991706200001@brad.techos.skynet.be> <ylyabm8ink.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <823m89$hjn$1@newssvr02.news.prodigy.com> Subject: Re: Reduce memory footprint of INN expire process? Date: Wed, 01 Dec 1999 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <brad-2511991706200001@brad.techos.skynet.be> <ylyabm8ink.fsf@windlord.stanford.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: 555367412 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr02.news.prodigy.com 944069705 18039 199.4.137.118 (1 Dec 1999 17:35:05 GMT) Organization: TMR Associates, Schenectady NY Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com