From: Hagen Paul Pfeifer <hagen@jauu.net>
To: <jun.kondo@ctc-g.co.jp>
Cc: David Miller <davem@davemloft.net>,
<linux-kernel@vger.kernel.org>, <omega-g1@ctc-g.co.jp>,
<notsuki@redhat.com>, <motokazu.kozaki@hp.com>,
<htaira@redhat.com>, <netdev@vger.kernel.org>,
<tomohiko.takahashi@ctc-g.co.jp>, <kotaro.sakai@ctc-g.co.jp>,
<ken.sugawara@ctc-g.co.jp>
Subject: Re: [omega-g1:11072] Re: [PATCH] net: configurable sysctl parameter "net.core.tcp_lowat" for sk_stream_min_wspace()
Date: Mon, 22 Aug 2011 16:21:59 +0200 [thread overview]
Message-ID: <1ee3ee6e05ae30a229306a8863c83d44@localhost> (raw)
In-Reply-To: <4E51A3F0.5010500@ctc-g.co.jp>
On Mon, 22 Aug 2011 09:33:52 +0900, "Jun.Kondo" wrote:
> By using this patch, we want to prevent "timeout occured over the
network
> that is low throughput but available".
>
> But in the current implementation, both blocking and non-blocking,
> user processes can't recognize the reason in detail
> when failed to write to socket buffer, we think.
For your application it should not matter WHY the data can be written to
the peer. It can be happened that the peer close the window, some
scheduling bottleneck or whatever else. A blocking socket means for you
that some data is in the pipe, waiting for transmit. This is the knowledge
that you require, and you should deal with it. A blocking socket does not
mean FAILED, a failure is returned via ECONNRESET or otherwise. So
everything is fine when your socket blocks. Probably you should adjust your
Apache timeouts or other parts of the program logic.
> As stated above, we think it is difficult for user processes to handle
> timeout of writing socket buffer,
> when wmem is configured large value.(to ensure high throughput over the
> high ralency network, like 3G).
No, you should adjust your code and account that the socket has data in
the pipe. That's all.
Changing tcp_lowat
next prev parent reply other threads:[~2011-08-22 14:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-15 5:38 [PATCH] net: configurable sysctl parameter "net.core.tcp_lowat" for sk_stream_min_wspace() Jun.Kondo
2011-08-15 5:47 ` David Miller
2011-08-19 9:28 ` [omega-g1:10937] " Jun.Kondo
2011-08-19 9:43 ` David Miller
2011-08-22 0:33 ` [omega-g1:11072] " Jun.Kondo
2011-08-22 14:21 ` Hagen Paul Pfeifer [this message]
2011-08-22 18:35 ` David Miller
2011-08-25 4:46 ` [omega-g1:11110] " Jun.Kondo
2011-08-25 5:00 ` David Miller
2011-09-09 1:33 ` Jun.Kondo
2011-09-09 2:17 ` David Miller
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=1ee3ee6e05ae30a229306a8863c83d44@localhost \
--to=hagen@jauu.net \
--cc=davem@davemloft.net \
--cc=htaira@redhat.com \
--cc=jun.kondo@ctc-g.co.jp \
--cc=ken.sugawara@ctc-g.co.jp \
--cc=kotaro.sakai@ctc-g.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=motokazu.kozaki@hp.com \
--cc=netdev@vger.kernel.org \
--cc=notsuki@redhat.com \
--cc=omega-g1@ctc-g.co.jp \
--cc=tomohiko.takahashi@ctc-g.co.jp \
/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;
as well as URLs for NNTP newsgroup(s).