🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11534

Re: patch to show INN idle time

#11534
From: Joe Greco
Date: Wed, 09 Oct 1996 00:00
43 lines
2530 bytes
In news.software.nntp article <5259lv$s6n@nnrp1.news.primenet.com>, nils mccarthy <nils@primenet.com> wrote:
:A couple of my feeds have requested this code after I mentioned its
:existance to them, so I thought that perhaps the world in general
:would find this of use.  This is a patch that reports to news.notice
:every 5 minutes telling how much time INN is spending waiting for
:network I/O (and thus has nothing it's working on), as opposed to
:processing articles, writing them to disk, and sending their
:information to outgoing feeds.

Nice patch, Nils.

However... a little frustrating because all it tells you is what you 
already know: you either have idle time and your performance doesn't
stink, or you don't have idle time and your performance does stink.

I have a patch here that expands upon this idea, and I will hopefully
be releasing it by the end of the week.  It produces log reports such
as

Oct  9 11:39:25 news innd: ME time 300097 idle 196062(9493) artwrite 65207(1009) artlink 11(339) hiswrite 6879(1009) hissync 2(16) sitesend 232(5320) artctrl 0(17) artcncl 0(1) hishave 6145(8876) 

(times in milliseconds, numbers in parens are number of invocations).  This
can be parsed up into very useful data:

Percent busy:        (300097 - 196062) / 300097 = 35%
Time per article write:          65207 /   1009 = 64 ms
Percent time spent writing art:  65207 / 300097 = 21%
Time per crosslink:                 11 /    339 = 0 ms
Percent time spent crosslink:       11 / 300097 = 0%
Time per history write:           6879 /   1009 = 7 ms
Percent time spent writing his:   6879 / 300097 = 2%
Time per history lookup:          6145 /   8876 = 1 ms
Percent time spent hist lookup:   6145 / 300097 = 2%

This is a pretty fast news server, although it appears that it could use
some work on the spool itself to make article writes happen faster.

"Anyone interested?"

... JG

Technical Details
Message-ID: <53gpt5$h8g@brasil.moneng.mei.com>
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
References: <5259lv$s6n@nnrp1.news.primenet.com>

Show Full Headers
Complete Article Headers
Message-ID: <53gpt5$h8g@brasil.moneng.mei.com>
Subject: Re: patch to show INN idle time
Date: Wed, 09 Oct 1996 00:00:00 +0000
From: jgreco@brasil.moneng.mei.com (Joe Greco)
References: <5259lv$s6n@nnrp1.news.primenet.com>
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: 188310573
Distribution: inet
Organization: Marquette Electronics, Inc. - Milwaukee, WI.
Newsgroups: news.software.nntp