lartc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Jones <09cicada@gmail.com>
To: lartc@vger.kernel.org
Subject: How to calculate proper Quantum with HTB
Date: Mon, 01 Jul 2019 23:32:36 +0000	[thread overview]
Message-ID: <CAPoj4et6nv7x1xbcsDRBfA3sCgixS_CLMF_Em9Xryiwgk0JzLA@mail.gmail.com> (raw)

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

             reply	other threads:[~2019-07-01 23:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-01 23:32 Joe Jones [this message]
2019-07-02  0:14 ` How to calculate proper Quantum with HTB Joe Jones

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=CAPoj4et6nv7x1xbcsDRBfA3sCgixS_CLMF_Em9Xryiwgk0JzLA@mail.gmail.com \
    --to=09cicada@gmail.com \
    --cc=lartc@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 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 read-only IMAP folder(s) and NNTP newsgroup(s).