🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74134

Re: how to make history file smaller?

#74134
From: Miquel van Smoorenburg
Date: Tue, 29 Aug 2006 08:15
34 lines
2421 bytes
In article <ed0b6c$jec$1@violet.ispa.de>,
Stefan Jensen  <jensen@ispa.de> wrote:
>Russ Allbery schrieb:
>
>> You can turn remembertrash off, but then you're trading disk space against
>> network bandwidth and usually that's a pretty bad tradeoff.
>
>i don't care about diskspace, it's cheap ;-)
>
>Maybe my main problem here is cpu-power and DiskIO, because
>if "news.daily" with "lowmark + delayrm"" is running, my box
>starts using swap and the load goes up to 5.00

Ah, your history file isn't too big, it's just that history.index
and history.hash are too big to fit into memory, right ?

Two options:

1. If inn is compiled with the large-files option, and you don't
   really need it, recompile it without. It will make the index
   and hash files smaller.

2. Do this in crontab:

MESSAGE="Temporarily throttled for expire"
40      1   * * *   news.daily lowmark norenumber delayrm flags=-n
MESSAGE=""

Setting MESSAGE before calling news.daily will make it throttle
innd with that message for the duration of the expire - on low
memory boxes, it helped me cut down expire time from hours
to minutes. Don't forget flags=-n.

Mike.
Technical Details
Message-ID: <ed0t3l$gle$1@news.cistron.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.stueberl.de!newsgate.cistron.nl!xs4all!news.cistron.nl!not-for-mail
References: <ecvack$ths$1@violet.ispa.de> <ed08qd$i67$1@violet.ispa.de> <87fyfg6zlq.fsf@windlord.stanford.edu> <ed0b6c$jec$1@violet.ispa.de>

Show Full Headers
Complete Article Headers
Message-ID: <ed0t3l$gle$1@news.cistron.nl>
Subject: Re: how to make history file smaller?
Date: Tue, 29 Aug 2006 08:15:49 +0000
From: "Miquel van Smoorenburg" <miquels@netscum.invalid>
References: <ecvack$ths$1@violet.ispa.de> <ed08qd$i67$1@violet.ispa.de> <87fyfg6zlq.fsf@windlord.stanford.edu> <ed0b6c$jec$1@violet.ispa.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.stueberl.de!newsgate.cistron.nl!xs4all!news.cistron.nl!not-for-mail
Newsgroups: news.software.nntp
Organization: Cistron
Lines: 34
NNTP-Posting-Host: n2o.xs4all.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: ncc1701.cistron.net 1156839349 17070 194.109.0.112 (29 Aug 2006
X-Complaints-To: abuse@cistron.nl
NNTP-Posting-Date: Tue, 29 Aug 2006 08:15:49 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: mikevs@n2o.xs4all.nl (Miquel van Smoorenburg)