-
Notifications
You must be signed in to change notification settings - Fork 32
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
Download limit problem #19
Comments
Hello. What is HZ value for your kernel? Try command |
Please, better do |
Hi CONFIG_NO_HZ_COMMON=y CONFIG_NO_HZ_IDLE is not setCONFIG_NO_HZ_FULL=y CONFIG_NO_HZ is not setCONFIG_RCU_FAST_NO_HZ=y CONFIG_HZ_PERIODIC is not setCONFIG_HZ_100=y CONFIG_HZ_250 is not setCONFIG_HZ_300 is not setCONFIG_HZ_1000 is not setCONFIG_HZ=100 this is a set of HZ config |
I try to reproduce in second lab system but not success |
Thanks. You may try to set higher HZ value, like 250 (reported to work good) or even more. Speed limiting arithmetic is 32-bit, so it could overflow with small HZ. |
did you think to remake it for 64bit. |
however, all new devices are 64bit and will be much more functional. |
Also, |
i will try move to 250Hz and will test CONFIG_NO_HZ_IDLE=y but in last test i prefer 100Hz and CONFIG_NO_HZ_FULL system work very stable and with low load . |
Yes, probably, I should. |
i will wait this changes! they will certainly work much better. |
I would appreciate such test! |
Hi i am back but the problem is hear and i find solution :) Upload limit is fine Very strange... machine run kernel 5.8.14 kernel and very clean image. |
I think you should test locally (in local network), for example with |
i make the same test without ipt-ratelimit and with mikrotik device and work fine all test. in case when run ipt-ratelimit and machine is 100% idle have problem when machine is loaded on 4 core or more shaper work very fine and this is strange |
To localize problem we need to test in simpler to analyze and with less other factors, so please test in local network using |
oki i find where the dog is buried problem is come when i set uplink card to use rps and use all cpu . |
Did I understand correctly that you're trying to shape incoming traffic? This is almost impossible in all cases (packets are already here, you can only drop or process them immediately), it may also make things even worse than lack of shaping: sender may overwhelm your card with re-transmitted packets, you'll see an IRQ storm and poor bandwidth usage. If you see high CPU load due to IRQ processing (IRQs are rarely used for TX operations but they're almost always used for RX queue), you may try to improve this situation by configuring IRQ coalescing. Unfortunately it's not trivial to find the most optimal settings (it's too individual), that's why I can't provide you exact options. You can try googling your NIC model with |
This module is not shaper, but policer! It's possible to police at any point of the network (no matter where you drop packets - at the source, end, or the middle of the network path) - including incoming traffic, and it's used for exact such use case at many places with good reports. |
OK, sorry for this misconception. I still have some doubts that it's possible to avoid negative effects caused by senders which are trying to handle lost (not acknowledged) packets. I'm also curious: how many pps (packets per second) were you able to process with this module on some general purpose hardware? |
The module uses Cisco's RED-like TBF algorithm, which somewhat randomizes drops, this is exactly against correlated packet re-transmits (I think, it's possible to find Cisco or scientific papers about its performance). It should be possible to handle 10-Gbit (reported by many users years ago) on commodity server. |
I don't remember exact pps values. I think you can divide bps by some average packet size. Because, ppl use not just in labs but in real ISPs too. |
Hi all
i have problem with set speed over 50mb/s
iptables -A FORWARD -m ratelimit --ratelimit-set up --ratelimit-mode src -j DROP
iptables -A FORWARD -m ratelimit --ratelimit-set down --ratelimit-mode dst -j DROP
echo / > /proc/net/ipt_ratelimit/up
echo / > /proc/net/ipt_ratelimit/down
echo +192.168.0.2 100000000 > /proc/net/ipt_ratelimit/up
echo +192.168.0.2 100000000 > /proc/net/ipt_ratelimit/down
192.168.0.2 cir 104857600 cbs 19660800 ebs 39321600; tc 0 te 0 last never; conf 0/0 0 bps, rej 0/0
problem is come when i try to set 70,80,90,100 mbit speed is limit to 8-10 mbit
after back shaper to 50 mbit is work fine shape customer to 50-52mb/s
how to debug this problem and to fix.
The text was updated successfully, but these errors were encountered: