🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Remco Blaakmeer Thu, 06 Dec 2001 19:12
Overview in ovdb uses very much disk space
#55518
Author: Remco Blaakmeer
Date: Thu, 06 Dec 2001 19:12
117 lines
3984 bytes
Hi,

I am running INN 2.3.2 at home, carrying some local groups and sucking
some "official" groups from my ISP's news server. This news server carries
84 groups with tradspool storage, totalling 1930 MB in 358389 articles.
Until recently, I used the tradindexed overview storage method. This way,
overview data was about 140 MB. Recently, I decided to try out ovdb. I
shut down inn, removed all overview data, edited inn.conf and started
makehistory. This ran out of diskspace. Then I symlinked <pathoverview> to
a directory on another partition and tried again. This time it succeeded.
Soon, I discovered the reason makehistory ran out of diskspace. The new
overview files consumed over 800 MB.

This is the output from "du *" in <pathoverview> (numbers are kB):
8       __db.001
10016   __db.002
44      __db.003
212     __db.004
8       __db.005
12      __db_log.share
8       __db_txn.share
8       groupaliases
12      groupsbyname
8       groupstats
10256   log.0000000001
10256   log.0000000002
10256   log.0000000003
10256   log.0000000004
10256   log.0000000005
10256   log.0000000006
10256   log.0000000007
10256   log.0000000008
10256   log.0000000009
10252   log.0000000010
10256   log.0000000011
10252   log.0000000012
10256   log.0000000013
10256   log.0000000014
10256   log.0000000015
10256   log.0000000016
10256   log.0000000017
10256   log.0000000018
10256   log.0000000019
10256   log.0000000020
10256   log.0000000021
10256   log.0000000022
10256   log.0000000023
10256   log.0000000024
10252   log.0000000025
10252   log.0000000026
10256   log.0000000027
10256   log.0000000028
10256   log.0000000029
10256   log.0000000030
10252   log.0000000031
10252   log.0000000032
10256   log.0000000033
10252   log.0000000034
10256   log.0000000035
10256   log.0000000036
10256   log.0000000037
10256   log.0000000038
10256   log.0000000039
10256   log.0000000040
10252   log.0000000041
10256   log.0000000042
10256   log.0000000043
10256   log.0000000044
10256   log.0000000045
10256   log.0000000046
10256   log.0000000047
10252   log.0000000048
10256   log.0000000049
7576    log.0000000050
2540    ov00000
1540    ov00001
260     ov00002
220     ov00003
260     ov00004
3964    ov00005
644     ov00006
1348    ov00007
1092    ov00008
644     ov00009
14068   ov00010
16      ov00011
1412    ov00012
548     ov00013
1436    ov00014
16      ov00015
4524    ov00016
4332    ov00017
16      ov00018
5252    ov00019
2396    ov00020
6044    ov00021
3212    ov00022
836     ov00023
3212    ov00024
124     ov00025
5364    ov00026
247616  ov00027
996     ov00028
48      ov00029
484     ov00030
404     ov00031
8       version

Why does my overview data in ovdb storage consume more than five times the
storage it needs in tradindexed storage? Any pointers to useful
documentation (as well as plain answers) would be welcome.

Remco

-- 
remco:  19:45:01 up 1 day,  2:31,  4 users,  load average: 1.47, 1.50, 1.44
Re: Overview in ovdb uses very much disk space
#56984
Author: Russ Allbery
Date: Thu, 28 Feb 2002 21:43
34 lines
2834 bytes
Remco Blaakmeer <remco.usenet@remco.hn.org> writes:

> I am running INN 2.3.2 at home, carrying some local groups and sucking
> some "official" groups from my ISP's news server. This news server
> carries 84 groups with tradspool storage, totalling 1930 MB in 358389
> articles.  Until recently, I used the tradindexed overview storage
> method. This way, overview data was about 140 MB. Recently, I decided to
> try out ovdb. I shut down inn, removed all overview data, edited
> inn.conf and started makehistory. This ran out of diskspace. Then I
> symlinked <pathoverview> to a directory on another partition and tried
> again. This time it succeeded.  Soon, I discovered the reason
> makehistory ran out of diskspace. The new overview files consumed over
> 800 MB.

It looks to me like part of the problem is mostly with the Berkeley DB
logs.  This is a standard problem when doing an import into a Berkeley DB
database; I see similar complaints on the SVN mailing list.  I'm pretty
sure you're supposed to be able to delete the older logs, but I forget the
magic to determine what logs you can delete.

