Thread View: news.software.nntp
73 messages
73 total messages
Page 2 of 2
Started by David Swanger
Wed, 03 Jun 1998 00:00
Page 2 of 2 • 73 total messages
Re: INN 2.0 ( Was: Re: Slow news server )
Author: Frank
Date: Tue, 09 Jun 1998 00:00
Date: Tue, 09 Jun 1998 00:00
54 lines
3389 bytes
3389 bytes
Marc G. Fournier wrote: > did you use -enable-tagged when you built the server? I also have No, the 'INSTALL' file suggests not using it with 256Mbyte or more memory. We do use extendeddbz and storage-api though. > streaming disabled, since everyone sends me multiple channels...not sure if > it helps or not, but I know it doesn't hurt anything... Nope, don't use that either. It only gets a feed from one machine. > What are your timer stats looking like? I posted some before but here are some fresh ones: Jun 9 07:47:58 sucker innd: ME time 300001 idle 222279(26492) artwrite 7579(922) artlink 0(0) hiswrite 9068(985) hissync 5(37) sitesend 368(922) artctrl 229(12) artcncl 229(12) hishave 993(1975) hisgrep 35(2) Jun 9 07:52:59 sucker innd: ME time 300498 idle 198994(29680) artwrite 9804(1101) artlink 0(0) hiswrite 12227(1167) hissync 5(45) sitesend 946(1101) artctrl 177(13) artcncl 177(13) hishave 2253(2314) hisgrep 12(2) Jun 9 07:57:59 sucker innd: ME time 300002 idle 199705(31031) artwrite 8844(1028) artlink 0(0) hiswrite 13283(1068) hissync 56(41) sitesend 500(1028) artctrl 157(8) artcncl 157(8) hishave 2688(2156) hisgrep 57(4) Jun 9 08:02:59 sucker innd: ME time 300001 idle 213731(29918) artwrite 7719(809) artlink 0(0) hiswrite 8217(852) hissync 6(33) sitesend 326(809) artctrl 197(12) artcncl 254(14) hishave 1822(1688) hisgrep 45(5) Jun 9 08:07:59 sucker innd: ME time 300006 idle 221851(28138) artwrite 7261(793) artlink 0(0) hiswrite 9086(834) hissync 4(30) sitesend 272(793) artctrl 273(25) artcncl 333(26) hishave 1450(1675) hisgrep 75(9) Jun 9 08:12:59 sucker innd: ME time 300004 idle 219114(28743) artwrite 8252(956) artlink 0(0) hiswrite 10378(1037) hissync 6(38) sitesend 419(956) artctrl 254(23) artcncl 277(25) hishave 2091(2062) hisgrep 35(5) Last night it had almost cought up but this morning there was a full backlog again. I'm also looking into the settings of the OS. Maybe there is something wrong with FreeBSD-stable and the latest CAM patches? At about 1000 articles/5 minutes it should catch up. However, I expect a machine like this to be zooming along and not have to work so hard at it. 9 or 10 articles/second isn't very good. Load of the machine as reported by uptime is around .50 FrankE
Re: Slow news server
Author: 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
Re: What is a Full Feed Anyway? (Was: Re: Slow news server)
Author: Timothy J. Miller
Date: Tue, 09 Jun 1998 00:00
Date: Tue, 09 Jun 1998 00:00
15 lines
1709 bytes
1709 bytes
marc@acadiau.ca (Marc G. Fournier) writes: > Ya, but if this is the case...what articles are you missing? You > are getting ~10GB of binary stuff, but what about the rest of the news? > :) If I'm getting ~450k articles of non-binaries, you appear to be > short somewhere? Nothing, as far as I can tell. 90% of the 10GB/day is only about 10% of the articles-- about 45K or so. -- Cerebus <tmill06@ibm.net>
Re: What is a Full Feed Anyway? (Was: Re: Slow news server)
Author: Timothy J. Miller
Date: Tue, 09 Jun 1998 00:00
Date: Tue, 09 Jun 1998 00:00
12 lines
1450 bytes
1450 bytes
marc@acadiau.ca (Marc G. Fournier) writes: > I really must...I have mp3, cd and pretty much every variant on *bin* > filtered out using cleanfeed, Lucky you. Wish I could. -- Cerebus <tmill06@ibm.net>
Re: What is a Full Feed Anyway? (Was: Re: Slow news server)
Author: Marc G. Fournier
Date: Tue, 09 Jun 1998 00:00
Date: Tue, 09 Jun 1998 00:00
26 lines
2280 bytes
2280 bytes
In article <87wwari7tn.fsf@ibm.net>, tmill06@ibm.net (Timothy J. Miller) writes: > marc@acadiau.ca (Marc G. Fournier) writes: > >> I don't believe that this is accurate...I'm seeing >450k articles per >> day, much much less then 10G/day, and alt.bin* turned off at my feeds... > > It depends on a lot-- I filter aggressively via cleanfeed and > have !cyberspam shunned, and I get about 450K articles/day and anywhere > from 8-12GB/day. I really must...I have mp3, cd and pretty much every variant on *bin* filtered out using cleanfeed, *and* have !cyberspam shunned at my feeds (or, at least, most of them), and last night did: 448376 articles @ 2.6GB (assuming innreport to be accurate)...of course, the night before I did 3.6GB in 426815 articles, so...*shrug* -- Marc G. Fournier marc.fournier@acadiau.ca Systems Administrator, Acadia University "These are my opinions, which are not necessarily reflected by my employer"
What is a Full Feed Anyway? (Was: Re: Slow news server)
Author: Marc G. Fournier
Date: Tue, 09 Jun 1998 00:00
Date: Tue, 09 Jun 1998 00:00
20 lines
1990 bytes
1990 bytes
In article <357C4556.953E788A@domaintje.com>, Frank Ederveen <frank@domaintje.com> writes: >> Cancels can affect the artwrite numbers. What you think is a >> "full feed" has to be used to interpret these numbers also... > Full feed, after being filtered through CleanFeed on the server > side and having 'cyberspam' as an alias for this machine should > be around 10G/day or 450k articles or so. I don't believe that this is accurate...I'm seeing >450k articles per day, much much less then 10G/day, and alt.bin* turned off at my feeds... -- Marc G. Fournier marc.fournier@acadiau.ca Systems Administrator, Acadia University "These are my opinions, which are not necessarily reflected by my employer"
Re: What is a Full Feed Anyway? (Was: Re: Slow news server)
Author: Marc G. Fournier
Date: Tue, 09 Jun 1998 00:00
Date: Tue, 09 Jun 1998 00:00
21 lines
2050 bytes
2050 bytes
In article <87soled6r7.fsf@ibm.net>, tmill06@ibm.net (Timothy J. Miller) writes: > marc@acadiau.ca (Marc G. Fournier) writes: > >> I really must...I have mp3, cd and pretty much every variant on *bin* >> filtered out using cleanfeed, > > Lucky you. Wish I could. Ya, but if this is the case...what articles are you missing? You are getting ~10GB of binary stuff, but what about the rest of the news? :) If I'm getting ~450k articles of non-binaries, you appear to be short somewhere? -- Marc G. Fournier marc.fournier@acadiau.ca Systems Administrator, Acadia University "These are my opinions, which are not necessarily reflected by my employer"
Re: INN 2.0 ( Was: Re: Slow news server )
Author: Marc G. Fournier
Date: Tue, 09 Jun 1998 00:00
Date: Tue, 09 Jun 1998 00:00
29 lines
2003 bytes
2003 bytes
In article <357CD420.FF2971FB@domaintje.com>, Frank <frank@domaintje.com> writes: > Marc G. Fournier wrote: > Last night it had almost cought up but this morning there was a full > backlog > again. I'm also looking into the settings of the OS. Maybe there is > something > wrong with FreeBSD-stable and the latest CAM patches? At about 1000 I'm running FreeBSD-CURRENT here with the latest CAM drivers...how does iozone perform? > articles/5 > minutes it should catch up. However, I expect a machine like this to be > zooming > along and not have to work so hard at it. 9 or 10 articles/second isn't > very good. If you have a backlog, no, this isn't particularly impressive... -- Marc G. Fournier marc.fournier@acadiau.ca Systems Administrator, Acadia University "These are my opinions, which are not necessarily reflected by my employer"
Re: INN 2.0 ( Was: Re: Slow news server )
Author: Frank Ederveen
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
24 lines
1892 bytes
1892 bytes
Marc G. Fournier wrote: > > In article <357CD420.FF2971FB@domaintje.com>, > Frank <frank@domaintje.com> writes: > > Marc G. Fournier wrote: > I'm running FreeBSD-CURRENT here with the latest CAM drivers...how does > iozone perform? Don't know about IOZONE but a simple dd with 1 meg blocks gives me about 14Mbyte/sec per disk. With 6 disks running at once I get a total of 36Mbyte/sec. Works like a charm. > > articles/5 minutes it should catch up. However, I expect a machine like this to be > > zooming along and not have to work so hard at it. 9 or 10 articles/second isn't > > very good. >If you have a backlog, no, this isn't particularly impressive... I know; been upgrading FreeBSD, INN, checking things left and right but still can't seem to get a grip on it. It's probably caused by something very small and stupid; oh well, will just keep staring at it some more =) FrankE
Re: INN 2.0 ( Was: Re: Slow news server )
Author: Frank Ederveen
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
24 lines
1893 bytes
1893 bytes
Marc G. Fournier wrote: > > In article <357CD420.FF2971FB@domaintje.com>, > Frank <frank@domaintje.com> writes: > > Marc G. Fournier wrote: > I'm running FreeBSD-CURRENT here with the latest CAM drivers...how does > iozone perform? Don't know about IOZONE but a simple dd with 1 meg blocks gives me about 14Mbyte/sec per disk. With 6 disks running at once I get a total of 36Mbyte/sec. Works like a charm. > > articles/5 minutes it should catch up. However, I expect a machine like this to be > > zooming along and not have to work so hard at it. 9 or 10 articles/second isn't > > very good. >If you have a backlog, no, this isn't particularly impressive... I know; been upgrading FreeBSD, INN, checking things left and right but still can't seem to get a grip on it. It's probably caused by something very small and stupid; oh well, will just keep staring at it some more =) FrankE
Re: Example ktrace's to trace down news latency problems (was Re: Slow news server)
Author: Jeff Garzik
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
14 lines
1162 bytes
1162 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: : Great example, Matt, now I have an incentive to install strace on my : Solaris boxes. :-) Solaris comes with truss(1) -- Jeff Garzik Typhoon, Cyclone, Diablo, and INN http://www.spinne.com/usenet/ News tuning and consulting
Example ktrace's to trace down news latency problems (was Re: Slow news server)
Author: Matt Dillon
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
227 lines
12244 bytes
12244 bytes
news1 is my diablo machine. 206.86.0.12 is one of my NNTP machines.
The data below indicates that my diablo machine is able to keep
the TCP queue to the nntp machine relatively full.
news1:/news> netstat -tn | fgrep 206.86.0.12 | fgrep ESTAB
tcp 0 0 209.24.149.21.4414 206.86.0.12.434 ESTABLISHED
tcp 345 1216 209.24.149.21.4374 206.86.0.12.434 ESTABLISHED
news1:/news> netstat -tn | fgrep 206.86.0.12 | fgrep ESTAB
tcp 0 0 209.24.149.21.4414 206.86.0.12.434 ESTABLISHED
tcp 0 2752 209.24.149.21.4374 206.86.0.12.434 ESTABLISHED
news1:/news> netstat -tn | fgrep 206.86.0.12 | fgrep ESTAB
tcp 0 0 209.24.149.21.4414 206.86.0.12.434 ESTABLISHED
tcp 107 1216 209.24.149.21.4374 206.86.0.12.434 ESTABLISHED
news1:/news> netstat -tn | fgrep 206.86.0.12 | fgrep ESTAB
tcp 0 0 209.24.149.21.4414 206.86.0.12.434 ESTABLISHED
tcp 107 608 209.24.149.21.4374 206.86.0.12.434 ESTABLISHED
news1:/news> netstat -tn | fgrep 206.86.0.12 | fgrep ESTAB
tcp 0 0 209.24.149.21.4414 206.86.0.12.434 ESTABLISHED
tcp 107 992 209.24.149.21.4374 206.86.0.12.434 ESTABLISHED
news1:/news> netstat -tn | fgrep 206.86.0.12 | fgrep ESTAB
tcp 0 0 209.24.149.21.4414 206.86.0.12.434 ESTABLISHED
tcp 107 0 209.24.149.21.4374 206.86.0.12.434 ESTABLISHED
news1:/news> netstat -tn | fgrep 206.86.0.12 | fgrep ESTAB
tcp 0 0 209.24.149.21.4414 206.86.0.12.434 ESTABLISHED
tcp 218 65536 209.24.149.21.4374 206.86.0.12.434 ESTABLISHED
p.s. note that I'm using large TCP buffers... 65536, in fact.
This may not work properly with earlier FreeBSD releases
due to a bug in the tcp stack, so if you aren't sure you should
use 49152 byte tcp windows.
Ok, on my INN box, the netstat -tn of the same connections
indicates that the RECEIVE queue is staying relatively full,
meaning that the INN box is not able to drain it quickly
enough meaning that INN is loaded. (in my case, this is an old
INN which I've tuned up the wazoo. It barely keeps up with
a full feed even after diablo's spam filter):
nntp2:/news> netstat -tn | fgrep 209.24.149.21
tcp 0 0 206.86.0.12.434 209.24.149.21.4414 ESTABLISHED
tcp 81920 0 206.86.0.12.434 209.24.149.21.4374 ESTABLISHED
nntp2:/news> netstat -tn | fgrep 209.24.149.21
tcp 0 0 206.86.0.12.434 209.24.149.21.4414 ESTABLISHED
tcp 81920 0 206.86.0.12.434 209.24.149.21.4374 ESTABLISHED
nntp2:/news> netstat -tn | fgrep 209.24.149.21
tcp 0 0 206.86.0.12.434 209.24.149.21.4414 ESTABLISHED
tcp 81920 0 206.86.0.12.434 209.24.149.21.4374 ESTABLISHED
nntp2:/news> netstat -tn | fgrep 209.24.149.21
tcp 0 0 206.86.0.12.434 209.24.149.21.4414 ESTABLISHED
tcp 81920 0 206.86.0.12.434 209.24.149.21.4374 ESTABLISHED
nntp2:/news> netstat -tn | fgrep 209.24.149.21
tcp 0 0 206.86.0.12.434 209.24.149.21.4414 ESTABLISHED
tcp 33078 0 206.86.0.12.434 209.24.149.21.4374 ESTABLISHED
nntp2:/news> netstat -tn | fgrep 209.24.149.21
tcp 0 0 206.86.0.12.434 209.24.149.21.4414 ESTABLISHED
tcp 29686 0 206.86.0.12.434 209.24.149.21.4374 ESTABLISHED
nntp2:/news> netstat -tn | fgrep 209.24.149.21
tcp 0 0 206.86.0.12.434 209.24.149.21.4414 ESTABLISHED
tcp 0 53 206.86.0.12.434 209.24.149.21.4374 ESTABLISHED
nntp2:/news>
But the netstat alone may not give you enough information. After
all, queues that big mean that I'm probably pushing large articles.
So I ktrace the innd process for a while:
nntp2:/news> ps x | fgrep innd
254 ?? D<s 2325:26.86 /usr/local/etc/innd -p4 -i0 -L -c4
29835 p0 S+ 0:00.01 fgrep innd
nntp2:/news> ktrace -p 254
nntp2:/news> sleep 60
nntp2:/news> ktrace -C
nntp2:/news> kdump -R | less
And I observe the kdump output to try to determine where the
bottlenecks are (you would want to look at all the select()'s,
I'm just printing the first 20 in this posting):
Get a feel for the kdump output:
nntp2:/news> kdump -R | less
Here, the relatively low select() latencies indicate that
select() is not blocking, which means that data is built up
in the read queue from the socket and select is returning
immediately... if most of the select()s are this way,
INND is not able to read the data fast enough meaning that
it is probably having problems doing history lookups
or file writes.
nntp2:/news> kdump -R | fgrep select | head -20
254 innd 897462359.252239 RET select 1
254 innd 0.000709 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.000031 RET select 1
254 innd 0.000095 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.000027 RET select 1
254 innd 0.000223 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.089403 RET select 1
254 innd 0.000514 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.000037 RET select 1
254 innd 0.000132 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.000198 RET select 1
254 innd 0.000110 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.099462 RET select 1
254 innd 0.001301 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.000036 RET select 1
254 innd 0.000249 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.000031 RET select 1
254 innd 0.000077 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
254 innd 0.000431 RET select 1
254 innd 0.000069 CALL select(0xe,0xefbfdc8c,0xefbfdc6c,0,0xefbfdc64)
Look at your open() latencies (or if you are using CNFS,
look at open latencies and more importantly, seek/read/write latencies):
In my case, open latencies are pretty bad since I'm using a normal
filesystem.
nntp2:/news> kdump -R | fgrep open
254 innd 0.013167 CALL open(0xefbfd654,0x601,0x1b4)
254 innd 0.001489 RET open 20/0x14
254 innd 0.009874 CALL open(0xefbfd654,0x601,0x1b4)
254 innd 0.203921 RET open 20/0x14
254 innd 0.010379 CALL open(0xefbfd654,0x601,0x1b4)
254 innd 0.060001 RET open 20/0x14
254 innd 0.012349 CALL open(0xefbfd654,0x601,0x1b4)
254 innd 0.040169 RET open 20/0x14
254 innd 0.015078 CALL open(0xefbfd654,0x601,0x1b4)
254 innd 0.181994 RET open 20/0x14
254 innd 0.015770 CALL open(0xefbfd654,0x601,0x1b4)
254 innd 0.183961 RET open 20/0x14
254 innd 0.012271 CALL open(0xefbfd654,0x601,0x1b4)
254 innd 0.367897 RET open 20/0x14
254 innd 0.012106 CALL open(0xefbfd654,0x601,0x1b4)
254 innd 0.106144 RET open 20/0x14
...
My seeks look pretty good (they'd better, the kernel doesn't
actually do much for an lseek()):
nntp2:/news> kdump -R | fgrep lseek | head -20
254 innd 0.000075 CALL lseek(0xe,0,0,0,0x1)
254 innd 0.000024 RET lseek 205250633/0xc3be049
254 innd 0.000137 CALL lseek(0x11,0,0x52a4f0,0,0)
254 innd 0.000027 RET lseek 5416176/0x52a4f0
254 innd 0.000942 CALL lseek(0x12,0,0x246ae3e,0,0)
254 innd 0.000034 RET lseek 38186558/0x246ae3e
254 innd 0.000058 CALL lseek(0x12,0,0x7e24df5,0,0)
254 innd 0.000024 RET lseek 132271605/0x7e24df5
254 innd 0.000055 CALL lseek(0x12,0,0x60818d3,0,0)
254 innd 0.000023 RET lseek 101193939/0x60818d3
254 innd 0.000090 CALL lseek(0xe,0,0,0,0x1)
254 innd 0.000024 RET lseek 205250713/0xc3be099
254 innd 0.000061 CALL lseek(0x11,0,0xb98008,0,0)
254 innd 0.000104 RET lseek 12156936/0xb98008
254 innd 0.000035 CALL lseek(0x10,0,0,0,0)
254 innd 0.000119 RET lseek 0
254 innd 0.000053 CALL lseek(0xe,0,0,0,0x1)
254 innd 0.000021 RET lseek 205250834/0xc3be112
254 innd 0.000067 CALL lseek(0x11,0,0xd03cc,0,0)
254 innd 0.000021 RET lseek 852940/0xd03cc
My reads (mostly network reads and history reads):
254 innd 0.000154 RET read 4928/0x1340
254 innd 0.000029 CALL read(0x7,0x7b165a,0x2000)
254 innd 0.000125 GIO fd 7 read 7200 bytes
254 innd 0.000292 RET read 7200/0x1c20
254 innd 0.000067 CALL read(0x7,0x7b327a,0x2000)
254 innd 0.000094 GIO fd 7 read 4320 bytes
254 innd 0.000377 RET read 4320/0x10e0
254 innd 0.000025 CALL read(0x7,0x7b435a,0x2000)
254 innd 0.000071 GIO fd 7 read 2880 bytes
254 innd 0.000068 RET read 2880/0xb40
254 innd 0.000024 CALL read(0x7,0x7b4e9a,0x2000)
254 innd 0.000039 GIO fd 7 read 1152 bytes
254 innd 0.000470 RET read 1152/0x480
254 innd 0.000075 CALL read(0x7,0x7b531a,0x2000)
254 innd 0.000088 GIO fd 7 read 2880 bytes
254 innd 0.000116 RET read 2880/0xb40
254 innd 0.000072 CALL read(0x7,0x7b5e5a,0x2000)
254 innd 0.000199 GIO fd 7 read 7200 bytes
My writes! The INN I use uses writev() to write articles,
so it's easy to find it. In my case, they are pretty
good:
254 innd 0.016623 RET writev 196212/0x2fe74
254 innd 0.000079 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.000053 RET writev 1065/0x429
254 innd 0.000124 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.000229 RET writev 2286/0x8ee
254 innd 0.000124 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.000074 RET writev 2647/0xa57
254 innd 0.000078 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.000065 RET writev 1292/0x50c
254 innd 0.000086 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.000321 RET writev 3411/0xd53
254 innd 0.000061 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.000071 RET writev 1346/0x542
254 innd 0.000079 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.000051 RET writev 759/0x2f7
254 innd 0.000095 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.051205 RET writev 565400/0x8a098
254 innd 0.000092 CALL writev(0x14,0xefbfd078,0x6)
254 innd 0.000061 RET writev 1166/0x48e
254 innd 0.000073 CALL writev(0x14,0xefbfd078,0x6)
And so on. So, this analysis of my news system has
indicated that my feeder has no problem keeping the
pipe full (running diablo), but my INN news box has
definite problems open()ing those article files, but
once open it's reasonably fast. And, by looking carefully
at the read()'s I've determined that my INN news box
has no problem with the history file lookups.
There, that's the end of my example analysis of a news
system using ktrace and netstat.
-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
Re: Example ktrace's to trace down news latency problems (was Re: Slow news server)
Author: Matt Dillon
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
27 lines
1633 bytes
1633 bytes
:In article <yy3wwapv4hy.fsf@velo.pp.vix.com>,
:James Brister <brister@vix.com> wrote:
:>dillon@best.net (Matt Dillon) writes:
:>
:>> There, that's the end of my example analysis of a news
:>> system using ktrace and netstat.
:>
:>Nice stuff. That should probably go into a FAQ somewhere....
:>
:>James
:>--
:>James Brister brister@vix.com
:>Internet Software Consortium http://www.isc.org inn@isc.org
i'll stick it on my site (www.backplane.com) ... maybe I'll even eventually
organize it all :-)
-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
Re: Example ktrace's to trace down news latency problems (was Re: Slow news server)
Author: James Brister
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
14 lines
1222 bytes
1222 bytes
dillon@best.net (Matt Dillon) writes: > There, that's the end of my example analysis of a news > system using ktrace and netstat. Nice stuff. That should probably go into a FAQ somewhere.... James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org inn@isc.org
Re: Example ktrace's to trace down news latency problems (was Re: Slow news server)
Author: Dale Ghent
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
20 lines
1468 bytes
1468 bytes
Jeff Garzik wrote:
>
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> : Great example, Matt, now I have an incentive to install strace on my
> : Solaris boxes. :-)
>
> Solaris comes with truss(1)
SunOS and Linux use strace, and IRIX uses par (with the -sSS option)
-Dale G.
--
Dale Ghent daleg @ digex.net
NetworkNews Administrator DIGEX, Inc.
http://www.digex.net Beltsville, MD
I speak for myself
Re: Example ktrace's to trace down news latency problems (was Re: Slow news server)
Author: Kjetil Torgrim Homme
Date: Wed, 10 Jun 1998 00:00
Date: Wed, 10 Jun 1998 00:00
20 lines
1395 bytes
1395 bytes
Great example, Matt, now I have an incentive to install strace on my Solaris boxes. :-) strace -r gives relative time stamps. That's not quite as good as ktrace, since time spent computing will show up and can be mistaken for time taken in a system call. If this worries you and you don't mind a bit more overhead, you can use strace -T, or even both switches at the same time! par on Irix supports timing system calls as well, if anyone runs news on such a box. (I find par -s -u -SS -t 30 -p pid useful.) I don't know how to accomplish "netstat -t" on non-BSD boxen, though. Anybody? Kjetil T.
Re: Slow news server
Author: Dan Foster
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
46 lines
2571 bytes
2571 bytes
In article <6lp9mc$99a$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote: >:In article <358023F1.D8FF8E9@domaintje.com>, >:Frank <frank@domaintje.com> wrote: >:>Matt Dillon wrote: >:>> :>> In article <357B6AA1.8965C021@domaintje.com>, >:.. >:>> :>*puzzled* >:>> ktrace is your friend. >:>And so are the people on this newsgroup, which makes this quite hard to >:>admit... >:> >:>This is most embarrassing; the problem has been solved and turned out not >:>to be INN or FreeBSD related at all. I found out this morning that the >:>FastEthernet port of the Cisco linking the Catalist/LAN to our backbone >:>wasn't set to Full Duplex like the switch. The interface had about 10 >:>late collision per second and got knows what other errors. > > Hey all right! Solving the problem is always more important then > whatever embarassment might come from the solution. In this case, Ditto! > though, you shouldn't feel embarassed.... Catalyst's and most > 10/100BaseT ethernet cards don't auto-detect very well. This means > that you have to manually set the interfacing parameters on > both ends rather then just let them auto-negotiate. Ditto!!!! > We have virtually the same setup... A catalyst 5500 in the core of our > internal network, and it took a week for us to figure out that we had to > lock down the interfaces on both the catalyst end and the FreeBSD end > in order to make 100BaseTX work. Had the *exact* same experience too :) 7 days of news running at 10% along with a catalyst switch. Since admins were so tired, we didn't think to correspond a 10% figure with 10% of 100 Mbps happening to be 10 Mbps :-) Sure enough, we put it into full duplex and locked into 100 Mbps on *both* ends and that nasty little gremlin crept away. Never want to repeat that particular experience again :-) -Dan
Re: Slow news server
Author: Frank
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
45 lines
2575 bytes
2575 bytes
Matt Dillon 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. And so are the people on this newsgroup, which makes this quite hard to admit... This is most embarrassing; the problem has been solved and turned out not to be INN or FreeBSD related at all. I found out this morning that the FastEthernet port of the Cisco linking the Catalist/LAN to our backbone wasn't set to Full Duplex like the switch. The interface had about 10 late collision per second and got knows what other errors. Pings were going through just fine so I didn't look at the network any further. Sorry to have put all you people to work on something where the fault turns out to be completely off topic. Before I looked at the network I downgraded the machine to INN-1.7.2-insync-1.1d which is known to be good. The backlog still didn't go away. I then tried to ftp some big files between the two servers and noticed that the flow seemed to be interrupted every now and again. Thanks for all the good care though =) Regards, FrankE, who is now a little bit wiser again.
Re: Slow news server
Author: Matt Dillon
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
49 lines
2633 bytes
2633 bytes
:In article <358023F1.D8FF8E9@domaintje.com>,
:Frank <frank@domaintje.com> wrote:
:>Matt Dillon wrote:
:>> :>> In article <357B6AA1.8965C021@domaintje.com>,
:..
:>> :>*puzzled*
:>> ktrace is your friend.
:>And so are the people on this newsgroup, which makes this quite hard to
:>admit...
:>
:>This is most embarrassing; the problem has been solved and turned out not
:>to be INN or FreeBSD related at all. I found out this morning that the
:>FastEthernet port of the Cisco linking the Catalist/LAN to our backbone
:>wasn't set to Full Duplex like the switch. The interface had about 10
:>late collision per second and got knows what other errors.
Hey all right! Solving the problem is always more important then
whatever embarassment might come from the solution. In this case,
though, you shouldn't feel embarassed.... Catalyst's and most
10/100BaseT ethernet cards don't auto-detect very well. This means
that you have to manually set the interfacing parameters on
both ends rather then just let them auto-negotiate.
We have virtually the same setup... A catalyst 5500 in the core of our
internal network, and it took a week for us to figure out that we had to
lock down the interfaces on both the catalyst end and the FreeBSD end
in order to make 100BaseTX work.
The late hits you were getting created packet loss which really screws
up TCP connections, especially when you are trying to push a lot of
bandwidth through them.
-Matt
:>Thanks for all the good care though =)
:>
:>Regards,
:>
:>FrankE, who is now a little bit wiser again.
--
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
Re: Example ktrace's to trace down news latency problems (was Re: Slow news server)
Author: Per Hedeland
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
26 lines
1620 bytes
1620 bytes
In article <E8Bf1.1384$JX6.643510@news.teleport.com>,
Jeff Garzik <jgarzik@normnet.org> writes:
>Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>: Great example, Matt, now I have an incentive to install strace on my
>: Solaris boxes. :-)
>
>Solaris comes with truss(1)
Which is totally useless for this purpose, as it doesn't do any timing
*at all* (or at least I haven't figured out a way to get any timing info
out of it:-). Just to make things even more interesting, Solaris *does*
come with strace - but it's a totally different program from the "real"
strace:
NAME
strace - print STREAMS trace messages
SYNOPSIS
strace [ mid sid level ] ...
--Per Hedeland
per@erix.ericsson.se
Re: Slow news server
Author: Larry Rosenman
Date: Thu, 11 Jun 1998 00:00
Date: Thu, 11 Jun 1998 00:00
63 lines
3139 bytes
3139 bytes
In article <6lp9mc$99a$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote: >:In article <358023F1.D8FF8E9@domaintje.com>, >:Frank <frank@domaintje.com> wrote: >:>Matt Dillon wrote: >:>> :>> In article <357B6AA1.8965C021@domaintje.com>, >:.. >:>> :>*puzzled* >:>> ktrace is your friend. >:>And so are the people on this newsgroup, which makes this quite hard to >:>admit... >:> >:>This is most embarrassing; the problem has been solved and turned out not >:>to be INN or FreeBSD related at all. I found out this morning that the >:>FastEthernet port of the Cisco linking the Catalist/LAN to our backbone >:>wasn't set to Full Duplex like the switch. The interface had about 10 >:>late collision per second and got knows what other errors. > > Hey all right! Solving the problem is always more important then > whatever embarassment might come from the solution. In this case, > though, you shouldn't feel embarassed.... Catalyst's and most > 10/100BaseT ethernet cards don't auto-detect very well. This means > that you have to manually set the interfacing parameters on > both ends rather then just let them auto-negotiate. > > We have virtually the same setup... A catalyst 5500 in the core of our > internal network, and it took a week for us to figure out that we had to > lock down the interfaces on both the catalyst end and the FreeBSD end > in order to make 100BaseTX work. > > The late hits you were getting created packet loss which really screws > up TCP connections, especially when you are trying to push a lot of > bandwidth through them. This was my problem on the NetApp, as well... Amazing what late hits and CRC's will do. Went from accepting 2-3GB/Day to 7.7GB the last 2 days. Larry Rosenman > > -Matt > >:>Thanks for all the good care though =) >:> >:>Regards, >:> >:>FrankE, who is now a little bit wiser again. > > >-- > 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 -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
Re: Slow news server
Author: Curt Welch
Date: Sat, 13 Jun 1998 00:00
Date: Sat, 13 Jun 1998 00:00
23 lines
1961 bytes
1961 bytes
dsf@frontiernet.net (Dan Foster) wrote: > > We have virtually the same setup... A catalyst 5500 in the core of > > our internal network, and it took a week for us to figure out that > > we had to lock down the interfaces on both the catalyst end and the > > FreeBSD end in order to make 100BaseTX work. I had problems getting my switch (a Compacq 5708) to correctly switch to 100BaseTX mode on one of my FreeBSD boxs. But I solved this by adding code at boot time which did an ifconfig down, sleep 1, ifconfig up. The problem was related to the fact that when the system booted, the card was in 10Base-T mode. When it switched to 100BaseTX mode, the switch didn't notice it unless you pulled the cable and put it back in. The down, sleep, up, code solved the problem. Anyone having autosense problems might try that. It's a lot better than having to hard-code the config into the switch. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Page 2 of 2 • 73 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads