From: Ben Greear <greearb@candelatech.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev@vger.kernel.org, Daniel Baluta <dbaluta@ixiacom.com>,
David Miller <davem@davemloft.net>
Subject: Re: [RFC] TCP: Support configurable delayed-ack parameters.
Date: Tue, 19 Jun 2012 09:11:59 -0700 [thread overview]
Message-ID: <4FE0A4CF.6000906@candelatech.com> (raw)
In-Reply-To: <1340082688.7491.2299.camel@edumazet-glaptop>
On 06/18/2012 10:11 PM, Eric Dumazet wrote:
> On Mon, 2012-06-18 at 17:52 -0700, greearb@candelatech.com wrote:
>> From: Ben Greear<greearb@candelatech.com>
>>
>> RFC2581 ($4.2) specifies when an ACK should be generated as follows:
>>
>> " .. an ACK SHOULD be generated for at least every second
>> full-sized segment, and MUST be generated within 500 ms
>> of the arrival of the first unacknowledged packet.
>> "
>>
>> We export the number of segments and the timeout limits
>> specified above, so that a user can tune them according
>> to their needs.
>>
>> Specifically:
>> * /proc/sys/net/ipv4/tcp_default_delack_segs, represents
>> the threshold for the number of segments.
>> * /proc/sys/net/ipv4/tcp_default_delack_min, specifies
>> the minimum timeout value
>> * /proc/sys/net/ipv4/tcp_default_delack_max, specifies
>> the maximum timeout value.
>>
>> In addition, new TCP socket options are added to allow
>> per-socket configuration:
>>
>> TCP_DELACK_SEGS
>> TCP_DELACK_MIN
>> TCP_DELACK_MAX
>>
>> In order to keep a multiply out of the hot path, the segs * mss
>> computation is recalculated and cached whenever segs or mss changes.
>>
>
> I know David was worried about this multiply, but current cpus do a
> multiply in at most 3 cycles.
>
> Addding an u32 field in socket structure adds 1/16 of a cache line, and
> adds more penalty.
>
> Avoiding to build/send an ACK packet can save us so many cpu cycles that
> the multiply is pure noise.
Dave..any opinion on this? I'll be happy to get rid of the
multiply caching if it's agreed that it should not be there.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2012-06-19 16:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-19 0:52 [RFC] TCP: Support configurable delayed-ack parameters greearb
2012-06-19 1:27 ` Stephen Hemminger
2012-06-19 2:46 ` Ben Greear
2012-06-19 5:11 ` Eric Dumazet
2012-06-19 16:11 ` Ben Greear [this message]
2012-06-19 21:21 ` David Miller
2012-06-19 21:27 ` Ben Greear
2012-06-21 16:04 ` Ben Greear
2012-06-21 16:04 ` Ben Greear
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=4FE0A4CF.6000906@candelatech.com \
--to=greearb@candelatech.com \
--cc=davem@davemloft.net \
--cc=dbaluta@ixiacom.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.