🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by richard.brons Wed, 10 Feb 1999 00:00
diablo dnewslink & solaris
#35292
Author: richard.brons
Date: Wed, 10 Feb 1999 00:00
13 lines
1359 bytes
On Solaris, the diablo dnewslink does not seem to function properly ever
since version 1.16-test-10, where the "headerfeed only" was implemented. That
is, dnewslink feeds the "headers only" fine, but regular "headers + message
bodies" feeds loose appr. 40% of the bodies. Does anybody using Solaris
experienced something like that?(in my case, Solaris 2.6 both on Ultra-1 and
Ultra 450)

Richard

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

Re: diablo dnewslink & solaris
#35288
Author: Brad Knowles
Date: Wed, 10 Feb 1999 00:00
18 lines
1513 bytes
In article <79rnpa$6e3$1@nnrp1.dejanews.com>,
richard.brons@inet.unisource.nl wrote:

> On Solaris, the diablo dnewslink does not seem to function properly ever
> since version 1.16-test-10, where the "headerfeed only" was implemented. That
> is, dnewslink feeds the "headers only" fine, but regular "headers + message
> bodies" feeds loose appr. 40% of the bodies.

    Maybe you're rejecting 40% spam or messages that have since been
cancelled or hit with a NoCeM?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
        If you wouldn't take out a one-page ad in the Wall Street
        Journal to say something, then don't say it by email.

Re: diablo dnewslink & solaris
#35289
Author: Russell Vincent
Date: Wed, 10 Feb 1999 00:00
31 lines
1733 bytes
richard.brons@inet.unisource.nl wrote:
> On Solaris, the diablo dnewslink does not seem to function properly ever
> since version 1.16-test-10, where the "headerfeed only" was implemented. That
> is, dnewslink feeds the "headers only" fine, but regular "headers + message
> bodies" feeds loose appr. 40% of the bodies. Does anybody using Solaris
> experienced something like that?(in my case, Solaris 2.6 both on Ultra-1 and
> Ultra 450)

I was getting a similar problem where a feed to an INN machine was
going very slowly (also Solaris) - I didn't notice if it was a
'losing bodies' problem, but didn't look that closely. I disabled the
TCP_NODELAY code (introduced in 1.16-test12) in dnewslink.c and
preliminary results seem to indicate that it is helping quite
dramatically. I disabled the following segment of code in
util/dnewslink.c, by adding the 'x' on the first line:

#ifdef xTCP_NODELAY
    /*
     * Turn on TCP_NODELAY
     */
    if (fd >= 0) {
        int one = 1;
        setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
    }
#endif

 -Russell
(Remove nosp. to email me)


Re: diablo dnewslink & solaris
#35350
Author: Matt Dillon
Date: Thu, 11 Feb 1999 00:00
33 lines
1736 bytes
:In article <79s30t$r04$1@wave.cam.uk.internal>,
:Russell Vincent  <russellv-n@nosp.uk.uu.net> wrote:
:>richard.brons@inet.unisource.nl wrote:
:>> On Solaris, the diablo dnewslink does not seem to function properly ever
:..
:>
:>#ifdef xTCP_NODELAY
:>    /*
:>     * Turn on TCP_NODELAY
:>     */
:>    if (fd >= 0) {
:>        int one = 1;
:>        setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
:>    }
:>#endif
:>
:> -Russell

    Really?  You disabled this on Solaris and it improved dnewslink?
    Very odd... I added that piece of code after getting a bunch of 
    complaints that dnewslink's transactions were running very slow
    due to delayed acks ( but I forget what OS that was under ).  Ugh.
    Fix one OS, break another :-(.  Anyone else running Solaris get
    an improvement with the above hack / code removal ?

					-Matt

-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Re: diablo dnewslink & solaris
#35377
Author: raj
Date: Fri, 12 Feb 1999 00:00
12 lines
1325 bytes
how does dnewslink present messages to the connection? was it synchronous
reqeust/reponse on a message by message basis, or was it pipelined? was it
doing something unfortuneate like presenting a message to the connection in
multiple sends? i've always wondered how often TCP_NODELAY is _really_ needed
and how often it is just a kludge.

rick jones

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

Re: diablo dnewslink & solaris
#35380
Author: Matthew Dillon
Date: Fri, 12 Feb 1999 00:00
31 lines
2200 bytes
:In article <7a05r3$4lj$1@nnrp1.dejanews.com>,  <raj@cup.hp.com> wrote:
:>how does dnewslink present messages to the connection? was it synchronous
:>reqeust/reponse on a message by message basis, or was it pipelined? was it
:>doing something unfortuneate like presenting a message to the connection in
:>multiple sends? i've always wondered how often TCP_NODELAY is _really_ needed
:>and how often it is just a kludge.
:>
:>rick jones

    It's pipelined.  dnewslink utilizes the fact that TCP buffers outgoing
    and incoming data to keep the outgoing pipeline full.  It fills the
    outgoing pipeline then blocks on reading a response.  It then loops up
    and fills the outgoing pipeline again.  This way it can get away with
    using normal blocking I/O and still maintain a command/response pipeline.

    dnewslink buffers up multiple requests itself and sends them out 
    with a single write.  I stick TCP_NODELAY in there because nagle would 
    occassionally kick in and/or the delayed-ack (0.1 sec) would cause a big 
    drop in performance, at least with FreeBSD.  Having TCP_NODELAY should
    not have any sort of detrimental effect because it's a transaction
    oriented protocol and I implement low/high buffering water marks in 
    software to avoid a silly-window syndrome.

						-Matt

-- 
    Matthew Dillon   Engineering, BEST Internet Communications, Inc.
		     <dillon@backplane.com>
    [always include a portion of the original email in any response!]

Re: diablo dnewslink & solaris
#35389
Author: Russell Vincent
Date: Fri, 12 Feb 1999 00:00
14 lines
1048 bytes
Matt Dillon <dillon@best.net> wrote:

>     Really?  You disabled this on Solaris and it improved dnewslink?

Now that I have been running it for a few days, I am not noticing
as significant improvement as I originally thought. The perils on
the high variability of newsfeeds.  :(

I will do some more controlled testing over the next week and report back.

 -Russell


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