Article View: news.software.nntp
Article #4823Cause and effect?
From: Erland Sommarskog
Date: Sun, 11 Feb 1996 00:00
Date: Sun, 11 Feb 1996 00:00
73 lines
4162 bytes
4162 bytes
[Please send me a Cc of anything you post. For reasons given below,
I run the risk of missing otherwise.]
At this place there seems to be two major problems with news:
1) the newsfeed lags behind, and many articles never makes it here.
2) sometimes it is very difficult to get access to the news server.
The question is: is this really two different problems, or are
they symptom of the same?
There are several feeds to this site, whereof one is across the
ocean. This is the main feed using the streaming patches, if that
matters.
The reason why we're lagging behind seems to be simple: network
overload. The connection to the Internet operator is a 1M, however,
the overload is probably not on that link, but rather the operator's
links abroad. To wit here are ping times to two of the feeds:
Feed in the US: Feed in Sweden:
64 b: icmp_seq=0. time=643. ms 64 b: icmp_seq=0. time=75. ms
64 b: icmp_seq=1. time=702. ms 64 b: icmp_seq=1. time=71. ms
64 b: icmp_seq=2. time=595. ms 64 b: icmp_seq=2. time=57. ms
64 b: icmp_seq=3. time=725. ms 64 b: icmp_seq=3. time=126. ms
64 b: icmp_seq=6. time=602. ms 64 b: icmp_seq=4. time=246. ms
64 b: icmp_seq=7. time=648. ms 64 b: icmp_seq=5. time=181. ms
64 b: icmp_seq=9. time=593. ms 64 b: icmp_seq=6. time=245. ms
11 transmitted, 7 received, 36% loss 7 transmitted, 7 received, 0% loss
round-trip (ms) = 593/644/725 round-trip (ms) = 57/143/246
Now, why does the server take so long to respond to connections
from within the local net work. Doing top on the news machine, we
find:
last pid: 7599; load averages: 1.35, 1.20, 1.14 12:31:06
38 processes: 35 sleeping, 2 running, 1 on cpu
Cpu states: 0.0% idle, 21.2% user, 60.4% kernel, 18.3% iowait, 0.0% swap
Memory: 307M real, 54M free, 35M swap, 347M free swap
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
207 news -14 0 11M 4588K run 82.8H 67.32% 65.42% innd
7522 news 35 2 1712K 1572K sleep 0:25 6.31% 6.08% dexpire
7441 news -4 0 2572K 2100K sleep 0:08 1.24% 3.04% in.nnrpd
7599 news -15 0 2404K 1872K run 0:00 2.66% 2.66% in.nnrpd
7598 sommar 27 0 2504K 1300K cpu 0:00 3.04% 2.46% top
7577 news 33 0 2540K 2104K sleep 0:01 2.02% 1.54% in.nnrpd
7353 news 33 0 2540K 1928K sleep 0:11 0.17% 0.25% in.nnrpd
27458 news 27 2 1412K 576K sleep 1:12 0.15% 0.11% innxmit
7081 news 33 0 2540K 760K sleep 0:19 0.10% 0.08% in.nnrpd
6912 root 33 0 1300K 472K sleep 0:01 0.09% 0.07% in.telnetd
1 root 33 0 780K 104K sleep 14:04 0.02% 0.02% init
6914 sommar 23 0 1304K 556K sleep 0:01 0.01% 0.01% ksh
141 root 33 0 1268K 268K sleep 6:48 0.00% 0.00% syslogd
151 root 33 0 1344K 312K sleep 0:32 0.00% 0.00% cron
7074 news 26 0 2540K 736K sleep 0:16 0.00% 0.00% in.nnrpd
There's obviously something wrong going on here, with the server
eating that much CPU time, and all that time in the kernel. (And
with over than 300 MB memory in the box, shouldn't INN grab more
than just 11MB?)
Now, I have only looked at this fairly superficially, so this is
just a shot in the dark, but the cause for the kernel chewing
be the bad network performance? Does INN get stuck in the kernel
while waiting for response? Or are we really having two different
problems?
The hardware is a Sparc 10 if that matters.
--
Erland Sommarskog, Stockholm, sommar@algonet.se
Technical Details
Message-ID:
<4fkljb$j3@aristotle.algonet.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: <4fkljb$j3@aristotle.algonet.se> Subject: Cause and effect? Date: Sun, 11 Feb 1996 00:00:00 +0000 From: sommar@aristotle.algonet.se (Erland Sommarskog) 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: 138902984 Distribution: inet Organization: BF Beckasinen 13 u.p.a. Newsgroups: news.software.nntp