🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #47315

Re: Expire suddenly taking 16 hours

#47315
From: Russ Allbery
Date: Tue, 11 Jul 2000 00:00
46 lines
2950 bytes
Ronald Hello <hello@cs.utwente.nl> writes:
> Russ Allbery <rra@stanford.edu> writes:

>> Reported size will depend a lot on your history size, since the
>> entirety of history.hash is mmap'd and will show up as allocated space.
>> Mine tends to run about 140MB, with a history.hash that's 55MB in size.

> Hmm. History.hash mmap'd in total, is that documented somewhere?

Not really.  The vagarities of the history implementation are a bit
underdocumented.  It took me a while of reading code to really understand
how the whole thing works.

> My history.hash is 170MB. Solaris/top reports SIZE 276MB, RES 92MB
> now. I increased the history files a little while ago because they
> didn't get the right size, I made them for 30m entries corresponding
> with 18-20m entries in history. My history is smaller now due to
> decreasing remember from 21 to 14 (which only effects test, job and
> alt.binaries groups since I keep the rest for 31 days). My history is
> 15m lines now, so I think I can safely decrease history.* to 24m
> entries. That should take away some 34MB.

Yeah, that should be okay.

> This also explains the behaviour I saw. History.* tended to explode
> (double) and decrease again, innd grew and never decreased in size
> (until restart).

Yup, that sounds very much like a history table overflow, which is
something you really don't want to ever have happen.  (Not only does it
cause innd to get huge, as well as expire, but the overflow code isn't at
all well-tested.)

Hopefully fixed someday with a history rewrite....

> But the sizes of the last few days are still unexpected and unexplained
> :-(

I looked at the cache allocation code, and I don't understand it either.
It would make some sense on a machine with 16-bit ints, but I'm pretty
sure that isn't the case....

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

Technical Details
Message-ID: <ylu2dxf055.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
References: <8kbsal$qjb$1@ares.cs.utwente.nl> <yl4s5y1mel.fsf@windlord.stanford.edu> <8kc0oo$qjb$6@ares.cs.utwente.nl> <ylya3az8ye.fsf@windlord.stanford.edu> <8kcd4i$940$1@ares.cs.utwente.nl> <yln1jpy1v5.fsf@windlord.stanford.edu> <8kefhv$6em$8@ares.cs.utwente.nl> <ylaefphx35.fsf@windlord.stanford.edu> <8kenha$ba0$1@ares.cs.utwente.nl> <ylsnthghws.fsf@windlord.stanford.edu> <8keras$d18$1@ares.cs.utwente.nl>

Show Full Headers
Complete Article Headers
Message-ID: <ylu2dxf055.fsf@windlord.stanford.edu>
Subject: Re: Expire suddenly taking 16 hours
Date: Tue, 11 Jul 2000 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <8kbsal$qjb$1@ares.cs.utwente.nl> <yl4s5y1mel.fsf@windlord.stanford.edu> <8kc0oo$qjb$6@ares.cs.utwente.nl> <ylya3az8ye.fsf@windlord.stanford.edu> <8kcd4i$940$1@ares.cs.utwente.nl> <yln1jpy1v5.fsf@windlord.stanford.edu> <8kefhv$6em$8@ares.cs.utwente.nl> <ylaefphx35.fsf@windlord.stanford.edu> <8kenha$ba0$1@ares.cs.utwente.nl> <ylsnthghws.fsf@windlord.stanford.edu> <8keras$d18$1@ares.cs.utwente.nl>
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: 644972817
Content-Type: text/plain; charset=us-ascii
Organization: The Eyrie
Mime-Version: 1.0
User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne)
Newsgroups: news.software.nntp