Re: How to calculate proper Quantum with HTB
Joe Jones <[email protected]> Tue, 02 Jul 2019 00:14:33 +0000
| Newsgroups | org.kernel.vger.lartc |
|---|---|
| Message-ID | <CAPoj4etox+p7tKVxH3NnmsLn+DG-CXgATmcwNxNYm6BPKRVezw@mail.gmail.com> |
On Mon, Jul 1, 2019 at 4:32 PM Joe Jones <[email protected]> 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!