From: Vasily Averin <vvs@parallels.com>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: netdev@vger.kernel.org, Jamal Hadi Salim <jhs@mojatatu.com>,
"David S. Miller" <davem@davemloft.net>,
Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Subject: Re: [PATCH 1/2] cbq: incorrectly low bandwidth setting blocks limited traffic
Date: Wed, 13 Aug 2014 16:54:22 +0400 [thread overview]
Message-ID: <53EB5FFE.1070604@parallels.com> (raw)
In-Reply-To: <53EB5DE8.7030302@cogentembedded.com>
On 08/13/2014 04:45 PM, Sergei Shtylyov wrote:
> Hello.
>
> On 8/13/2014 4:38 PM, Vasily Averin wrote:
>
>> Mainstream commit f0f6ee1f70c4eaab9d52cf7d255df4bd89f8d1c2 have side effect:
>
> Please also specify that commit's summary line in parens.
cbq: incorrect processing of high limits
>> if cbq bandwidth setting is less than real interface throughput
>> non-limited traffic can delay limited traffic for a very long time.
>
>> This happen because of q->now changes incorrectly in cbq_dequeue():
>> in described scenario L2T is much greater than real time delay,
>> and q->now gets an extra boost for each transmitted packet.
>
>> Accumulated boost prevents update q->now, and blocked class can wait
>> very long time until (q->now >= cl->undertime) will be true again.
>
>> To fix the problem the patch updates q->now on each cbq_update() call.
>> L2T-related pre-modification q->now was moved to cbq_update().
>
>> My testing confirmed that it fixes the problem and did not discovered
>
> Discover.
>
>> any side-effects.
>
>> Signed-off-by: Vasily Averin <vvs@openvz.org>
>
> WBR, Sergei
>
>
next prev parent reply other threads:[~2014-08-13 12:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1407918877.git.vvs@openvz.org>
2014-08-13 12:38 ` [PATCH 1/2] cbq: incorrectly low bandwidth setting blocks limited traffic Vasily Averin
2014-08-13 12:45 ` Sergei Shtylyov
2014-08-13 12:54 ` Vasily Averin [this message]
2014-08-13 14:50 ` Eric Dumazet
2014-08-13 17:21 ` [PATCH 1/2 v2] " Vasily Averin
2014-08-13 19:57 ` David Miller
2014-08-13 12:38 ` [PATCH 2/2] cbq: now_rt removal Vasily Averin
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=53EB5FFE.1070604@parallels.com \
--to=vvs@parallels.com \
--cc=davem@davemloft.net \
--cc=jhs@mojatatu.com \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.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 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.