Performance and memory pb with INN 2.3

Laurent Frigault lfrigault at teaser.fr
Tue Aug 1 15:32:56 UTC 2000


Hi,

I have found a big memory and performance problem with the LISTGROUP
primitive (used by Forte Agent with certain configuration and probably
by other software).

The problem, is that this primitive answers very slowly under 2.3 and
eats a lots of memory.

The following perl script can reproduce the problem (nnrpd grow to more
than 130Mb on my server :-( )
===================================================================
#!/usr/bin/perl -w

use strict;

use News::NNTPClient;

$|=1;

my $SERVER = "feed.teaser.net";

my $c = new News::NNTPClient($SERVER,119,0);
$c->mode_reader();

my @res;

@res = $c->list("active");

foreach (@res)
{
        chomp;
        /^(\S*)\s/;
        $_ = $1;
        next if $_ !~ /^comp\./;

        my ($first,$last)=$c->group("$_");
        print "$$ \t".($last-$first)."\t$_";
        $c->xover($first,$last);
        my @res2=$c->listgroup($_);
        print "\tdone";
        print "\n";
}

===================================================================

my configuration: inn-BETA-20000801 under FreeBSD 3.5-STABLE
./configure  --with-perl --with-db-dir=/news/db --with-spool-dir=/news --with-tmp-path=/news/tmp --with-largefiles --with-sendmail=/usr/sbin/sendmail

using trash, CNFS, timecaf and overview tradindexed

I have reproduce the problem under linux 2.2.14 and INN 2.3.0 20000407
CVS prerelease

using trash, timecaf and overview tradindexed

The same script run against INN 2.2 under FreeBSD 3.3-STABLE .
using trad spool and tradindexed runs several time more quickly and the
memory footprint of the nnrpd process does not grow over 5 Mb.


So I think this problem is new to 2.3.

Is there a way to fix this or to disable the LISTGROUP primitive ?

Regards.

Lolo
-- 
Laurent Frigault | <url:http://www.teaser.fr/~lfrigault>
- ooh, votre serveur NT ? ah, désolé, je nettoyais ma RedHat et le
  coup est parti tout seul.
-+- OG in: Guide du Cabaliste Usenet - Bien nettoyer sa RedHat



More information about the inn-workers mailing list