Article View: news.software.nntp
Article #32824Re: diablo dreaderd dexpireover on linux
From: Matt Dillon
Date: Tue, 10 Nov 1998 00:00
Date: Tue, 10 Nov 1998 00:00
64 lines
4215 bytes
4215 bytes
:In article <729791$61r$1@nnrp1.dejanews.com>,
: <richard.brons@inet.unisource.nl> wrote:
:>>
:>Matt,
:>
:>A further checking of the huge strace output (i.e. comparing lseeking/writing
:>of files against them being closed) has to wait until our headerfeed
:>test-customer has build up a larger dgroup dir, but he is running on freebsd,
:>though. This brings me to a question far more important (for our production
:>environment) Having upgraded diablo to rel. 1.20 (for the headerfeed, mainly)
:>I experience the same problem as I had with rel. 1.16b12 (we preferred to
:>stay with 1.16b8), namely, a significant decline of dnewslink's outgoing
:>feed-volumes, without backlogging the deficit. Before any further analysis, I
:>have to decide (we have many big peers on this particular machine) either to
:>return to the older diablo version (and loose the headerfeed option), or to
:>use the older dnewslink (for the regular feeds) parallel to the newer one
:>(for the headerfeed). Would that be possible, running them on different
:>cronjobs both on the 1.20 level? btw, diablo 1.16b8 performed excellently,
:>like it still does on our customer-servers. I would appreciate your advice on
:>this very much, Richard
:>
:>
:>
:>-----------== Posted via Deja News, The Discussion Network ==----------
:>http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Hmm. It's hard to say, the changes I made to dnewslink between 1.16
and 1.20 were mainly in the mmap() and socket tuning departments.
dnewslink mmap()'s the article files now rather then read()ing them,
and it turns on a couple of tcp options. This significantly boosted
performance on my own FreeBSD boxes.
It could be that Linux isn't as efficient handling mmap() (e.g. in regards
to dealing with page faults) then it is handling read(). The only
way to find out is to strace a dnewslink session to see where the
bottleneck is and to also observe the tcp connection's send and receive
buffers via netstat (e.g. 'netstat -tn | fgrep destination-ip' while
dnewslink is running). Ick. I'd hate to have to put the read()
interface back in there but if it's the only way, it's the only way.
I would also check the tcp send and receive window defaults for your
machine. I believe you can get and set them via the linux route command
on a per-route basis. You can also set the send and receive windows
sizes with the R and T options in dnntpspool.ctl ... it might be worth
playing with those. For dnntpspool.ctl, the send window size is the
most important, of course. The larger the window size, the more you
isolate dnewslink overhead from socket latency overhead.
I would dearly love some Linux Diablo users to tune Diablo for linux and
send me the diffs. I've done a lot of tuning work for FreeBSD, but I
don't use linux and I'll bet you could find a couple of things in there
that would make a big difference. It's fairly easy to add machine-specific
tuning in, you just create #define variable in lib/config.h which you
default to 0 at the bottom, then turn it on in the machine-specific
configuration section and use that to #if condition the tuned code.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Technical Details
Message-ID:
<72a3c8$ch6$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:
<7272d6$b0q$1@nnrp1.dejanews.com> <728n8r$8g8$1@flea.best.net> <729791$61r$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
Message-ID: <72a3c8$ch6$1@flea.best.net> Subject: Re: diablo dreaderd dexpireover on linux Date: Tue, 10 Nov 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <7272d6$b0q$1@nnrp1.dejanews.com> <728n8r$8g8$1@flea.best.net> <729791$61r$1@nnrp1.dejanews.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: 410415146 X-Trace: nntp1.ba.best.com 910725325 12761 dillon@206.184.139.131 Organization: BEST Internet Communications, Inc. www.best.com Newsgroups: news.software.nntp