Article View: news.software.nntp
Article #15014Re: innlog.pl patch for innd_timmer.parch innd patch anyone?
From: Gordy Thompson
Date: Wed, 12 Feb 1997 00:00
Date: Wed, 12 Feb 1997 00:00
102 lines
4186 bytes
4186 bytes
In article <01bc16ea$073bf720$827e1bcc@rodia>, "Raul Zighelboim"
<mango@communique.,net> wrote:
>
>hello there!
>
>The subject tries to say everything.... I applied the 'timer paranoid'
>patch from
>oe Greco, and the time has come for me to patch the innlog.pl script as
>well.
>
>anyone?
This was posted last October by Michael Shields
<shields@crosslink.net>:
----- cut here -----
--- innlog.pl 1996/10/03 18:40:32 1.1.1.3
+++ innlog.pl 1996/10/18 04:15:45 1.8
@@ -487,6 +495,18 @@
## Skip for now - not particularly interesting :-)
next;
}
+
+ if ($Fld[7] eq 'time') {
+ my $i;
+ $greco_times++;
+ $greco_latency += $Fld[8] - 300000;
+ for ($i = 9; $i < $#Fld; $i += 2) {
+ $Fld[$i+1] =~ /^(\d+)\((\d+)\)$/;
+ $greco_numer{$Fld[$i]} += $1;
+ $greco_denom{$Fld[$i]} += $2;
+ }
+ next;
+ }
}
##
@@ -1107,6 +1148,20 @@
$ninnd_reject, $percent_accpt, $e_hours, $e_min, $e_sec;
}
+## Greco data.
+if ($greco_times) {
+ my $item;
+ print "Greco data\n";
+ printf " Stretch: %.3f ms\n", $greco_latency / $greco_times;
+ printf " Code region Time Invoked Each\n";
+ foreach $item (sort keys %greco_numer) {
+ printf " %-16.16s %8d %8d %8.3f\n",
+ $item, $greco_numer{$item}, $greco_denom{$item},
+ $greco_numer{$item} / $greco_denom{$item};
+ }
+ print "\n";
+}
+
## Miscellaneous innd statistics.
if ($innd_bad_msgids) {
print "Bad Message-ID's offered\n";
----- cut here -----
Here, for example, is what I got in this morning's report:
Greco data
Stretch: 12341.173 ms
Code region Time Invoked Each
artcncl 102947 898 114.640
artctrl 5533868 22807 242.639
artlink 11832290 127305 92.944
artwrite 35149834 243323 144.458
hisgrep 4699 17698 0.266
hishave 12505251 830495 15.058
hissync 66976 49404 1.356
hiswrite 829695 313389 2.647
idle 990974 24577 40.321
sitesend 135237 481922 0.281
I'd love someone who's been playing with this to tell me if
these are good, bad or indifferent numbers. By Joe's definition, the
latency ("stretch") is unacceptably high, and we seem to be spending
an unhealthy amount of time doing "artctrl". But spot-checks of major
commercial ISPs tell me we're _reasonably_ current, and we're
certainly managing to process a fair amount of news:
System Connects Offered Took Tk% Refuse Reject Accpt Elapsed
gatekee 2941 514927 243097 99% 201933 69897 47% 834:10:43
^^^^^^^
(All six of my feeds come through a firewall relay, hence the single
"host". See my plea in a separate thread for help with better logging
and analysis tools [:-].)
==========================================================================
Gordon T. Thompson gordy@nytimes.com
Manager, Internet Services 212 556 1386
The New York Times fax: 212 556 1636
This letter has been modified as follows from its original
version: It has been formatted to fit your screen.
Technical Details
Message-ID:
<330241fb.2605147@newsgate>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-mailReferences:
<01bc16ea$073bf720$827e1bcc@rodia>Show Full Headers
Complete Article Headers
Message-ID: <330241fb.2605147@newsgate> Subject: Re: innlog.pl patch for innd_timmer.parch innd patch anyone? Date: Wed, 12 Feb 1997 00:00:00 +0000 From: gordy@nytimes.com (Gordy Thompson) References: <01bc16ea$073bf720$827e1bcc@rodia> 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: 218180314 Distribution: inet Content-Type: text/plain; charset=us-ascii Organization: The New York Times Mime-Version: 1.0 Newsgroups: news.software.nntp