netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] cbq: incorrectly low bandwidth blocks limited traffic
@ 2014-08-14  8:27 Vasily Averin
  2014-08-19 18:00 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Vasily Averin @ 2014-08-14  8:27 UTC (permalink / raw)
  To: netdev, Jamal Hadi Salim, David S. Miller; +Cc: Eric Dumazet, Alexey Kuznetsov

v2: patch description changes
Fixes: f0f6ee1f70c4 ("cbq: incorrect processing of high limits")

Mainstream commit f0f6ee1f70c4 ("cbq: incorrect processing of high limits")
have side effect: 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.

More detailed problem description can be found here:
http://www.spinics.net/lists/netdev/msg292493.html

Following patches should fix the problem.

Vasily Averin (2):
  cbq: incorrectly low bandwidth setting blocks limited traffic
  cbq: now_rt removal

 net/sched/sch_cbq.c |   48 ++++++++++++++----------------------------------
 1 files changed, 14 insertions(+), 34 deletions(-)

My testing confirmed that it fixes the problem and did not discover
any side-effects.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net v2 0/2] cbq: incorrectly low bandwidth blocks limited traffic
  2014-08-14  8:27 [PATCH net v2 0/2] cbq: incorrectly low bandwidth blocks limited traffic Vasily Averin
@ 2014-08-19 18:00 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-08-19 18:00 UTC (permalink / raw)
  To: vvs; +Cc: netdev, jhs, eric.dumazet, kuznet

From: Vasily Averin <vvs@parallels.com>
Date: Thu, 14 Aug 2014 12:27:29 +0400

> v2: patch description changes
> Fixes: f0f6ee1f70c4 ("cbq: incorrect processing of high limits")
> 
> Mainstream commit f0f6ee1f70c4 ("cbq: incorrect processing of high limits")
> have side effect: 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.
> 
> More detailed problem description can be found here:
> http://www.spinics.net/lists/netdev/msg292493.html
> 
> Following patches should fix the problem.

Series applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-19 18:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14  8:27 [PATCH net v2 0/2] cbq: incorrectly low bandwidth blocks limited traffic Vasily Averin
2014-08-19 18:00 ` David Miller

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).