From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: linux-sctp@vger.kernel.org
Subject: Re: receiver window questions
Date: Fri, 30 May 2008 13:02:56 +0000 [thread overview]
Message-ID: <483FFB00.6050507@hp.com> (raw)
In-Reply-To: <483EC663.1070805@hp.com>
Neil Horman wrote:
> On Thu, May 29, 2008 at 11:50:56AM -0400, Vlad Yasevich wrote:
>> Neil Horman wrote:
>>> On Thu, May 29, 2008 at 11:06:11AM -0400, Vlad Yasevich wrote:
>> I think this is hitting a condition where the receiver buffer is exhausted
>> prior
>> to rwnd. We generally mark the TSN as received prior to attempting an
>> internal allocation to carry the data. Thus, if this allocation fails,
>> we'll continue
>> reporting the tsn as received and move the cum-tsn if appropriate.
>>
>> We've been trying to figure out what the correct way to solve this
>> condition is
>> and so far haven't come up with a workable solution.
>>
> You're right it does sound like that. You know, I haven't visited that code
> since we rewrote the receive buffer management code to expand according to
> available memory with the sk_mem_schedule api. Do you think this could be as
> simple as removing this drop point?
>
The problem is that if the user sets the buffer size, we don't auto-tune it.
This is what happened in this case. However, even with auto-tunning, this
still shows up with 1 byte data chunks.
So, 2 things need to happen:
1) when we drop the chunk due to allocation failure, we have to remove
the tsn from the map. This one is easy
2) We need to properly detect SWS. I haven't looked fully at this, but
it feels a bit more involved. Implementing something like what BSD
has would also work, i.e. reducing a_rwnd 1 when receive buffer is
about to be exhausted.
-vlad
next prev parent reply other threads:[~2008-05-30 13:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-29 15:06 receiver window questions Vlad Yasevich
2008-05-29 15:18 ` Michael Tuexen
2008-05-29 15:25 ` Neil Horman
2008-05-29 15:34 ` Michael Tuexen
2008-05-29 15:50 ` Vlad Yasevich
2008-05-29 16:12 ` Michael Tuexen
2008-05-29 23:51 ` Neil Horman
2008-05-30 7:50 ` Michael Tuexen
2008-05-30 13:02 ` Vlad Yasevich [this message]
2008-05-30 15:08 ` Michael Tuexen
2008-05-30 17:10 ` Vlad Yasevich
2008-05-30 20:23 ` Neil Horman
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=483FFB00.6050507@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 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.