🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by Michael Grimm Fri, 20 Feb 2009 17:57
JFTR: ovdb + db46 should be omitted
#80137
Author: Michael Grimm
Date: Fri, 20 Feb 2009 17:57
24 lines
1702 bytes
Hi -

To whom it may concern: db46 seems to have an issue with "runaway"
memory. 

I had it running for two weeks and after 24-30 hours I ran into:

| nnrpd[1234]: OVDB: open: groupinfo->open: Cannot allocate memory

After every crash I did increase set_lg_regionmax significantly in
.../overview/_DB_CONFIG upto 25000000, but, to no avail.

A websearch [1] led me to a report about an assumed memory leak in 
db46. Therefore I upgraded to db47, removed _DB_CONFIG, and haven't
had anymore crashes ever since.

This is on FBSD 7.1 and INN 2.4.5.

Regards,
Michael

[1] Sorry, I didn't record that link, and can't find it anymore :-(
-- 
to let
Re: JFTR: ovdb + db46 should be omitted
#80138
Author: Russ Allbery
Date: Fri, 20 Feb 2009 19:23
28 lines
2088 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:

> To whom it may concern: db46 seems to have an issue with "runaway"
> memory. 
>
> I had it running for two weeks and after 24-30 hours I ran into:
>
> | nnrpd[1234]: OVDB: open: groupinfo->open: Cannot allocate memory
>
> After every crash I did increase set_lg_regionmax significantly in
> .../overview/_DB_CONFIG upto 25000000, but, to no avail.
>
> A websearch [1] led me to a report about an assumed memory leak in 
> db46. Therefore I upgraded to db47, removed _DB_CONFIG, and haven't
> had anymore crashes ever since.
>
> This is on FBSD 7.1 and INN 2.4.5.

BerkeleyDB 4.6 in general had various issues.  You want to be running 4.7
with the current patches.  4.7 seems to be the first really stable,
reliable, and fast version of BerkeleyDB since 4.2 based on experience
with OpenLDAP.

-- 
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: JFTR: ovdb + db46 should be omitted
#80140
Author: Michael Grimm
Date: Fri, 20 Feb 2009 19:56
19 lines
1797 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Michael Grimm <trashcan@odo.in-berlin.de> writes:

>> A websearch [1] led me to a report about an assumed memory leak in
>> db46. Therefore I upgraded to db47, removed _DB_CONFIG, and haven't
>> had anymore crashes ever since.
>
> BerkeleyDB 4.6 in general had various issues.  You want to be running
> 4.7 with the current patches.  4.7 seems to be the first really
> stable, reliable, and fast version of BerkeleyDB since 4.2 based on
> experience with OpenLDAP.

Suggestion: Recommend for the upcoming 2.4.6 and 2.5.0 a BDB >= 4.7.
In http://www.eyrie.org/~eagle/software/inn/docs/ovdb.html its >= 4.4

Regards,
Michael
-- 
to let
Re: JFTR: ovdb + db46 should be omitted
#80139
Author: Julien ÉLIE
Date: Fri, 20 Feb 2009 20:08
18 lines
1983 bytes
Hi Michael,

> Suggestion: Recommend for the upcoming 2.4.6 and 2.5.0 a BDB >= 4.7.
> In http://www.eyrie.org/~eagle/software/inn/docs/ovdb.html its >= 4.4

I am currently writing the changelog for INN 2.4.6.  I will add that
Berkeley 4.7 is supported and also recommended.

The documentation speaks about Berkeley DB 4.4 because INN 2.5.0 does
not compile with previous versions (like 4.3).
Please note that INN 2.4.6 compiles with Berkeley DB 2.6 (yes, 2.6)
See <http://www.eyrie.org/~eagle/software/inn/docs-2.4/ovdb.html> :)

-- 
Julien ÉLIE

« C'est aussi un camp romain corse, Vanitasuanitatum. » 
Re: JFTR: ovdb + db46 should be omitted
#80141
Author: Michael Grimm
Date: Fri, 20 Feb 2009 20:21
19 lines
1863 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

> The documentation speaks about Berkeley DB 4.4 because INN 2.5.0 does
> not compile with previous versions (like 4.3).  

compression + zlib, I know ;-) BTW: Has anybody experience with that
feature w.r.t. a rather large ovdb?

