From: Ben Greear <greearb@candelatech.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Network compatibility and performance
Date: Mon, 14 Aug 2006 14:25:50 -0700 [thread overview]
Message-ID: <44E0EA5E.30306@candelatech.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0608140714170.20677@chaos.analogic.com>
linux-os (Dick Johnson) wrote:
> No it will return FAIL (-1) or an error and 0 (the bottom of the procedure)
> if the whole things went. It is mandatory that the whole thing goes
> so this procedure should handle any intermediate actions.
I see..I missed that part.
> Upon your advice, I may try to add select() although, on a write it
> seems to be putting in user-space something that used to be handled
> quite well in the kernel. I don't think the user should really care
> about the kernel internals, whether or not the kernel happens to have
> a buffer available.
Since you put it in non-blocking mode, you need the select() to throttle
unless you want to busy spin. Whether you should have to actually put
in in non-blocking mode or not is a different question.
>>I have no idea why you need to add the MIN() logic..and that seems like
>>something that should not be required.
>>
>
> It seems that some code 'thinks' that a large buffer of data is
> an error and won't even try to send some anymore.
I have seen a problem where I can repeatedly hang a TCP connection
when running at high speed. The tx queue is full or mostly full, and
on the wire I only see 200kpps of duplicate acks. Can't reproduce it
with anything other than my big complicated proprietary app, so it
remains unfixed.
I am not sure if this is related to what you see or not..but could you
check to see if there is lots of acks on the wire when this hang happens?
>>Even 112kbps sucks on a decent network. What is the speed of your
>>network, what protocol are you using, if tcp, what is the latency
>>of your network?
>>
>
>
> The network is a single wire about 8 feet long, connecting Intel gigibit
> links on two identical computers (crossover cable). This link is TCP.
> For high-speed data, I use UDP and I get a higher throughput because
> there is no handshake. Thew latency is the latency of Linux. BTW, it's
> only a gigaBIT link, you can divide that by 8 for gigabytes. I don't
> know the actual bit-rate on the wires, if we assume 1GHz, the byte-rate
> is only 125,000 bytes per second. Being able to use 89.6 percent of
> that isn't bad at all.
You must be meaning to add a few more zeros to that number. If you
are getting ~125,000,000 Bytes per second then you are doing OK.
Ben
next prev parent reply other threads:[~2006-08-14 21:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-10 15:34 Network compatibility and performance linux-os (Dick Johnson)
2006-08-10 17:28 ` Stephen Hemminger
2006-08-10 18:09 ` linux-os (Dick Johnson)
2006-08-10 18:14 ` Stephen Hemminger
2006-08-10 18:32 ` linux-os (Dick Johnson)
2006-08-12 19:21 ` Ben Greear
2006-08-14 11:30 ` linux-os (Dick Johnson)
2006-08-14 21:25 ` Ben Greear [this message]
2006-08-15 11:34 ` linux-os (Dick Johnson)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44E0EA5E.30306@candelatech.com \
--to=greearb@candelatech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox