🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15223

Re: Problems streaming to Linux systems?

#15223
From: Brian Kelly
Date: Fri, 21 Feb 1997 00:00
47 lines
2742 bytes
In Article <5eg4d2$ruc@usenet1y.prodigy.net> davidsen@tmr.com (bill davidsen) writes:
>Unfortunately the Linux net code seems to be subject to problems
>like this under heavy load. I have seen it with non-news programs,
>so I don't think that it's news related per se. But when you start
>beating on the network and have lots of connections open at once,
>every once in a while data intended for one socket seems to go out
>on another, resulting in lost data on one and "found" data on the
>other.

As it happen I'm trying to track down what I believe to be this problem at
the moment. I've got two Linux boxes, connected by fast ethernet. I have a
two utilites, one spews out random length, random crosspost, random message-id
length articles in a "deep" streaming feed. The other eats this sort of feed,
but does nothing with it. With two feeders throwing data across the link
I'm reliably getting this sort of problem (more below) on one or other of the
connections. Someimes it happens after a few hundered megabytes of data,
sometimes after a couple of gigs. Once one of the connections blows up, the
other will continue without problems.

The problem appears to be on the feeder end of the connection. I'm
using non blocking I/O and only write to or read from the sockets if select()
has said I can. At a certain point in the whole procedure the read() (which 
should only be getting answers to check and takethis) receives 31k (I think
that's reliable) of data. The first few bytes of this is a proper response,
the rest is garbage, sourced on the local machine. I don't believe it's come
across the link. 

If I restrict the size of my individual write()s on the feeder machine to 4K,
the problem seems to go away.

I've tried to setup a simpler test program that exhibits this problem, but
I haven't been able to yet (you know how it is when you get a workaround).

Source Box:
P90, Linux 2.0.21, libc 5.4.17

Sink Box:
Cyrix P150+, Linux 2.0.27, libc 5.4.17

Brian
-- 
ObAFUFAQ: F. Halloween sadists randomly give poisoned candy to children.

bkelly@sulaco.com

Technical Details
Message-ID: <BKELLY.97Feb21192329@sulaco.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
References: <E5t578.M6x@spcuna.spc.edu> <5eg4d2$ruc@usenet1y.prodigy.net>

Show Full Headers
Complete Article Headers
Message-ID: <BKELLY.97Feb21192329@sulaco.com>
Subject: Re: Problems streaming to Linux systems?
Date: Fri, 21 Feb 1997 00:00:00 +0000
From: bkelly@sulaco.com (Brian Kelly)
References: <E5t578.M6x@spcuna.spc.edu> <5eg4d2$ruc@usenet1y.prodigy.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-mail
X-Deja-AN: 220479579
Distribution: inet
X-NNTP-Posting-Host: dropship.demon.co.uk
Organization: None
Newsgroups: news.software.nntp