> Please note that INN 2.4.6 compiles with Berkeley DB 2.6 (yes, 2.6)
> See <http://www.eyrie.org/~eagle/software/inn/docs-2.4/ovdb.html> :)

Are there OS' out there that require such old versions any longer? 
If not, wouldn't it be better then to make a clear cut and sync versions
with the next 2.5? No issue for me, I'm just wondering.

Regards,
Michael
-- 
to let
Re: JFTR: ovdb + db46 should be omitted
#80142
Author: Julien ÉLIE
Date: Fri, 20 Feb 2009 21:50
30 lines
2535 bytes
Hi Michael,

> Suggestion: Recommend for the upcoming 2.4.6 and 2.5.0 a BDB >= 4.7.
> In http://www.eyrie.org/~eagle/software/inn/docs/ovdb.html its >= 4.4

I also mentioned that in INSTALL.


>> Please note that INN 2.4.6 compiles with Berkeley DB 2.6 (yes, 2.6)
>> See <http://www.eyrie.org/~eagle/software/inn/docs-2.4/ovdb.html> :)
>
> Are there OS' out there that require such old versions any longer?
> If not, wouldn't it be better then to make a clear cut and sync versions
> with the next 2.5? No issue for me, I'm just wondering.

Starting from INN 2.5.0, there is a clear cut with Berkeley DB 4.4.
Only Berkeley DB 4.4, 4.5, 4.6 and 4.7+ work.

But maybe I did not understand your question (because I thought I had
already said that on my previous mail...).

I do not think we should sync versions and compel people to use 4.7!
Likewise, Perl 5.10.0 is not mandatory (neither does Python 3.0!).

-- 
Julien ÉLIE

« Si les chefs sont de force égale, ils ont le droit de se jeter
  des ballots à la tête ; on dit alors qu'ils sont en ballottage. » (Astérix) 
Re: JFTR: ovdb + db46 should be omitted
#80143
Author: Michael Grimm
Date: Fri, 20 Feb 2009 22:14
34 lines
2459 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

>> Suggestion: Recommend for the upcoming 2.4.6 and 2.5.0 a BDB >= 4.7.
>> In http://www.eyrie.org/~eagle/software/inn/docs/ovdb.html its >= 4.4
>
> I also mentioned that in INSTALL.

That's really fast, congratulations. I have to give kudos to the
developers of INN!

>> Are there OS' out there that require such old versions any longer?
>> If not, wouldn't it be better then to make a clear cut and sync versions
>> with the next 2.5? No issue for me, I'm just wondering.
>
> Starting from INN 2.5.0, there is a clear cut with Berkeley DB 4.4.
> Only Berkeley DB 4.4, 4.5, 4.6 and 4.7+ work.
>
> But maybe I did not understand your question (because I thought I had
> already said that on my previous mail...).

Never mind, I referred to syncing both 2.4.6 and 2.5.0 regarding
recommendations w.r.t. >= db 4.4. But as 2.4.6 seems to be the last of
the 2.4-series a support of db 2.6 and db 3-x series will be history
anyway ;-)

> I do not think we should sync versions and compel people to use 4.7!
> Likewise, Perl 5.10.0 is not mandatory (neither does Python 3.0!).

ACK

Regards,
Michael
-- 
to let
Re: JFTR: ovdb + db46 should be omitted
#80154
Author: Julien ÉLIE
Date: Sun, 22 Feb 2009 17:53
48 lines
3345 bytes
Hi Michael,

> compression + zlib, I know ;-) BTW: Has anybody experience with that
> feature w.r.t. a rather large ovdb?

Trying to find out who wrote the zlib support for ovdb (so as to put it
in the changelog for INN 2.5.0), I found out that mail which would
be of interest:

    https://lists.isc.org/pipermail/inn-workers/2004-June/013106.html


