🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53818

Re: expire problem on FreeBSD

#53818
From: Russ Allbery
Date: Fri, 17 Aug 2001 08:09
34 lines
2408 bytes
Karsten Thygesen <karthy@sonofon.dk> writes:
> Russ Allbery <rra@stanford.edu> writes:

>> I'm guessing your history file is overflowing badly.  What's the
>> contents of db/history.dir?

> It's:

> -rw-rw-r--  1 news  news  3621744162 Aug 17 09:22 history
> -rw-rw-r--  1 news  news         120 Aug 17 09:22 history.dir
> -rw-rw-r--  1 news  news   452835240 Aug 17 09:22 history.hash
> -rw-rw-r--  1 news  news   603780320 Aug 17 09:22 history.index

> abnew01# cat db/history.dir 
> dbz 6 37736283 14 66
> 42568069 25157522 24296029 23876066 23416430 23009932 22556503 22331509 21956184 21320213 21069163

Hm.  No, that's just incredibly huge.  I'm not sure *what* to do about
that.  expire wants to build the index file in memory.  I suppose one
thing you could do is instead have expire build the index memory-mapped,
which will take considerably longer but shouldn't run out of memory
(assuming the data limit doesn't also apply to memory-mapped files...).

Unfortunately, this requires code changes.  Edit inn/expire/expire.c and
change opt.pag_incore to INCORE_MMAP on about line 939 and recompile
expire and see if that will give you an expire that can run given the
memory limits.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <yly9ojp0p3.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <86d75vrzq9.fsf@kaytest.dmt.dk> <ylg0arryer.fsf@windlord.stanford.edu> <86ae0zrw28.fsf@kaytest.dmt.dk>

Show Full Headers
Complete Article Headers
Message-ID: <yly9ojp0p3.fsf@windlord.stanford.edu>
Subject: Re: expire problem on FreeBSD
Date: Fri, 17 Aug 2001 08:09:28 +0000
From: Russ Allbery <rra@stanford.edu>
References: <86d75vrzq9.fsf@kaytest.dmt.dk> <ylg0arryer.fsf@windlord.stanford.edu> <86ae0zrw28.fsf@kaytest.dmt.dk>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 33
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 998035769 28097 171.64.13.23 (17 Aug 2001 08:09:29 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)