From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: linux-sctp@vger.kernel.org
Subject: Re: [PATCH] Fix piggybacked ACKs
Date: Tue, 04 Aug 2009 17:14:04 +0000 [thread overview]
Message-ID: <4A786C5C.1060200@hp.com> (raw)
In-Reply-To: <20090729160557.GC29475@nortel.com>
Doug Graham wrote:
> On Tue, Aug 04, 2009 at 10:50:18AM -0400, Vlad Yasevich wrote:
>>> I admit that I didn't study too closely exactly what
>>> q->outstanding_bytes represents. I assumed
>>> it meant the number of bytes that had been sent on the wire, but not yet
>>> acknowledged.
>>> Any bytes that were delayed because of Nagle would not be counted in
>>> outstanding_bytes
>>> (I assume). So the first send of 726 would get sent immediately and
>>> counted in
>>> outstanding_bytes. The second one would get delayed by Nagle and not
>>> counted
>>> in outstanding_bytes. All the later ones would also get delayed by
>>> Nagle because
>>> outstanding_bytes is still 726.
>>>
>>> I do think that using outstanding_bytes the way I did is probably an
>>> ugly kludge, and
>>> there's hopefully a better way. But the right way will probably involve
>>> adding
>>> some more state to each association (the snd.sml variable mentioned in
>>> the minshall
>>> draft at the very least). I'm not sure that using asoc->frag_point the
>>> way I did is correct
>>> either, because I think the frag_point can change during the lifetime of
>>> an association.
>> Using division in such a hot path is a non-starter to begin with, so we
>> definitely need to find a better way.
>
> That thought crossed by mind too, although I didn't consider it as much
> of a show-stopper as you do. 32 bit integer division isn't really all
> that expensive on modern processors is it? The C compiler is probably
> doing it in places as a result of pointer arithmetic anyway.
>
>> Using frag_point is not the right way to do it either since it's effected by
>> MTU and user API.
>>
>> I think we can add something to sctp_outq structure to properly track this.
>
> I've pretty much convinced myself that Wei's original Nagle patch is fine
> anyway. Just disable Nagle for large messages that need to be fragmented.
>
We can't do it blindly since the user may set a fragmentation point such that
we'll send sub-MSS (for lack of a better term) segments. I need to look at
this more closely.
-vlad
> --Doug.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2009-08-04 17:14 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 16:05 [PATCH] Fix piggybacked ACKs Doug Graham
2009-07-30 6:48 ` Wei Yongjun
2009-07-30 9:51 ` Wei Yongjun
2009-07-30 16:49 ` Doug Graham
2009-07-30 17:05 ` Vlad Yasevich
2009-07-30 21:24 ` Vlad Yasevich
2009-07-30 23:40 ` Doug Graham
2009-07-31 0:53 ` Wei Yongjun
2009-07-31 1:17 ` Doug Graham
2009-07-31 1:43 ` Doug Graham
2009-07-31 4:21 ` Wei Yongjun
2009-07-31 7:30 ` Michael Tüxen
2009-07-31 7:34 ` Michael Tüxen
2009-07-31 12:59 ` Doug Graham
2009-07-31 13:11 ` Doug Graham
2009-07-31 13:39 ` Doug Graham
2009-07-31 14:18 ` Vlad Yasevich
2009-08-02 2:03 ` Doug Graham
2009-08-03 2:00 ` Wei Yongjun
2009-08-03 2:15 ` Wei Yongjun
2009-08-03 3:32 ` Wei Yongjun
2009-08-04 3:00 ` Doug Graham
2009-08-04 3:03 ` Wei Yongjun
2009-08-04 3:28 ` Doug Graham
2009-08-04 3:44 ` Doug Graham
2009-08-04 3:57 ` Doug Graham
2009-08-04 14:50 ` Vlad Yasevich
2009-08-04 17:05 ` Doug Graham
2009-08-04 17:14 ` Vlad Yasevich [this message]
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=4A786C5C.1060200@hp.com \
--to=vladislav.yasevich@hp.com \
--cc=linux-sctp@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 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).