🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Christoph Biedl Mon, 05 Jan 2004 21:50
[INN 2.4] experiences and article rejection
#67627
Author: Christoph Biedl
Date: Mon, 05 Jan 2004 21:50
43 lines
3067 bytes
A few day ago I managed to crash the INN on my computer, so I took the
opportunity to upgrade from Debian woody to sarge and also to INN
2.4.0+20030912

impression 1: makehistory 2.4.0 didn't succeed on the remainders of the
2.3.x crash, but instead of segfaulting immediatly it took about ten
seconds where it ate all the memory and segfaultet then. OK, clean buffers
and overview and re-feed from the primary backup.

impression 2: slow. I admit my P-166 notebook isn't bleeding edge
technology but a drop in the rate of accepting articles from 80 kb/sec
down to 30 kb/sec is rather a shock.

impression 3: A few articles[1] in asr were not accepted any longer but
caused a '437 Unapproved for "alt.sysadmin.recovery"' error message
instead.  But they actually do carry that header - or, more precisely,
they carry it twice which made no problems in 2.3.x but causes trouble in
2.4.0 if I understand innd/art.c correctly:

|  Approved = HDR_FOUND(HDR__APPROVED);
with
| #define HDR_FOUND(_x)           (hc[(_x)].Length > 0)
and
|  if (hc->Length > 0) {
|    /* duplicated */
|    hc->Length = -1;
|  }

as "Approved:" is considered a "system header" which appearently should
(SHOULD? MUST?) appear only once in the header.  At a quick glance I didn't
find an explicit explicit rule for that in RfC 1036 and usefor although it
seems reasonable.  However, multiple headers happen in the wild and these
articles will be hidden to your users if your server is running INN 2.4.
Call it a LART but you should be aware of that.

As far as I can see it is not easy to work around that situation (if you
want to). But for those who are more acquainted with the INN sources: Is
it possible to generate a less missleading error message?

	Christoph

[1] <6jvevvch2pbfhhjb9p2hqjlas6n4s4c1e1@4ax.com> and similar. They didn't
    make it to Google. Guess why
Re: [INN 2.4] experiences and article rejection
#67629
Author: Russ Allbery
Date: Mon, 05 Jan 2004 22:03
25 lines
2369 bytes
Christoph Biedl <cbiedl@gmx.de> writes:

> impression 2: slow. I admit my P-166 notebook isn't bleeding edge
> technology but a drop in the rate of accepting articles from 80 kb/sec
> down to 30 kb/sec is rather a shock.

What storage and overview methods are you using?  tradindexed is much more
careful about writing data back to disk to be more robust, but maybe
that's causing the performance penalty.

> impression 3: A few articles[1] in asr were not accepted any longer but
> caused a '437 Unapproved for "alt.sysadmin.recovery"' error message
> instead.  But they actually do carry that header - or, more precisely,
> they carry it twice which made no problems in 2.3.x but causes trouble
> in 2.4.0 if I understand innd/art.c correctly:

Ah, thank you for the diagnosis!  I've been wondering for a while what was
causing that, but hadn't tracked it down.  If 2.3.x accepted duplicated
headers, maybe 2.4.x should as well.

-- 
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: [INN 2.4] experiences and article rejection
#67628
Author: Christoph Biedl
Date: Mon, 05 Jan 2004 22:13
19 lines
1786 bytes
Russ Allbery <rra@stanford.edu> wrote...

> Christoph Biedl <cbiedl@gmx.de> writes:
>
>> impression 2: slow. I admit my P-166 notebook isn't bleeding edge
>> technology but a drop in the rate of accepting articles from 80 kb/sec
>> down to 30 kb/sec is rather a shock.
>
> What storage and overview methods are you using?

I forgot to mention: tradindexed, cnfs.

> tradindexed is much more
> careful about writing data back to disk to be more robust, but maybe
> that's causing the performance penalty.

In that case it's worth the price.

	Christoph
