Article View: news.software.nntp
Article #21131INN 1.5.1 performance on Solaris 2.5.1
From: Schuyler Bishop
Date: Sun, 31 Aug 1997 00:00
Date: Sun, 31 Aug 1997 00:00
211 lines
10302 bytes
10302 bytes
This is a multi-part message in MIME format.
--------------6B833CD31CD21D86723AE236
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi. I've been running INN 1.5.1 now for about 6 months, and at this
point, I'm about ready to throw my hands up in the air (along with my
news box) and switch to Cyclone. We peer with about 4 large providers
(sprintlink, UUNET, MCI, and a smaller BBN feed) on an Ultra 2
Enterprise with 384 MB RAM, 6 2.1 GB F/W Seagate 'Cudas on their own
single ended wide intelligent SCSI card, and two 200 MHZ Ultrasparc-I
CPUs... and my performance stinks. Our sprintlink feed comes from a
Sparc-20 running Cyclone, and it regularly has a queue of about
7-800,000 articles. Our daily volume ranges from 1-200,000 articles
accepted, TOTAL from all of our feeds, and that's embarrassing.
With that being said, I began searching for the bottleneck. What I
found was that I have a LOT of I/O wait, but relatively low disk usage.
Oh, this machine also feeds 20 or so sites (full feeds) and has 5-15
readers on average.
For example:
(output from top)
last pid: 29364; load averages: 1.91, 1.91, 2.26
00:46:35
52 processes: 48 sleeping, 2 running, 2 on cpu
CPU states: 10.9% idle, 2.2% user, 60.9% kernel, 25.9% iowait, 0.0%
swap
Memory: 371M real, 33M free, 121M swap, 386M free swap
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
28330 news -25 0 60M 34M cpu 8:47 12.44% 15.97% innd
29364 news 33 0 3504K 1936K cpu 0:00 0.56% 0.51% top
2477 news 18 2 1568K 1208K run 4:00 0.29% 0.36% innxmit
7718 news 35 2 1856K 1432K sleep 13:07 0.15% 0.22% innxmit
29363 news 21 4 3896K 3688K sleep 0:00 0.29% 0.21% nnrpd
21485 news -25 2 1856K 1424K sleep 5:13 0.26% 0.18% innxmit
253 root 33 0 1480K 1144K sleep 5:15 0.13% 0.13%
rpc.rstatd
26848 news 27 2 1856K 1432K sleep 16:38 0.11% 0.10% innxmit
140 root 34 0 1496K 1072K run 14:47 0.07% 0.09% syslogd
14454 news 28 2 1856K 1432K sleep 7:16 0.07% 0.07% innxmit
9003 news 28 2 1568K 1192K sleep 0:40 0.04% 0.05% innxmit
28715 news 22 4 3928K 2088K sleep 0:23 0.04% 0.03% nnrpd
20654 news 28 2 1856K 1496K sleep 0:10 0.04% 0.02% innxmit
27643 news 34 0 1160K 880K sleep 0:00 0.02% 0.02% csh
But yet, iostat:
news@hathor:>iostat -x 10 2
extended disk statistics
disk r/s w/s Kr/s Kw/s wait actv svc_t %w %b
sd2 14.2 10.0 105.4 83.1 0.0 1.3 55.2 0 28
sd3 14.0 9.7 104.5 80.9 0.0 1.3 53.8 0 27
sd4 14.1 9.9 105.0 82.3 0.0 1.2 51.8 0 28
sd5 14.0 9.8 104.7 81.5 0.0 1.2 52.4 0 27
sd7 14.1 9.7 103.8 80.4 0.0 1.3 52.8 0 28
sd8 14.1 10.1 104.5 82.8 0.0 1.3 55.1 0 28
sd15 5.4 5.3 128.2 207.2 0.0 1.1 103.4 0 10
sd16 5.4 18.0 50.4 460.2 0.0 1.7 72.6 0 23
extended disk statistics
disk r/s w/s Kr/s Kw/s wait actv svc_t %w %b
sd2 13.6 5.4 106.6 34.2 0.0 0.3 16.4 0 22
sd3 14.6 3.3 105.9 24.0 0.0 0.2 13.5 0 18
sd4 13.3 3.7 92.8 27.4 0.0 0.2 13.7 0 19
sd5 12.3 1.4 90.4 9.0 0.0 0.2 12.4 0 15
sd7 12.8 2.0 90.9 14.7 0.0 0.2 13.3 0 18
sd8 14.8 2.3 99.3 13.3 0.0 0.2 14.4 0 19
sd15 2.3 0.9 18.4 30.4 0.0 0.0 11.5 0 3
sd16 8.8 25.6 84.1 443.4 0.0 1.4 41.4 0 39
The first iostat is the cumulative readings since boot. The second is a
10 second average. sd2-8 are my RAID0 'cudas, and my history and news
config files are on sd15. sd16 is my root and swap disk. Note the %b
(percent busy) column. Also, the svc_t(service time) is in the 11-17ms
range, which is close to the drive's ratings.
The other thing I noticed was that our sprintlink feed (again using
cyclone on a 20), which opens 6 feed channels, is usually waiting to
send articles on a TCP connection with a 0 window (the one my machine
offers it). observe:
netstat | grep sprintlink
hathor.nntp newsfeed.sprintlink.net.37472 64240 0
0 0 ESTABLISHED
hathor.nntp newsfeed.sprintlink.net.37473 64240 0
0 0 ESTABLISHED
hathor.nntp newsfeed.sprintlink.net.37474 64240 0
8859 0 ESTABLISHED
hathor.nntp newsfeed.sprintlink.net.37475 64240 0
0 0 ESTABLISHED
hathor.nntp newsfeed.sprintlink.net.37476 64240 0
0 0 ESTABLISHED
hathor.nntp newsfeed.sprintlink.net.37477 64240 0
0 0 ESTABLISHED
Where only ONE connection is actually sending data, and with a minute
window of 8k!!!
When I did a tcpdump, I witnessed my machine ack'ing segments with a
smaller window size, until it reaches 0, where is starts
re-transmitting.
01:02:20.100688 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 38710
win 24820 (DF)
01:02:20.100997 newsfeed.sprintlink.net.37477 > hathor.nntp: .
38710:40170(1460) ack 311 win 64240 (DF)
01:02:20.101461 newsfeed.sprintlink.net.37477 > hathor.nntp: P
40170:41630(1460) ack 311 win 64240 (DF)
01:02:20.101511 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 41630
win 24820 (DF)
01:02:20.101650 newsfeed.sprintlink.net.37477 > hathor.nntp: .
41630:43090(1460) ack 311 win 64240 (DF)
01:02:20.101961 newsfeed.sprintlink.net.37477 > hathor.nntp: P
43090:44550(1460) ack 311 win 64240 (DF)
01:02:20.102015 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 44550
win 23360 (DF)
01:02:20.102266 newsfeed.sprintlink.net.37477 > hathor.nntp: .
44550:46010(1460) ack 311 win 64240 (DF)
01:02:20.102482 newsfeed.sprintlink.net.37477 > hathor.nntp: P
46010:47470(1460) ack 311 win 64240 (DF)
01:02:20.102535 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 47470
win 20440 (DF)
01:02:20.102921 newsfeed.sprintlink.net.37477 > hathor.nntp: .
47470:48930(1460) ack 311 win 64240 (DF)
01:02:20.103260 newsfeed.sprintlink.net.37477 > hathor.nntp: P
48930:50390(1460) ack 311 win 64240 (DF)
01:02:20.103315 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 50390
win 17520 (DF)
01:02:20.103452 newsfeed.sprintlink.net.37477 > hathor.nntp: .
50390:51850(1460) ack 311 win 64240 (DF)
01:02:20.103750 newsfeed.sprintlink.net.37477 > hathor.nntp: P
51850:53310(1460) ack 311 win 64240 (DF)
01:02:20.103804 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 53310
win 14600 (DF)
01:02:20.113436 newsfeed.sprintlink.net.37477 > hathor.nntp: .
53310:54770(1460) ack 311 win 64240 (DF)
01:02:20.113745 newsfeed.sprintlink.net.37477 > hathor.nntp: P
54770:56230(1460) ack 311 win 64240 (DF)
01:02:20.113801 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 56230
win 11680 (DF)
01:02:20.114061 newsfeed.sprintlink.net.37477 > hathor.nntp: .
56230:57690(1460) ack 311 win 64240 (DF)
01:02:20.114401 newsfeed.sprintlink.net.37477 > hathor.nntp: P
57690:59150(1460) ack 311 win 64240 (DF)
01:02:20.114521 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 59150
win 8760 (DF)
01:02:20.114760 newsfeed.sprintlink.net.37477 > hathor.nntp: .
59150:60610(1460) ack 311 win 64240 (DF)
01:02:20.115055 newsfeed.sprintlink.net.37477 > hathor.nntp: .
60610:62070(1460) ack 311 win 64240 (DF)
01:02:20.115111 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 62070
win 5840 (DF)
01:02:20.115376 newsfeed.sprintlink.net.37477 > hathor.nntp: P
62070:63530(1460) ack 311 win 64240 (DF)
01:02:20.115714 newsfeed.sprintlink.net.37477 > hathor.nntp: .
63530:64990(1460) ack 311 win 64240 (DF)
01:02:20.115771 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 64990
win 2920 (DF)
01:02:20.115908 newsfeed.sprintlink.net.37477 > hathor.nntp: P
64990:66450(1460) ack 311 win 64240 (DF)
01:02:20.116531 newsfeed.sprintlink.net.37477 > hathor.nntp: P
66450:67910(1460) ack 311 win 64240 (DF)
01:02:20.116588 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 67910
win 0 (DF)
01:02:20.303417 newsfeed.sprintlink.net.37477 > hathor.nntp: P
67910:67911(1) ack 311 win 64240 (DF)
01:02:20.303454 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 67910
win 0 (DF)
01:02:20.330719 hathor.nntp > newsfeed.sprintlink.net.37477: P
311:345(34) ack 67910 win 0 (DF)
01:02:20.574511 newsfeed.sprintlink.net.37477 > hathor.nntp: .
67910:67911(1) ack 345 win 64240 (DF)
01:02:20.643751 hathor.nntp > newsfeed.sprintlink.net.37477: . ack 67910
win 0 (DF)
... and I see this behavior ALL the time.
That, of course is bad. Before we switched to 1.5.1, I did a
side-to-side test with an identical machine running cyclone, and it
kicked INN's butt. I've been a news admin now for about 3 years, and
I've used INN for all 3. I'd much rather "fix" my INN server than
switch to another product, especially because it would alleviate the
need for two servers (one for feeds and one for reads). Any help would
be appreciated.
---
Schuyler
--------------6B833CD31CD21D86723AE236
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Schuyler Bishop
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Schuyler Bishop
n: Bishop;Schuyler
org: Sprint
email;internet: schuyler@perseus.utelfla.com
title: ANS Engineer
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
end: vcard
--------------6B833CD31CD21D86723AE236--
Technical Details
Message-ID:
<34098F81.8F81A0C1@perseus.utelfla.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-mailShow Full Headers
Complete Article Headers
Message-ID: <34098F81.8F81A0C1@perseus.utelfla.com> Subject: INN 1.5.1 performance on Solaris 2.5.1 Date: Sun, 31 Aug 1997 00:00:00 +0000 From: Schuyler Bishop <schuyler@perseus.utelfla.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: 269244339 X-Priority: 3 (Normal) Organization: Sprint - Southern Operations Newsgroups: news.software.nntp