All of lore.kernel.org
 help / color / mirror / Atom feed
* How to calculate proper Quantum with HTB
@ 2019-07-01 23:32 Joe Jones
  2019-07-02  0:14 ` Joe Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Jones @ 2019-07-01 23:32 UTC (permalink / raw)
  To: lartc

Hello,

I am limiting egress traffic to 30Mbps (30mbit) using hbt with a leaf
class for port 22.

tc class add dev eth0 parent 20: classid 20:20 htb rate 30mbit ceil
32mbit prio 1

This all works as expected but I do see some messages in the log
during heavy traffic pasted below.

"HTB: quantum of class 100020 is big. Consider r2q change."

From what I have read the quantum is calculated as (rate in bytes per
sec / r2q-default 10).
In my case 30mbit (30000000/8) / 10 = 375000 (3mbit). The reported
quantum is significantly less but still receive the error in the
kernel log.
I read that the quantum is only used when >limit and <ceil. I am most
definitely at ceiling at all times as I pass heavy traffic.

So questions.
Is there a right way to calculate the correct quantum?
Are the kernel messages I am seeing indicative of a problem that I
should be concened with?

Thanks

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

* Re: How to calculate proper Quantum with HTB
  2019-07-01 23:32 How to calculate proper Quantum with HTB Joe Jones
@ 2019-07-02  0:14 ` Joe Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Jones @ 2019-07-02  0:14 UTC (permalink / raw)
  To: lartc

On Mon, Jul 1, 2019 at 4:32 PM Joe Jones <09cicada@gmail.com> wrote:
>
> Hello,
>
> I am limiting egress traffic to 30Mbps (30mbit) using hbt with a leaf
> class for port 22.
>
> tc class add dev eth0 parent 20: classid 20:20 htb rate 30mbit ceil
> 32mbit prio 1
>
> This all works as expected but I do see some messages in the log
> during heavy traffic pasted below.
>
> "HTB: quantum of class 100020 is big. Consider r2q change."
>
> From what I have read the quantum is calculated as (rate in bytes per
> sec / r2q-default 10).
> In my case 30mbit (30000000/8) / 10 = 375000 (3mbit). The reported
> quantum is significantly less but still receive the error in the
> kernel log.
> I read that the quantum is only used when >limit and <ceil. I am most
> definitely at ceiling at all times as I pass heavy traffic.
>
> So questions.
> Is there a right way to calculate the correct quantum?
> Are the kernel messages I am seeing indicative of a problem that I
> should be concened with?
>
> Thanks
I see this as well in the log
htb: too many events!

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

end of thread, other threads:[~2019-07-02  0:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-01 23:32 How to calculate proper Quantum with HTB Joe Jones
2019-07-02  0:14 ` Joe Jones

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.