Re: [INN 2.4] experiences and article rejection
#67630
Author: Russ Allbery
Date: Mon, 05 Jan 2004 22:26
17 lines
1987 bytes
Christoph Biedl <cbiedl@gmx.de> writes:
> Russ Allbery <rra@stanford.edu> wrote...

>> tradindexed is much more careful about writing data back to disk to be
>> more robust, but maybe that's causing the performance penalty.

> In that case it's worth the price.

Once you get a nightly report, I'd be very interested in seeing the INN
timer statistics.  My testing didn't show that much of a performance loss
from the increased syncing, but it may depend a lot on the disk subsystem.

-- 
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: [INN 2.4] experiences and article rejection
#67638
Author: Christoph Biedl
Date: Tue, 06 Jan 2004 08:29
82 lines
5209 bytes
Russ Allbery <rra@stanford.edu> wrote...

> Once you get a nightly report, I'd be very interested in seeing the INN
> timer statistics.  My testing didn't show that much of a performance loss
> from the increased syncing, but it may depend a lot on the disk subsystem.

OK, here's a long list of numbers:

old version (2.3.3)

>From the daily report, only those lines where the innd got fed all 60 minutes:

Date                        Articles    %Arts Art/sec      Size   %Size  KB/sec
(...)
Dec 24 02:00:00 - 02:59:59    102546     8.3%   28.48  242.9 MB    8.7%   69.08
Dec 24 03:00:00 - 03:59:59    125892    10.2%   34.97  276.5 MB   10.0%   78.66
Dec 24 04:00:00 - 04:59:59    121954     9.9%   33.88  270.2 MB    9.7%   76.84
Dec 24 05:00:00 - 05:59:59    119325     9.6%   33.15  257.2 MB    9.3%   73.16
(...) // network problem caused a temporary halt
Dec 24 11:00:00 - 11:59:59    116610     9.4%   32.39  263.1 MB    9.5%   74.84
Dec 24 12:00:00 - 12:59:59    116405     9.4%   32.33  266.6 MB    9.6%   75.83
Dec 24 13:00:00 - 13:59:59    100725     8.1%   27.98  230.9 MB    8.3%   65.68
Dec 24 15:00:00 - 15:59:59    119209     9.6%   33.11  271.7 MB    9.8%   77.28
Dec 24 16:00:00 - 16:59:59     85230     6.9%   23.68  194.2 MB    7.0%   55.24

However, I consider news.notice more useful (just a small collection):

| Dec 24 01:42:11 hafer innd: localhost:18 closed seconds 30 accepted 1522
|  refused 0 rejected 0 duplicate 0 accepted size 3784560 duplicate size 0
=> 126kB/sec
| Dec 24 01:57:08 hafer innd: localhost:18 closed seconds 34 accepted 1594
|  refused 0 rejected 0 duplicate 0 accepted size 3773933 duplicate size 0
=> 110kB/sec
| Dec 24 16:44:48 hafer innd: localhost:18 closed seconds 138 accepted 4385
|  refused 0 rejected 0 duplicate 0 accepted size 11031425 duplicate size 0
=> 80kB/sec


now with 2.4.0

Date                        Articles    %Arts Art/sec      Size   %Size  KB/sec
(...)
Jan  4 16:00:00 - 16:59:59     85359     8.8%   23.71  183.2 MB    8.7%   52.11
Jan  4 17:00:00 - 17:59:59     76647     7.9%   21.29  168.7 MB    8.0%   47.98
Jan  4 18:00:00 - 18:59:59     70888     7.3%   19.69  155.8 MB    7.4%   44.32
Jan  4 19:00:00 - 19:59:59     58770     6.1%   16.32  133.9 MB    6.3%   38.08
// etc
Jan  5 01:00:00 - 01:59:59     47341     4.9%   13.15  105.4 MB    5.0%   29.97
Jan  5 02:00:00 - 02:59:59     42672     4.4%   11.85   94.8 MB    4.5%   26.98

Again, news.notice:

