🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
15 messages
15 total messages Started by tmgeorge Fri, 10 Feb 2006 15:48
fastrm core dumping
#73189
Author: tmgeorge
Date: Fri, 10 Feb 2006 15:48
38 lines
2881 bytes
We just noticed a few days ago that articles have not been expired &
subsequently deleted since January 1st - fastrm has been core dumping.
Things had worked fine prior to that for years and nothing has changed.

Yesterday, I commented it out of expirerm and we used "xargs rm"
instead.  Ran it last evening (which took over 5 hours) however, no
results.  i.e. nothing expired nor deleted.

I'm very new to inn so please bear with me...  I'm reading everything I
can find on inn however, I'm stuck...  We've tried a few things but
with the script taking 5+ hours to run, we're now getting short on time
due to the disk being practically full now (down to 47 meg available).
We've turned off our infeed for now.

Here's our expire.log from last night:

expireover start Thu Feb  9 22:00:32 AST 2006:
( -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
    Article lines processed    10559
    Articles dropped               1
    Overview index dropped         1
expireover end Fri Feb 10 03:08:27 AST 2006
lowmarkrenumber begin Fri Feb 10 03:08:27 AST 2006:
(/var/log/news/expire.lowmark)
lowmarkrenumber end Fri Feb 10 03:08:31 AST 2006
        expirerm start Fri Feb 10 03:08:31 AST 2006
        expirerm end Fri Feb 10 03:08:32 AST 2006
expire begin Fri Feb 10 03:09:02 AST 2006: (-v1)
    Article lines processed  7750917
    Articles retained        7750916
    Entries expired                1
    Old entries dropped         7429
    Old entries retained      363699
expire end Fri Feb 10 03:41:46 AST 2006
        all done Fri Feb 10 03:41:46 AST 2006

Any suggestions/advice would be *greatly* appreciated!
Re: fastrm core dumping
#73194
Author: Russ Allbery
Date: Fri, 10 Feb 2006 17:19
28 lines
2345 bytes
tmgeorge <tammy.george@gmail.com> writes:

> We just noticed a few days ago that articles have not been expired &
> subsequently deleted since January 1st - fastrm has been core dumping.
> Things had worked fine prior to that for years and nothing has changed.

> Yesterday, I commented it out of expirerm and we used "xargs rm"
> instead.  Ran it last evening (which took over 5 hours) however, no
> results.  i.e. nothing expired nor deleted.

expire puts a list of files to remove in expire.list.  Did you remove
those files?

If fastrm hasn't been finishing successfully, you've stranded a lot of
files on disk that should have been expired and weren't, and INN has
already purged its knowledge of them so it doesn't know to try to remove
them again.  You're going to have to do something with find -mtime to
track down articles that are too old and delete them manually.

It's strange that fastrm would suddenly start segfaulting without you
having changed anything at all on the system (or start segfaulting at all;
it's a fairly simple program).

-- 
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: fastrm core dumping
#73195
Author: labradort
Date: Fri, 10 Feb 2006 18:02
7 lines
1552 bytes
Hi,

Thanks for the tip.  That could be it.  Is there a way to target
specific newsgroups
or top level heirarchies?  We'd like to retain local newgroups if
possible.
Re: fastrm core dumping
#73197
Author: Russ Allbery
Date: Fri, 10 Feb 2006 18:10
14 lines
1687 bytes
labradort <donald.teed@gmail.com> writes:

> Thanks for the tip.  That could be it.  Is there a way to target
> specific newsgroups or top level heirarchies?  We'd like to retain local
> newgroups if possible.

Well, you can run find wherever you want, on any portion of your spool you
want.  I guess I'm not sure what you're asking.

-- 
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: fastrm core dumping
#73200
Author: labradort
Date: Fri, 10 Feb 2006 19:15
11 lines
1855 bytes
Hi,

In random peeks of the individual article files under the spool area, I
didn't
see anyway of knowing whether a directory path like 67/4f
is associated with any particular news hierarchy.   How could we
target only directories associated with public newsgroups we wish
to purge, while leaving old articles in local newsgroups?

We are using cnfs if that matters.
Re: fastrm core dumping
#73201
Author: Russ Allbery
Date: Fri, 10 Feb 2006 19:40
23 lines
2307 bytes
labradort <donald.teed@gmail.com> writes:

> In random peeks of the individual article files under the spool area, I
> didn't see anyway of knowing whether a directory path like 67/4f is
> associated with any particular news hierarchy.  How could we target only
> directories associated with public newsgroups we wish to purge, while
> leaving old articles in local newsgroups?

> We are using cnfs if that matters.

Er, if you have directory paths like 67/4f, you're not using CNFS.  You're
using timehash or timecaf.  And for those, it's going to be hard; you're
going to have to build a list of old files and the filter out the ones
that have references to your local newsgroups.

If you were using CNFS, this wouldn't be an issue, since CNFS is
self-expiring.

-- 
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: fastrm core dumping
#73203
Author: labradort
Date: Fri, 10 Feb 2006 20:57
77 lines
3957 bytes
Russ Allbery wrote:
> labradort <donald.teed@gmail.com> writes:
>
> > In random peeks of the individual article files under the spool area, I
> > didn't see anyway of knowing whether a directory path like 67/4f is
> > associated with any particular news hierarchy.  How could we target only
> > directories associated with public newsgroups we wish to purge, while
> > leaving old articles in local newsgroups?
>
> > We are using cnfs if that matters.
>
> Er, if you have directory paths like 67/4f, you're not using CNFS.  You're
> using timehash or timecaf.  And for those, it's going to be hard; you're
> going to have to build a list of old files and the filter out the ones
> that have references to your local newsgroups.
>
> If you were using CNFS, this wouldn't be an issue, since CNFS is
> self-expiring.
Hi,

Ya, I read that somewhere.  Made me wonder why we are having troubles
expiring - it only works on our localgroups if that is true.

I believe we are using CNFS.  I see this in storage.conf :

method timehash {
        newsgroups: localnameobfuscated.*
        class: 0
}

method cnfs {
        newsgroups: control*
        class: 1
        size: 0,0
        options: control
}
method cnfs {
        newsgroups: *
        class: 3
        size: 0,0
        options: articles
}


In inn.conf we have this under the Article Storage section:
# Article Storage

cnfscheckfudgesize:     0
enableoverview:         true
groupbaseexpiry:        true
mergetogroups:          true
overcachesize:          15
ovgrouppat:
storeonxref:            true
useoverchan:            false
wireformat:             false
xrefslave:              false

We have 4 8GB buffer files mentioned in cycbuff.conf - are
they the article storage for CNFS?  If so, these partitions
are at 100% capacity.  From the INSTALL file notes,
that sounds normal.

I also did the grephistory search for some Message IDs I found in
the oldest items in 3 non-local newsgroups and they were all in the
history,
so thus far it doesn't look like a case of article files orphaned from
history.

This has been a crash course on inn for me, in the middle
of fighting a fire, so this is why there is some confusion.

I now think we are actually dealing with a
runaway use of local newsgroups.

--Donald
Re: fastrm core dumping
#73204
Author: Szymon Sokół
Date: Fri, 10 Feb 2006 21:07
21 lines
2679 bytes
On 10 Feb 2006 12:57:25 -0800, labradort wrote:

> Ya, I read that somewhere.  Made me wonder why we are having troubles
> expiring - it only works on our localgroups if that is true.
> 
> I believe we are using CNFS.  I see this in storage.conf :
> 
> method timehash {
>         newsgroups: localnameobfuscated.*
[----]
> method cnfs {
>         newsgroups: *
[----]
Apparently, you keep all BUT local groups in CNFS, and local groups in
timehash. So only local groups need expiring.

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                 B
Computer Center, AGH - University of Science and Technology, Cracow, Poland  O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982  F
Free speech includes the right not to listen, if not interested -- Heinlein  H
Re: fastrm core dumping
#73205
Author: Jeffrey M. Vinocur
Date: Fri, 10 Feb 2006 21:51
46 lines
2500 bytes
In article <1139605045.305333.115510@g14g2000cwa.googlegroups.com>,
labradort <donald.teed@gmail.com> wrote:
>
>method timehash {
>        newsgroups: localnameobfuscated.*
>        class: 0
>}

As you say, you're using timehash for local groups only, and CNFS
for everything else.


>We have 4 8GB buffer files mentioned in cycbuff.conf - are
>they the article storage for CNFS?  If so, these partitions
>are at 100% capacity.  From the INSTALL file notes,
>that sounds normal.

Yes, this is normal.


>I also did the grephistory search for some Message IDs I found
>in the oldest items in 3 non-local newsgroups and they were all
>in the history, so thus far it doesn't look like a case of
>article files orphaned from history.

Well, those articles are stored in CNFS, so they never would be
marked for fastrm and thus aren't involved in your problem.

Also, even if you tried this with articles from local groups, it
sounds like you're getting the oldest articles from your
newsreader, which means you're only getting ones that INN knows
about.

Try using `find` to identify the oldest articles on disk (as
timehash files), and seeing if those are in history.


>I now think we are actually dealing with a runaway use of local
>newsgroups.

That very well could be.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: fastrm core dumping
#73211
Author: labradort
Date: Sat, 11 Feb 2006 03:28
13 lines
1957 bytes
Hi,

Hey, thanks for the follow ups.  I've done some disk hog hunting and
the problem is really in the overview files.  There are over 30 ov*
files of between 150MB to 300MB roughly, eating up 7/8's of the
partition.

We are processing the expireover option in the news.daily cron job
and I can see that these files are all recently touched by that.

Is there anything more we can do to prune or purge data from the
overview?
Re: fastrm core dumping
#73210
Author: labradort
Date: Sat, 11 Feb 2006 04:02
14 lines
2429 bytes
Reading man pages on this.  In several places I see the hint, such as:
       WARNING: If you're trying to rebuild the overview
       database, be sure to delete or zero out the existing
       database before you start for the best results.  Other-
       wise, you may end up with problems like out-of-order
       overview entries, excessively large overview buffers, and
       the like.

Nothing specific is ever mentioned on what files are to be removed.
I'm thinking the overview DB is the series of files in
overview directory starting with ov and ending with a number.
Is that correct and sufficient?  Are there other files
that are considered to be part of the overview DB?
Re: fastrm core dumping
#73209
Author: Russ Allbery
Date: Sat, 11 Feb 2006 04:05
24 lines
2423 bytes
labradort <donald.teed@gmail.com> writes:

> Reading man pages on this.  In several places I see the hint, such as:

>        WARNING: If you're trying to rebuild the overview database, be
>        sure to delete or zero out the existing database before you start
>        for the best results.  Otherwise, you may end up with problems
>        like out-of-order overview entries, excessively large overview
>        buffers, and the like.

> Nothing specific is ever mentioned on what files are to be removed.  I'm
> thinking the overview DB is the series of files in overview directory
> starting with ov and ending with a number.  Is that correct and
> sufficient?  Are there other files that are considered to be part of the
> overview DB?

Hm... starting with ov and ending in a number?  What overview method are
you using?

-- 
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: fastrm core dumping
#73212
Author: labradort
Date: Sat, 11 Feb 2006 04:26
2 lines
1829 bytes
ovdb is what I see in inn.conf
Re: fastrm core dumping
#73213
Author: Russ Allbery
Date: Sat, 11 Feb 2006 05:15
30 lines
2730 bytes
labradort <donald.teed@gmail.com> writes:

> ovdb is what I see in inn.conf

In that case, your overview is being stored in a Berkeley DB database,
which is basically an opaque object unless you're deleting all of it or
you're diving in by writing some code.  However, expireover can
selectively expire individual groups:

    Normally expireover is invoked from news.daily(8), which handles such
    things as processing the rmfile and lowmarkfile if necessary.  Some-
    times it's convenient to manually expire a particular newsgroup, how-
    ever.  This can be done with a command like:

        echo example.test | expireover -f - -Z /usr/local/news/tmp/lowmark
        ctlinnd lowmark /usr/local/news/tmp/lowmark

But exactly how to best reduce the space it takes up is something I'm not
entirely sure of.  One thing to check for, though, is if you have a bunch
of log.* files; if so, you may have old processes around holding open old
log files that could otherwise be removed.

Note that ovdb also consumes more space than any of the other overview
methods.

-- 
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: fastrm core dumping
#73216
Author: labradort
Date: Sat, 11 Feb 2006 14:11
31 lines
3000 bytes
Hi,

Yes, our cron runs news.daily, but there were core dumps happening
for awhile - possibly during the lowmark or expireover part of the
script.
We don't have core dumps right now since switching from fastrm.
The expireover portion in the news.daily log reports nothing to delete.

I have read other items in this group about overview database growing
huge (one user reported 70 GB) and then one needs to blow it away and
rebuild.  Ours has grown rapidly during the period we had a core dump
every night (yes, the core files are rm'ed) so I'd suspect we have some
kind of bloat in there.

The makehistory man page gives options for rebuilding the overview DB
but doesn't say exactly how to remove the overview DB.  I'm seeking
better information so we can run makehistory and rebuild overview DB.

I'm thinking 'rm ov*' in the overview directory
but my guess could be incomplete.  What about the files
named like  __db.00* , or group.aliases, groupinfo ?  Where does the
"overview DB" start and stop in terms of what files to delete for a
rebuild?

I know lots of people have done it, but no one I've seen has documented
exactly what they blew away for this maintenance.

Regards,

--Donald Teed
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