Article View: news.software.nntp
Article #17217Innd performance
From: Sven-Ove Westberg
Date: Tue, 22 Apr 1997 00:00
Date: Tue, 22 Apr 1997 00:00
85 lines
4373 bytes
4373 bytes
Hi
I have been running a profile on innd and found something interesting,
a lot of cputime is spent in ARTpost.
I include the data from profle so ppl can see that ARTpost really sticks out.
I dont have the TCL or PERL support.
159.43 417.36 13197/13197 _NCpostit [6]
[7] 84.8 159.43 417.36 13197 _ARTpost [7]
0.30 345.55 11224/11224 _ARTwrite [9]
15.98 7.99 13197/13197 _ARTclean [11]
0.01 21.78 1434/1434 _ARTcontrol [13]
0.04 6.53 13141/34953 _HIShavearticle [19]
1.06 4.66 11224/11224 _ARTpropagate [36]
0.22 3.93 11224/11224 _HISwrite [40]
1.38 0.28 11224/11224 _ARTmakeoverview [49]
0.08 1.30 52378/52378 _SITEsend [53]
0.15 1.00 13197/13349 _ARTlog [56]
1.10 0.00 13197/13197 _ARTparsepath [62]
0.00 0.84 55/1473 _ARTcancel [12]
0.82 0.01 20734/20739 _NGfind [70]
0.11 0.44 11224/11224 _ARTassignnumbers [82]
0.02 0.52 31151/103028 _sprintf [48]
0.00 0.44 1119/2249 _HISsync [67]
0.26 0.00 19300/19300 _RCcanpost [110]
0.22 0.00 12212/12212 _NGsplit [114]
0.01 0.19 11224/152077 _fprintf [45]
0.05 0.00 11224/11224 _ARTsortfordisk [189]
% cumulative self self total
time seconds seconds calls ms/call ms/call name
50.8 351.88 351.88 11859 29.67 29.67 _open [8]
23.0 511.32 159.43 13197 12.08 43.71 _ARTpost [7]
5.0 546.07 34.75 67771 0.51 0.51 _read [10]
3.5 570.30 24.23 40014 0.61 15.86 _NCproc [5]
2.3 586.27 15.98 13197 1.21 1.82 _ARTclean [11]
2.0 599.83 13.56 13197 1.03 1.03 _NCclean [24]
1.8 612.24 12.41 mcount (453)
1.6 623.21 10.97 11224 0.98 0.98 _writev [26]
1.4 633.10 9.89 55662 0.18 0.18 _write [28]
0.7 638.26 5.16 1486527 0.00 0.00 _DoMatch [37]
0.6 642.28 4.02 165393 0.02 0.03 _ARTparseheader [38]
0.5 645.67 3.39 255413 0.01 0.02 __doprnt [39]
0.4 648.46 2.79 756 3.69 3.69 _unlink [43]
0.2 650.11 1.65 338409 0.00 0.01 _ListHas [42]
0.2 651.74 1.63 48 33.96 163.13 _SITEsetlist [32]
So I start reading the code and found something interesting. If I am wrong
about what I say I am really glad since then innd is not as bad as I first
thought. So please correct me if I am wrong.
First loop:
/* Clear all groups and sites -- assume nobody gets the article. */
for (i = nGroups, ngp = Groups; --i >= 0; ngp++)
ngp->PostCount = 0;
I think we loop over all newsgroups here for each aricle we recive.
Second loop:
for (i = 0; (ngp = GroupPointers[i]) != NULL; i++) {
if (!ngp->PostCount)
continue;
.
.
.
}
I think we loop over all newsgroups here too.
If we loop over all groups has anyone tried to change that?
Can someone explain why inn loops over all groups?
The complete profile is available at http://www.mt.luth.se/~sow/innd_gprof.txt
Regards,
Sven-Ove Westberg, CAD, University of Lulea, S-971 87 Lulea, Sweden.
Technical Details
Message-ID:
<5jir3g$eqh$1@eru.mt.luth.se>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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <5jir3g$eqh$1@eru.mt.luth.se> Subject: Innd performance Date: Tue, 22 Apr 1997 00:00:00 +0000 From: Sven-Ove Westberg <sow@cad.luth.se> 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!not-for-mail X-Deja-AN: 236619016 Organization: Lulea University of Technology Newsgroups: news.software.nntp Originator: sow@eru.mt.luth.se (Sven-Ove Westberg) X-Newsposter: trn 4.0-test56 (2 Mar 97)