| Jan  4 16:00:53 hafer innd: localhost:33 closed seconds 218 accepted 4883
|  refused 0 rejected 1 duplicate 0 accepted size 11078453 duplicate size 0
=> 50kB/sec
| Jan  4 19:58:29 hafer innd: localhost:20 closed seconds 307 accepted 5740
|  refused 0 rejected 1 duplicate 0 accepted size 13638595 duplicate size 0
=> 44kB/sec
| Jan  5 09:45:30 hafer rnews: rejected 437 Unapproved for "alt.sysadmin.recovery"
| Jan  5 09:45:34 hafer innd: localhost:18 checkpoint seconds 290 accepted 3597
|  refused 0 rejected 3 duplicate 0 accepted size 9584969 duplicate size 0
=> 33kB/sec

I recall some batches being fed with less than 30kB/sec but I didn't awk
news.notice for that.

During that long time I was considering to stop the whole thing and
restart from scratch with overview disabled and do a makehistory -O
afterwards.  I didn't try and since 2.4 is considered much more
crash-proof I hopefully will not run into that situation again (and I'll
check my script that failed to shutdown the INN when the battery is low).

And yes, blame the hardware.  It's an old Libretto clone called Palmax
PD1000.  Looks cute but a bad designed hardware.  For the hard disk
controller, it doesn't support UDMA so I/O has never been fast:

|# hdparm -t /dev/hda
|
|/dev/hda:
| Timing buffered disk reads:    6 MB in  3.81 seconds =   1.57 MB/sec

	Christoph
Re: [INN 2.4] experiences and article rejection
#67646
Author: Russ Allbery
Date: Tue, 06 Jan 2004 19:33
50 lines
4237 bytes
Christoph Biedl <cbiedl@gmx.de> writes:
> Russ Allbery <rra@stanford.edu> wrote...

>> Once you get a nightly report, I'd be very interested in seeing the INN
>> timer statistics.  My testing didn't show that much of a performance
>> loss from the increased syncing, but it may depend a lot on the disk
>> subsystem.

> OK, here's a long list of numbers:

That's a different list than what I'm thinking of.  That's just giving you
raw statistics without a breakdown.  What I'm looking for is this (from my
server):

INND timer:
Code region              Time    Pct    Invoked   Min(ms)    Avg(ms)    Max(ms)
article cancel   00:03:58.834   0.3%       4444     0.571     53.743    273.938
article cleanup  00:00:52.912   0.1%     236011     0.094      0.224      0.802
article logging  00:00:49.048   0.1%     238194     0.073      0.206      0.806
article parse    00:06:50.576   0.5%    2465238     0.062      0.167      0.710
article write    04:34:02.322  19.2%     235978    10.870     69.677    165.178
artlog/artcncl   00:00:01.221   0.0%       4324     0.000      0.282      5.400
artlog/artparse  00:00:00.000   0.0%         11     0.000      0.000      0.000
artlog/artwrite  00:00:00.000   0.0%          0     0.000      0.000      0.000
data move        00:11:57.805   0.8%    2666520     0.003      0.269      3.246
hisgrep/artcncl  00:00:55.826   0.1%       2501     0.000     22.321    102.615
hishave/artcncl  00:00:54.211   0.1%       4444     0.000     12.199     49.250
history grep     00:00:00.000   0.0%          0     0.000      0.000      0.000
history lookup   00:56:13.685   3.9%     252592     0.034     13.356     33.376
history sync     00:00:00.416   0.0%        307     0.000      1.355     72.500
history write    00:59:23.261   4.2%     235978     0.171     15.100     33.599
hiswrite/artcnc  00:00:29.886   0.0%       1943     0.000     15.381     66.750
hiswrite/artwri  00:00:00.000   0.0%          0     0.000      0.000      0.000
idle             12:29:58.044  52.4%    2276189     0.253     19.769     70.159
nntp read        00:17:27.808   1.2%    2439954     0.113      0.429      3.391
overview write   03:35:46.973  15.1%     235978     7.351     54.865    135.088
perl filter      00:00:00.889   0.0%     235978     0.000      0.004      0.164
python filter    00:00:00.000   0.0%          0     0.000      0.000      0.000
site send        00:02:30.674   0.2%     238899     0.082      0.631      4.516

