Article View: news.software.nntp
Article #28962Re: Slow news server
From: Matt Dillon
Date: Tue, 09 Jun 1998 00:00
Date: Tue, 09 Jun 1998 00:00
89 lines
3943 bytes
3943 bytes
:In article <357B8D73.7C488E81@domaintje.com>,
:Frank Ederveen <frank@domaintje.com> wrote:
:>Miquel van Smoorenburg wrote:
:>>
:>> In article <357B6AA1.8965C021@domaintje.com>,
:>> Frank Ederveen <frank@domaintje.com> wrote:
:>> >INN-2.0 as of 6/6, storage api enabled, extendeddbz enabled, cycbuffs
:>> >striped over 6 cheetahs, 256Mbyte on a Ppro with FreeBSD-2.2 with CAM.
:>> >Connected to Diablo feeder by 34Mbit, ping times of less than 2 ms.
:>>
:>> Cycbuffs striped over different disks? Wouldn't it be better to
:>> just put a bunch of cycbuffs on seperate disks, using the raw device
:>> if possible (not on FreeBSD though) and stripe using the metacycbuffs?
:>
:>Well, it's not doing much disk-io at all. THat's what wonders me.
:>CPU, memory and disks seem fine. Also network and the rest.
:>
:>*puzzled*
ktrace is your friend.
ktrace the INND process for a while while it's receive the feed,
then ktrace -C to turn off the ktrace, then look at the output
with kdump -R.
On the INND side what you are looking for is whether select()
blocks a lot of the time or not, and you are also looking
for disk I/O latencies (read, write, open, close, lseek,
etc...).
#1
If the select() call INND is doing generally does NOT block,
that means that TCP data for the next streaming
command/article is already on the machine and that INND
doesn't have to wait for it. This, in turn, may mean that
INND is spending too much time doing other things and not
reading the stream fast enough.
#2
On the INND machine, do netstat -tn and grep for the
tcp connection(s) coming from the feeder. Observe the
number of bytes in the input queue.
If the number tends to be non-zero, INN isn't reading
the data fast enough. If the number tends to be zero,
then perhaps the problem is on the feeder side of the
queue.
#3
On the feeder it may be worthwhile to ktrace the feed
process. (If you are running diablo, this would be
the dnewslink process(es)).
ktrace it for a while, then ktrace -C, then
kdump -R | less to look at it.
look for syscall open/read latencies and look for
syscall write() latencies. The write()s to the
network should generally not block except when
it's dumping a file. The open/seek/read()'s should
be very fast.
#4
Alternately, if you are running diablo on the feeder
side, you can try running dnewslink manually on one
of the queue files with debugging turned on.
dnewslink -h innhostmachine -b batchfile -d2
You should see << and >> lines for received and
transmitted data (it doesn't >> the article body,
it just says that it's transmitting the article).
By observing the activity you may be able to
determine where the delays are coming from.
-Matt
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Technical Details
Message-ID:
<6llasr$ci3$1@flea.best.net>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:
<6l3pr7$fb6$1@ultranews.duc.auburn.edu> <357B6AA1.8965C021@domaintje.com> <6lg45v$836$1@defiant.cistron.nl> <357B8D73.7C488E81@domaintje.com>Show Full Headers
Complete Article Headers
Message-ID: <6llasr$ci3$1@flea.best.net> Subject: Re: Slow news server Date: Tue, 09 Jun 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <6l3pr7$fb6$1@ultranews.duc.auburn.edu> <357B6AA1.8965C021@domaintje.com> <6lg45v$836$1@defiant.cistron.nl> <357B8D73.7C488E81@domaintje.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: 361284844 X-Trace: 897461980 23588 dillon 206.184.139.132 Organization: Best Internet Communications, Inc. Newsgroups: news.software.nntp