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

Quantum fixing #525

Merged
merged 4 commits into from
Jul 15, 2024
Merged

Quantum fixing #525

merged 4 commits into from
Jul 15, 2024

Conversation

thebracket
Copy link
Collaborator

Removes all HTB r2q errors. It appears that tc isn't setting r2q to 10 when working with a multi-headed queue of HTB trees. This patch uses the HTB default quantum = rate_bytes_per_second / r2q and applies it directly. It cut my network reload time by a LARGE amount.

The PR also specifies Cake bandwidth explicitly rather than implying it from the parent HTB. Testing seems to indicate that doesn't do very much.

… valid `r2q` to HTB queues, yielding many warnings on HTB queue setup.

I'm not sure that 10 is the correct value, or that the formula is exactly right - but this patch adds an explicit quantum, following the specified (bytes per second / r2q) formula - with r2q set to a constant of 10. It eliminated the error messages on my test system. Committed for further testing.
…ited by HTB) for capacity estimation. May or may not actually do anything beneficial - this is a test.
@thebracket
Copy link
Collaborator Author

Link to ISSUE #513

@interduo
Copy link
Contributor

LARGE means 10x?

@thebracket
Copy link
Collaborator Author

Was actually having a heck of a time figuring out exactly what it meant, because it wasn't stable. I couldn't persuade tc to actually show the value of a default-calculated quantum, and directly specifying an r2q on parent nodes didn't seem to do anything at all. I'm thinking there may be a bug in tc itself there. So I just adopted what the code says is the default - the ceiling rate / 10 and specify it directly as a quantum.

Early testing shows that it loads without warnings (which makes the reload quite a lot faster), and doesn't seem to have had much effect on overall traffic or CPU.

Did just back out the Cake bandwidth= line because it used to cause lockups (per @dtaht )

@thebracket thebracket merged commit 501fdf2 into develop Jul 15, 2024
4 checks passed
@thebracket thebracket deleted the quantum_fixing branch July 15, 2024 20:12
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

Successfully merging this pull request may close these issues.

2 participants