I'm not sure on the rest.  tradindexed is pretty efficient in terms of
disk space usage, though, and it wouldn't surprise me if a real database
just takes up more space.  (The overhead for tradindexed over the pure
overview data is an index file for each newsgroup that takes up space
equal to the number of articles in the group times ~148 bytes and a group
index file which, for the number of groups you have, is probably going to
be the minimal size of well under 1MB.)

-- 
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: Overview in ovdb uses very much disk space
#56988
Author: Remco Blaakmeer
Date: Thu, 28 Feb 2002 22:17
56 lines
4245 bytes
On Thu, 28 Feb 2002 21:43:55 GMT, Russ Allbery <rra@stanford.edu> wrote:
> Remco Blaakmeer <remco.usenet@remco.hn.org> writes:
> 
>> I am running INN 2.3.2 at home, carrying some local groups and sucking
>> some "official" groups from my ISP's news server. This news server
>> carries 84 groups with tradspool storage, totalling 1930 MB in 358389
>> articles.  Until recently, I used the tradindexed overview storage
>> method. This way, overview data was about 140 MB. Recently, I decided to
>> try out ovdb. I shut down inn, removed all overview data, edited
>> inn.conf and started makehistory. This ran out of diskspace. Then I
>> symlinked <pathoverview> to a directory on another partition and tried
>> again. This time it succeeded.  Soon, I discovered the reason
>> makehistory ran out of diskspace. The new overview files consumed over
>> 800 MB.
> 
> It looks to me like part of the problem is mostly with the Berkeley DB
> logs.  This is a standard problem when doing an import into a Berkeley DB
> database; I see similar complaints on the SVN mailing list.  I'm pretty
> sure you're supposed to be able to delete the older logs, but I forget the
> magic to determine what logs you can delete.
> 
> I'm not sure on the rest.  tradindexed is pretty efficient in terms of
> disk space usage, though, and it wouldn't surprise me if a real database
> just takes up more space.  (The overhead for tradindexed over the pure
> overview data is an index file for each newsgroup that takes up space
> equal to the number of articles in the group times ~148 bytes and a group
> index file which, for the number of groups you have, is probably going to
> be the minimal size of well under 1MB.)

In the mean time, I have discovered a lot about this ovdb problem I had.
I am running Debian GNU/Linux and using the Debian-supplied inn2
package. Apparently, this package wasn't linked properly to libdb3,
which resulted in all kinds of problems. One of them was, that
recovering the database after a crash took forever (or significantly
longer than rebuilding it entirely and longer than I cared to wait).
Recently there has been a new patch to this package, which has solved a
lot of these problems. Old log files are deleted automatically now, so
the diskspace needed for overview has reduced a lot. My ovdb overview
database is currently at 447MB.

One of the reasons for continuing to use ovdb, is that makehistory seems
to be broken for tradindexed overview. I have heard some rumors about
that in this news group and I have encountered some strange things
myself, too.

When rebuilding the entire overview database, makehistory sometimes
gives a lot of errors like this in the syslog:
Dec  1 17:51:10 remco makehistory[6618]: tradindexed: repacking group comp.os.linux.networking, offset 5562
Dec  1 17:51:10 remco makehistory[6618]: tradindexed: packgroup cant write to /var/spool/news/overview/c/o/l/n/comp.os.linux.networking-NEW.IDX: Bad address

This results in corrupt and/or incomplete overview files.

Remco
-- 
remco3:  22:55:01 up 4 days, 11:05,  8 users,  load average: 2.16, 2.11, 2.10
Re: Overview in ovdb uses very much disk space
#56991
Author: Russ Allbery
Date: Thu, 28 Feb 2002 22:36
26 lines
2302 bytes
Remco Blaakmeer <remco@remco.hn.org> writes:

> One of the reasons for continuing to use ovdb, is that makehistory seems
> to be broken for tradindexed overview. I have heard some rumors about
> that in this news group and I have encountered some strange things
> myself, too.

> When rebuilding the entire overview database, makehistory sometimes
> gives a lot of errors like this in the syslog:
> Dec  1 17:51:10 remco makehistory[6618]: tradindexed: repacking group comp.os.linux.networking, offset 5562
> Dec  1 17:51:10 remco makehistory[6618]: tradindexed: packgroup cant write to /var/spool/news/overview/c/o/l/n/comp.os.linux.networking-NEW.IDX: Bad address

> This results in corrupt and/or incomplete overview files.

