🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Vern Soehner Wed, 03 Apr 1996 00:00
INN Help! How to purge 'Control' newsgroup.
#6252
Author: Vern Soehner
Date: Wed, 03 Apr 1996 00:00
26 lines
1535 bytes
Hi.  Help Please.  

May I do a 'find . -type f -mtime +n -exec rm {} \; &' command at 
the /news/spool/news/control directory and if so, what do I have
to be careful about?  For example... Should I check something to 
be sure it is okay?

A 'l -ls' command from above directory shows 260336 articles or inodes in it!

This is causing the infamous 'No space (spool inodes) problem to occur more 
and more often and causing me to remove articles from other groups in 
the same filesystem.  It also has been preventing the nightly 'expire' from 
running also becuase of the same inode space problem.
I am concerned because unlike other newsgroups, I recall that these articles 
are 'commands'.

How did this start to out of control (no pun intended)?  

Thanks in advance!!!   Email me please as my newsreader is getting close
to the control group using all inodes in the filesystem.

Vern			VSOEHNER@NECTECH.COM
"All computers wait at the same speed." anonymous


Re: INN Help! How to purge 'Control' newsgroup.
#6233
Author: Andreas Karrer
Date: Wed, 03 Apr 1996 00:00
31 lines
1830 bytes
In article <4ju9h1$15r@augusta.math.psu.edu>, Dave Barr wrote:
>In article <4ju5uo$pkc_002@cosmos.nectech.com>,
>Vern Soehner <vsoehner@nectech.com> wrote:
>>This is causing the infamous 'No space (spool inodes) problem to occur more 
>>and more often
>
>If you're running out of inodes you need to fix that, not work on
>band-aids like removing articles.

Maybe, but maybe not. Articles in control have an average file size 
of < 1 kB, far less than normal articles. So if something with expiring
control articles is wrong, the "out of inode" error will also strike
news servers with a reasonably set inode/size ratio.

Deleting control articles with "find .. " will be the only short term solution
here. expire won't mind.

Then, find out the cause of this accumulation of control messages.
Several thousand control messages per day are normal (this of course
depends on what groups you carry) but 260'000 is ridiculous. One
usually expires control and junk fast, in 1 or 2 days or even less.
make sure you don't honor "Expires:" headers in those. A line like:

   junk,control:A:1:1:1

in expire.ctl should take care of that.

 - Andi Karrer


Re: INN Help! How to purge 'Control' newsgroup.
#6243
Author: Matthew Ward
Date: Wed, 03 Apr 1996 00:00
30 lines
1790 bytes
Andreas Karrer wrote:
> 
> In article <4ju9h1$15r@augusta.math.psu.edu>, Dave Barr wrote:
> >In article <4ju5uo$pkc_002@cosmos.nectech.com>,
> >Vern Soehner <vsoehner@nectech.com> wrote:
> >>This is causing the infamous 'No space (spool inodes) problem to occur more
> >>and more often
> >
> >If you're running out of inodes you need to fix that, not work on
> >band-aids like removing articles.
> [snip]
> Then, find out the cause of this accumulation of control messages.
> Several thousand control messages per day are normal (this of course
> depends on what groups you carry) but 260'000 is ridiculous. One
> usually expires control and junk fast, in 1 or 2 days or even less.
> make sure you don't honor "Expires:" headers in those. A line like:
> 
>    junk,control:A:1:1:1

What's wrong with:

    junk,control:A:0:0:0

??

--
"My people are the peple of the dessert," said T.E. Lawrence,
picking up his fork.    -- /\/\ a tt == Matthew.Ward@gte.net

Re: INN Help! How to purge 'Control' newsgroup.
#6253
Author: Dave Barr
Date: Wed, 03 Apr 1996 00:00
11 lines
907 bytes
In article <4ju5uo$pkc_002@cosmos.nectech.com>,
Vern Soehner <vsoehner@nectech.com> wrote:
>This is causing the infamous 'No space (spool inodes) problem to occur more 
>and more often

