🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56988

Re: Overview in ovdb uses very much disk space

#56988
From: 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
Technical Details
Message-ID: <a5ma8t$fpr$1@remco3.remconet>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!a77196.upc-a.chello.NL!not-for-mail
References: <pan.2001.12.06.20.12.45.617064.16599@remco.hn.org> <ylofi95lk4.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <a5ma8t$fpr$1@remco3.remconet>
Subject: Re: Overview in ovdb uses very much disk space
Date: Thu, 28 Feb 2002 22:17:01 +0000
From: remco@remco.hn.org (Remco Blaakmeer)
References: <pan.2001.12.06.20.12.45.617064.16599@remco.hn.org> <ylofi95lk4.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!a77196.upc-a.chello.NL!not-for-mail
Newsgroups: news.software.nntp
Organization: Remco's news servers
Lines: 55
Reply-To: j.blaakmeer@chello.nl (Remco Blaakmeer)
NNTP-Posting-Host: a77196.upc-a.chello.nl (62.163.77.196)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: fu-berlin.de 1014934624 9132007 62.163.77.196 (16 [101010])
X-Newsreader: knews 1.0b.1