In order to figure out what's going on here, I'd need to use some of the
debugging tools that I'm working on writing right now.  I don't see
anything obviously wrong with the code, so I don't have any sort of fix.

I'm actively working on this area, though.

-- 
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: Overview in ovdb uses very much disk space
#56995
Author: Remco Blaakmeer
Date: Thu, 28 Feb 2002 23:11
19 lines
1915 bytes
On Thu, 28 Feb 2002 22:36:52 GMT, Russ Allbery <rra@stanford.edu> wrote:
> Remco Blaakmeer <remco@remco.hn.org> writes:
> 
>> [makehistory seems to be broken for tradindexed overview]
> 
> In order to figure out what's going on here, I'd need to use some of the
> debugging tools that I'm working on writing right now.  I don't see
> anything obviously wrong with the code, so I don't have any sort of fix.
> 
> I'm actively working on this area, though.

Currently, ovdb overview works fine for me. My news server works, so I
won't need the fix anytime soon. Still, I'd be happy to help debugging
this problem.

Remco
-- 
remco3:  00:00:01 up 4 days, 12:10,  8 users,  load average: 2.01, 2.05, 2.04
Re: Overview in ovdb uses very much disk space
#56996
Author: Ben Rosengart
Date: Thu, 28 Feb 2002 23:36
23 lines
1940 bytes
In article <ylofi95lk4.fsf@windlord.stanford.edu>, Russ Allbery wrote:
> 
> It looks to me like part of the problem is mostly with the Berkeley DB
> logs.  This is a standard problem when doing an import into a Berkeley DB
> database; I see similar complaints on the SVN mailing list.  I'm pretty
> sure you're supposed to be able to delete the older logs, but I forget the
> magic to determine what logs you can delete.

You can find this in $PATHBIN/dbprocs.  This script calls db_archive,
which is part of the Berkeley DB distribution.  There's no man page,
but the program is documented here:

http://www.sleepycat.com/docs/utility/db_archive.html

"The db_archive utility writes the pathnames of log files that are
 no longer in use (for example, no longer involved in active
 transactions), to the standard output, one pathname per line."

-- 
Ben Rosengart     (212) 741-4400 x215

"For values of 'whatever'."
Re: Overview in ovdb uses very much disk space
#58495
Author: Ben Rosengart
Date: Fri, 26 Apr 2002 22:21
23 lines
1855 bytes
In article <pan.2001.12.06.20.12.45.617064.16599@remco.hn.org>,
Remco Blaakmeer wrote:
> 
> Why does my overview data in ovdb storage consume more than five times the
> storage it needs in tradindexed storage? Any pointers to useful
> documentation (as well as plain answers) would be welcome.

You should only have one or two of the log.* files.  They're supposed
to be removed automatically by dbprocs, which is a long-running shell
script started and stopped by rc.news.  (Look for the part that calls
"db_archive".)

So my guess is that for some reason, dbprocs isn't running on your
system, or it's not functioning correctly.

I hope this helps.

-- 
Ben Rosengart     (212) 741-4400 x215

1. A robot may not injure entertainment industry profits, or, through inaction,
   allow entertainment industry profits to come to harm.     --Matt McLeod
Re: Overview in ovdb uses very much disk space
#58498
Author: Remco Blaakmeer
Date: Sat, 27 Apr 2002 07:51
26 lines
2248 bytes
On Fri, 26 Apr 2002 22:21:01 GMT, Ben Rosengart <br+nsn@panix.com> wrote:
> In article <pan.2001.12.06.20.12.45.617064.16599@remco.hn.org>,
> Remco Blaakmeer wrote:
>> 
>> Why does my overview data in ovdb storage consume more than five times the
>> storage it needs in tradindexed storage? Any pointers to useful
>> documentation (as well as plain answers) would be welcome.
> 
> You should only have one or two of the log.* files.  They're supposed
> to be removed automatically by dbprocs, which is a long-running shell
> script started and stopped by rc.news.  (Look for the part that calls
> "db_archive".)
> 
> So my guess is that for some reason, dbprocs isn't running on your
> system, or it's not functioning correctly.
> 
> I hope this helps.

The message you replied to, is an old message reposted by accident. The
problem was caused by db3 being used for overview and db2 utilities
being used for cleaning up the log files. This has since been corrected.

Remco
-- 
remco3:  09:45:01 up 2 days,  8:39,  4 users,  load average: 2.04, 2.03, 2.00
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