If you're running out of inodes you need to fix that, not work on
band-aids like removing articles.

--Dave

Re: INN Help! How to purge 'Control' newsgroup.
#6325
Author: Daryl Gaumer
Date: Thu, 04 Apr 1996 00:00
20 lines
1199 bytes
Vern Soehner (vsoehner@nectech.com) wrote:
: Hi.  Help Please.  

: May I do a 'find . -type f -mtime +n -exec rm {} \; &' command at 
: the /news/spool/news/control directory and if so, what do I have
: to be careful about?  For example... Should I check something to 
: be sure it is okay?

I would use the following:

   find . -type f -mtime +n -print | xargs rm

The 'xargs' command will combine many file names (from the output
of 'find') and fork/exec 'rm' with the list of files.  This is
a lot faster because the '-exec rm {}\;' causes 'find' to
fork/exec 'rm' for every file.

-- darylg

Re: INN Help! How to purge 'Control' newsgroup.
#6366
Author: Alan Brown
Date: Sun, 07 Apr 1996 00:00
32 lines
1640 bytes
In article <3162CDD6.1EDB@mail.gte.net>,
Matthew Ward  <mward@mail.gte.net> wrote:

>What's wrong with:
>
>    junk,control:A:0:0:0

If you want this, set WANT_TRASH = DONT in config.data and recompile.

I keep junk for a day or so, so that I can create alt groups which
are having traffic with the recover.junk perl script.

Here's what I have for control:

control*:A:1:3:10
control.cancel:A:1:1:1
control.newgroup:A:0:10:30
control.rmgroup:A:0:10:30
control.checkgroups:A:0:25:30
control.sendsys:A:0:25:30
control.version:A:0:25:30

That way I can review control messages yet have cancels disappear quickly.

AB

-- 
"But you can't say they have arrived to classify your nervous lies
 What's right, what's not, what may not be. Don't try your tricky tests on me
 For I won't live in fear my friend - that every day could be my end"

Re: INN Help! How to purge 'Control' newsgroup.
#6487
Author: Vern Soehner
Date: Thu, 11 Apr 1996 00:00
51 lines
2492 bytes
In article <3162CDD6.1EDB@mail.gte.net>,
   Matthew Ward <mward@mail.gte.net> wrote:
>Andreas Karrer wrote:
>> 
>> In article <4ju9h1$15r@augusta.math.psu.edu>, Dave Barr wrote:
>> >In article <4ju5uo$pkc_002@cosmos.nectech.com>,
>> >Vern Soehner <vsoehner@nectech.com> wrote:
>> >>This is causing the infamous 'No space (spool inodes) problem to occur 
>> >If you're running out of inodes you need to fix that, not work on
>> >band-aids like removing articles.
>> [snip]
>> 
>>    junk,control:A:1:1:1
>
>What's wrong with:
>
>    junk,control:A:0:0:0
>
Thanks for the reply! I have never seen a comma in an expire.ctl? What exactly
are you saying with 'junk,' prefix? Can one string newsgroups together in an 
expire.ctl line with a comma parameter in the expire.ctl?
 
May I also ask opinion about changing the remember and default expire line
in our news server from this....

/remember/:7
*:A:1:10:32      

to

/remember/:5
*:A:1:3:4

We have a serious inode limitation problem until we change platforms. I need
to do everything I can to help keep space and inode usage to a minimum even if
articles are only around for a few days, as long as news is being fed and
not constantly throttled.  Any advice?  May I edit my active file to block
out the receiving of some of the junk newsgroups?   

These are my own questions and opinions.   Thanks in advance.....
Vern    vsoehner@nectech.com



What does the '32' mean? We have limited inode space which causes our expire
to not run because the news gets throttled. I want to keep the disk and inode
space to a minimum even if it means having expire get rid of articles after
2 days...... What would be the correct format of the fist line in expire.ctl
to do this?    How about *:A:1:

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