🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53819

Re: expire problem on FreeBSD

#53819
From: Karsten Thygesen
Date: Fri, 17 Aug 2001 08:15
47 lines
2880 bytes
Russ Allbery <rra@stanford.edu> writes:

> 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.

I think I have found another solution - I finally discovered, that I
can increase the fixed max datasegment size by modifying 

options         MAXDSIZ="(1024*1024*1024)"
options         DFLDSIZ="(512*1024*1024)"

in the kernel config file (FreeBSD-4.3-STABLE)

So now I have increased the size to 1Gb and expire seems to run - at
least, it's rebuilding the history file right now. If that works, then
I will just leave it like that (and keep on monitor the process) -
otherwise, I will try your solution...

Thanks for the suggestion, Russ!

Karsten
Technical Details
Message-ID: <867kw3rtkg.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!news.tele.dk!small.news.tele.dk!212.88.64.227!sonofon.dk!not-for-mail
References: <86d75vrzq9.fsf@kaytest.dmt.dk> <ylg0arryer.fsf@windlord.stanford.edu> <86ae0zrw28.fsf@kaytest.dmt.dk> <yly9ojp0p3.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <867kw3rtkg.fsf@kaytest.dmt.dk>
Subject: Re: expire problem on FreeBSD
Date: Fri, 17 Aug 2001 08:15:11 +0000
From: Karsten Thygesen <karthy@sonofon.dk>
References: <86d75vrzq9.fsf@kaytest.dmt.dk> <ylg0arryer.fsf@windlord.stanford.edu> <86ae0zrw28.fsf@kaytest.dmt.dk> <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!news.tele.dk!small.news.tele.dk!212.88.64.227!sonofon.dk!not-for-mail
Newsgroups: news.software.nntp
Organization: Sonofon
Lines: 46
NNTP-Posting-Host: gateway.sonofon.dk
X-Trace: abnew01.sonofon.dk 998036225 2237 212.88.71.2 (17 Aug 2001 08:17:05 GMT)
X-Complaints-To: usenet@sonofon.dk
NNTP-Posting-Date: Fri, 17 Aug 2001 08:17:05 +0000 (UTC)
X-Newsreader: Gnus v5.7/Emacs 20.7