From: Jack Zhang <jack.zhang2011@gmail.com>
To: Rick Jones <rick.jones2@hp.com>
Cc: netdev@vger.kernel.org
Subject: Re: can TCP socket send buffer be over used?
Date: Tue, 3 Aug 2010 18:48:29 -0600 [thread overview]
Message-ID: <AANLkTikqTHNmTQL2-QSJZmJ=18CfdZGo41zUE6mKO_PS@mail.gmail.com> (raw)
In-Reply-To: <4C58B4B4.6010904@hp.com>
Hi Rick,
Thanks for your reply.
Do you maybe know which part of the source code implements the details
about how much send buffer can actually be used for the data payload?
Thanks a lot!
Jack
On 3 August 2010 18:30, Rick Jones <rick.jones2@hp.com> wrote:
> Jack Zhang wrote:
>>
>> I understand that when the buffer size is set to 128 KB, I actually
>> got a buffer of 256 KB as the kernel doubles the buffer size. I also
>> understand that half the doubled buffer size is used for meta data
>> instead of the actual data to be transferred. So basically the
>> effective buffer sizes for the two examples are just 128 KB and 512
>> KB respectively.
>
> It may not be strictly 1/2. One way to check would be to take a tcpdump
> trace on the sending side, and either work-out manually the most the
> connection has outstanding at a time, or run the binary trace through
> something like tcptrace.
>
> rick jones
>
next prev parent reply other threads:[~2010-08-04 0:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 0:22 can TCP socket send buffer be over used? Jack Zhang
2010-08-04 0:30 ` Rick Jones
2010-08-04 0:48 ` Jack Zhang [this message]
2010-08-04 1:17 ` Rick Jones
2010-08-04 7:20 ` Bill Fink
2010-08-04 8:00 ` Jack Zhang
2010-08-04 9:07 ` Bill Fink
2010-08-04 7:33 ` Mikael Abrahamsson
2010-08-04 8:03 ` Jack Zhang
2010-08-04 8:21 ` Mikael Abrahamsson
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='AANLkTikqTHNmTQL2-QSJZmJ=18CfdZGo41zUE6mKO_PS@mail.gmail.com' \
--to=jack.zhang2011@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rick.jones2@hp.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;
as well as URLs for NNTP newsgroup(s).