TOTAL: 23:50:58  23:22:14.391  98.0%          -         -          -          -

This should be in your nightly reports assuming that you have the timer
turned on.

-- 
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: [INN 2.4] experiences and article rejection
#67678
Author: Christoph Biedl
Date: Thu, 15 Jan 2004 00:38
41 lines
3514 bytes
Russ Allbery <rra@stanford.edu> wrote...

> That's a different list than what I'm thinking of.  That's just giving you
> raw statistics without a breakdown.  What I'm looking for is this (from my
> server):
(...)
> This should be in your nightly reports assuming that you have the timer
> turned on.

I'm afraid they were turned off so I don't have 2.3.x numbers for a
comparison. Now they look like:

INND timer:
Code region              Time    Pct    Invoked   Min(ms)    Avg(ms)    Max(ms)
article cancel   00:00:00.000   0.0%          0     0.000      0.000      0.000
article cleanup  00:00:01.318   0.0%       5259     0.100      0.251      0.532
article logging  00:00:02.075   0.0%       5259     0.260      0.395      0.656
article parse    00:00:04.453   0.0%      30657     0.089      0.145      0.200
article write    00:01:56.154   0.1%       5222    13.660     22.243     28.711
data move        00:00:00.676   0.0%      22110     0.021      0.031      0.045
history grep     00:00:00.000   0.0%          0     0.000      0.000      0.000
history lookup   00:00:01.654   0.0%      10518     0.103      0.157      0.187
history sync     00:00:00.043   0.0%        204     0.000      0.211      8.250
history write    00:01:45.716   0.1%       5222     7.008     20.244     41.350
idle             23:53:51.978  99.5%      30860   133.356   2787.815 900450.000
nntp read        00:00:06.261   0.0%      30672     0.123      0.204     76.000
overview write   00:02:21.305   0.2%       5222    16.429     27.060     43.551
perl filter      00:00:05.933   0.0%       5259     1.074      1.128      1.233
python filter    00:00:00.000   0.0%          0     0.000      0.000      0.000
site send        00:00:00.219   0.0%       5222     0.024      0.042      0.053

As far as I can understand my server spends indeed a relative huge amount
of time in "overview write".

BTW, I saw your message in inn-workers concerning "Fixing bindaddress in
INN 2.4 with IPv6" and can confirm that that patch works here so I'm
glad I can remove the workaround
| eval ${WHAT} -I ${v4address} -6 ${v6address} ${RFLAG} ${INNFLAGS}
from rc.news.

	Christoph
Re: [INN 2.4] experiences and article rejection
#67679
Author: Russ Allbery
Date: Thu, 15 Jan 2004 00:50
33 lines
2522 bytes
Christoph Biedl <cbiedl@gmx.de> writes:

> I'm afraid they were turned off so I don't have 2.3.x numbers for a
> comparison. Now they look like:

[...]

> As far as I can understand my server spends indeed a relative huge amount
> of time in "overview write".

Actually, it's spending 99% of its time completely idle, which would
indicate to me that it's taking news as fast as anything is managing to
send it.

idle             23:53:51.978  99.5%      30860   133.356   2787.815 900450.000

Was that a test server that wasn't actually taking articles, maybe?

> BTW, I saw your message in inn-workers concerning "Fixing bindaddress in
> INN 2.4 with IPv6" and can confirm that that patch works here so I'm
> glad I can remove the workaround
> | eval ${WHAT} -I ${v4address} -6 ${v6address} ${RFLAG} ${INNFLAGS}
> from rc.news.

Oh, excellent.

Now I just have to figure out how best to fix innbind on Solaris.

-- 
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.
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