[Heath Kehoe]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I've just committed to CURRENT new code that enables compression
of overview records in ovdb.  So far, my testing has shown that
this compression is a big win for ovdb, mostly because the average
record size is smaller which increases the average keys-per-page
in the BerkeleyDB Btree databases, thus improving performance
(see http://www.sleepycat.com/docs/ref/am_conf/intro.html ).
Only records that are longer than 600 bytes get compressed.

The change is made in a way to insure minimal disruption.
Compression defaults to off, and must be enabled using the
'compress' setting in ovdb.conf.  You can enable compression
without having to rebuild the database, in which case new records
will be compressed but existing records will remain the same.
To gain immediate benefit, you'll have to delete the databases
and rebuild them using makehistory.

If you don't enable compression the database will remain
backward-compatible with older versions of ovdb.

On my server with about 21 million overview records, after
rebuilding the databases with compression enabled, the overview
directory went from around 20 GB to 12.6 GB, and the expireover
run went from 6 hours to 2 hours.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


That seems great!

-- 
Julien ÉLIE

« Quod sis, esse uelis nihilque malis ;
  Summum nec metuas diem nec optes. » (Martial)
Re: JFTR: ovdb + db46 should be omitted
#80155
Author: Michael Grimm
Date: Sun, 22 Feb 2009 18:45
23 lines
2073 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

>> compression + zlib, I know ;-) BTW: Has anybody experience with that
>> feature w.r.t. a rather large ovdb?
>
>     https://lists.isc.org/pipermail/inn-workers/2004-June/013106.html
> [Heath Kehoe]
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> On my server with about 21 million overview records, after
> rebuilding the databases with compression enabled, the overview
> directory went from around 20 GB to 12.6 GB, and the expireover
> run went from 6 hours to 2 hours.
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> That seems great!

Ideed! Well, I have to migrate to 2.5.0 soon ;-) That will give me room
for more articles ...

Regards,
Michael
-- 
to let
Re: JFTR: ovdb + db46 should be omitted
#80156
Author: rone
Date: Sun, 22 Feb 2009 21:53
14 lines
1691 bytes
In article <87prhcc3q7.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>BerkeleyDB 4.6 in general had various issues.  You want to be running 4.7
>with the current patches.  4.7 seems to be the first really stable,
>reliable, and fast version of BerkeleyDB since 4.2 based on experience
>with OpenLDAP.

Forgive the off-topic digression, but does OpenLDAP finally work with
BDB 4.7?  When i touched it sometime last year, it could only handle
4.6 (and CentOS ships with 4.3, which OpenLDAP hates... grrr).

rone
-- 
MIS EN BOUTEILLE AU DOMAINE                                    <rone@ennui.org>
Re: JFTR: ovdb + db46 should be omitted
#80158
Author: Russ Allbery
Date: Sun, 22 Feb 2009 22:14
21 lines
2045 bytes
"rone" <^*&#$@ennui.org> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> BerkeleyDB 4.6 in general had various issues.  You want to be running
>> 4.7 with the current patches.  4.7 seems to be the first really stable,
>> reliable, and fast version of BerkeleyDB since 4.2 based on experience
>> with OpenLDAP.

> Forgive the off-topic digression, but does OpenLDAP finally work with
> BDB 4.7?  When i touched it sometime last year, it could only handle
> 4.6 (and CentOS ships with 4.3, which OpenLDAP hates... grrr).

Yup, current releases work with 4.7.  You need three patches from Oracle
for correct BDB 4.7 behavior.  I'm not sure exactly how those are
distributed, but I think they're on the distribution pages.

-- 
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: JFTR: ovdb + db46 should be omitted
#80157
Author: Julien ÉLIE
Date: Sun, 22 Feb 2009 22:34
25 lines
2365 bytes
Hi Russ,

> Yup, current releases work with 4.7.  You need three patches from Oracle
> for correct BDB 4.7 behavior.  I'm not sure exactly how those are
> distributed, but I think they're on the distribution pages.

The three patches for Berkeley DB 4.7.25 are on this page:

    http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch.4.7.25.html

The link to this page is on the download page:

    http://www.oracle.com/technology/software/products/berkeley-db/index.html

(You have to click on the "3" in "Requires log file format upgrade. change log - patches (3)"!
Not easy to spot...)

-- 
Julien ÉLIE

« If your dog is barking at the back door and your wife yelling
  at the frontdoor, who do you let in first?
  The dog of course... at least he'll shut up after you
  let him in! » 
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