Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TC/Traffic Control does not always work #164

Open
RalfJung opened this issue Dec 24, 2021 · 1 comment
Open

TC/Traffic Control does not always work #164

RalfJung opened this issue Dec 24, 2021 · 1 comment

Comments

@RalfJung
Copy link
Member

A user is reporting that traffic control is not working for them. I found this in the logfile:

Dez 23 19:20:44 gw4.saar.freifunk.net tunneldigger[3089]: [INFO/tunneldigger.limits] Setting downstream bandwidth limit to 40000 kbps on tunnel 331.
Dez 23 19:20:44 gw4.saar.freifunk.net tunneldigger[3089]: Error: Invalid handle.
Dez 23 19:20:44 gw4.saar.freifunk.net kernel: HTB: quantum of class 10001 is big. Consider r2q change.

The "invalid handle" is harmless, as far as I know (see #154). However, that other error about "quantum of class" is new.

Unfortunately I know basically nothing about TC on Linux -- I don't have any clue what "quantum of class" or "r2q change" mean, and maybe they have nothing to do with the problem.

@RalfJung
Copy link
Member Author

https://lartc.vger.kernel.narkive.com/E9X2YxQD/warnings-with-and-without-r2q explains what that "quantum" and "r2q" value is about. Looks like when we are adding the TC class via

class add dev %s parent 1: classid 1:1 htb rate %dkbit ceil %dkbit

we could add a quantum X to set this "quantum" value. However it also says that

Quantum is used when 2 classes are getting more bandwidth then the rate.
So it's only important for sharing the remaining bandwidth. In that case, each
class may send quantum bytes.

so I doubt this value is relevant for us, since we never have more than 1 class on a device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant