🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by Stefan Jensen Mon, 28 Aug 2006 17:51
how to make history file smaller?
#74116
Author: Stefan Jensen
Date: Mon, 28 Aug 2006 17:51
12 lines
1349 bytes
Hi,...

is there a way to have a much smaller history file, other
than tune "artcutoff" and "remember"?

my own db is grown up to ~1.5 GB, which is a little too big
for my little weak box. (~22 Peers,100GB Spool)

best regards

Stefan
--
Re: how to make history file smaller?
#74118
Author: Russ Allbery
Date: Mon, 28 Aug 2006 18:24
17 lines
1622 bytes
Stefan Jensen <jensen@ispa.de> writes:

> Hi,...

> is there a way to have a much smaller history file, other than tune
> "artcutoff" and "remember"?

Get your upstream peers to stop sending you stuff that you don't care
about.  I think those are pretty much the only options right now.  At some
point, I hope to find time to write a more space-efficient history
backend.

-- 
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.
Re: how to make history file smaller?
#74119
Author: Iulius
Date: Mon, 28 Aug 2006 18:57
30 lines
2417 bytes
En réponse à Russ Allbery :
>> is there a way to have a much smaller history file, other than tune
>> "artcutoff" and "remember"?

Perhaps « remembertrash: false » but it will use more bandwidth...

And perhaps upgrading your INN 2.3.5 to INN 2.4.3?

I read in <http://www.eyrie.org/~eagle/software/inn/docs/news.html> that
there is a new « libinnhis » (a generic API like the storage and overview
subsystems do).  So maybe it is faster (?)


> Get your upstream peers to stop sending you stuff that you don't care
> about.  I think those are pretty much the only options right now.

In your <http://news.ispa.de/innreport/>, I see four or five feeds
which are sending you lots of articles you reject...  If you can see to
it what is happening for them, it would be good.

You have lots of duplicated articles too (strange there is that much),
but it does no harm for your history file.
And it would be good to see in your logs who sent you articles so as to
have 2.8 GB in one day...

-- 
Iulius

« Il y a des gens qui parlent jusqu'à ce qu'ils arrivent
   à trouver quelque chose à dire. » (Sacha Guitry)
Re: how to make history file smaller?
#74121
Author: Stefan Jensen
Date: Tue, 29 Aug 2006 02:31
19 lines
1540 bytes
Russ Allbery schrieb:

> Get your upstream peers to stop sending you stuff that you don't care
> about.  I think those are pretty much the only options right now.  At some

Thanks.

every refused/rejected message from cleanfeed got an entry in the
history too?

> point, I hope to find time to write a more space-efficient history
> backend.

i too ;-)

best regards

Stefan
--
Re: how to make history file smaller?
#74120
Author: Russ Allbery
Date: Tue, 29 Aug 2006 02:32
21 lines
1768 bytes
Stefan Jensen <jensen@ispa.de> writes:
> Russ Allbery schrieb:

>> Get your upstream peers to stop sending you stuff that you don't care
>> about.  I think those are pretty much the only options right now.

> Thanks.

> every refused/rejected message from cleanfeed got an entry in the
> history too?

Yup.

You can turn remembertrash off, but then you're trading disk space against
network bandwidth and usually that's a pretty bad tradeoff.

-- 
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.
Re: how to make history file smaller?
#74122
Author: Stefan Jensen
Date: Tue, 29 Aug 2006 02:58
29 lines
2078 bytes
Iulius schrieb:

> Perhaps « remembertrash: false » but it will use more bandwidth...

i'll give it a try...

> And perhaps upgrading your INN 2.3.5 to INN 2.4.3?

I'm not successfull compiling the actual INN on this maschine.
It' a very old FC1 Box. I'm planning to make a fresh FC5 install
on this box, but i'm not sure if it make sense, because of cpu speed
and disk IO. I think this box is perhaps a little to weak for a
+100GB spool and +22 Peer Setup?

> In your <http://news.ispa.de/innreport/>, I see four or five feeds
> which are sending you lots of articles you reject...  If you can see to
> it what is happening for them, it would be good.

Ok

> You have lots of duplicated articles too (strange there is that much),
> but it does no harm for your history file.

Maybe a overall timing problem? Fast connection an slow CPU/DiskIO?

best regards

Stefan
--
Re: how to make history file smaller?
#74123
Author: Stefan Jensen
Date: Tue, 29 Aug 2006 03:11
22 lines
1667 bytes
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

best regards

Stefan
--






Re: how to make history file smaller?
#74125
Author: Maurice Janssen
Date: Tue, 29 Aug 2006 03:55
9 lines
1553 bytes
On Tue, 29 Aug 2006 05:11:46 +0200, Stefan Jensen wrote:
>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

In that case, memory is your problem.

-- 
Maurice
Re: how to make history file smaller?
#74134
Author: 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.
Re: how to make history file smaller?
#74157
Author: Stefan Jensen
Date: Wed, 30 Aug 2006 16:01
12 lines
1513 bytes
Miquel van Smoorenburg schrieb:

> 2. Do this in crontab:
> 
> MESSAGE="Temporarily throttled for expire"
> 40      1   * * *   news.daily lowmark norenumber delayrm flags=-n
> MESSAGE=""

What does the "-n" flag do? Can't find it in the docs.

Stefan
--
Re: how to make history file smaller?
#74158
Author: Iulius
Date: Wed, 30 Aug 2006 16:32
31 lines
2374 bytes
En réponse à Stefan Jensen :
>> MESSAGE="Temporarily throttled for expire"
>> 40      1   * * *   news.daily lowmark norenumber delayrm flags=-n
>> MESSAGE=""
> 
> What does the "-n" flag do? Can't find it in the docs.

man news.daily
--------------

flags='args for expire'
     By default, expire is invoked with argument ``-v1''. Using
     this keyword changes the arguments to those specified. Be careful to
     use quotes if multiple arguments are needed. This keyword has no effect
     if the ``noexpire'' keyword is used.


man expire
----------

-n
     If innd is not running, use the ``-n'' flag and expire will not send
     the ``pause'' or ``go'' commands. (For more details on the commands,
     see ctlinnd(8)). Note that expire only needs exclusive access for a very short
     time --- long enough to see if any new articles arrived since it first hit
     the end of the file, and to rename the new files to the working files.

-- 
Iulius

« Nunc est bibendum. » (Horace)
Re: how to make history file smaller?
#74161
Author: Stefan Jensen
Date: Wed, 30 Aug 2006 19:16
8 lines
1369 bytes
Iulius schrieb:

> man expire

Dooh, of course. Thanks!

Stefan
--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads