-
Notifications
You must be signed in to change notification settings - Fork 37
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
Bandwith limit not working properly #9
Comments
Hi again, I've been doing more tests and I found that the problem is with the upload tests (the above ones). These are download tests, and it seems that they work fine:
With this tests I conclude that: first, the rule takes about 2.5 seconds to apply (which is not really a problem in my case), and second, that the rate doesn't apply well to the outgoing traffic. Taking a quick look to the code I see that the command executed is |
Hello, @xoancosmed I saw your benchmarks and even tho I don't have advanced information about
I have no idea why you are seeing 2.5 seconds of high bandwidth, it might because of how qdisc (queue) handles them. It might be TCP buffering. There is also a My suggestion is to either use UDP or raw IP for calculating raw bandwidth. Ref: https://www.tldp.org/HOWTO/html_single/Traffic-Control-HOWTO/#o-packets |
Hi @pvtmert Thanks for your reply. What you said makes sense ... I'll try it with IPERF in UDP mode. However, the biggest problem for me is that 2.5 seconds where it seems that there is no limit. I have to investigate more about this ... |
Hi @xoancosmed The reason for the 2,5 sec delay may be that the container is checking the docker api for changes, this takes some time until the rules are applied. It might be better to test against an already running container. I hope this helps |
Bandwitch limit is not working as expected, the expirimented limit is much higher than the value I setted via the label. Here some examples:
Do you know where is the problem? I created a new network for each container, I don't know if that's right. I'm using the docker compose YAML to run docker-tc. I'm using Ubuntu Server 18.04 and Docker 19.03.8.
Thanks,
Xoán
The text was updated successfully, but these errors were encountered: