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

wrtbwmon may reduce throughput on high-speed connections #9

Open
pyrovski opened this issue Oct 6, 2015 · 2 comments
Open

wrtbwmon may reduce throughput on high-speed connections #9

pyrovski opened this issue Oct 6, 2015 · 2 comments

Comments

@pyrovski
Copy link
Owner

pyrovski commented Oct 6, 2015

Even though the kernel does all the accounting, having many iptables rules can slow down a home router, especially if its already nearing its NAT throughput limit.

@didi1357
Copy link

I don't think this should be an issue of your application. Just note it in the readme. All monitoring solutions which don't use (most likely proprietary) NAT acceleration ICs and drivers will need to rely on the CPU being fast enough to count while NATing packets using iptables. This is just a matter of processing power I think. There is nothing you can do.

Maybe the kernel also drops counting in favor of keeping throughput high? So possibly related to #37 ?

@pyrovski
Copy link
Owner Author

I left this as a bug because it could be partially mitigated by changing construction of the iptables rules. If the rules were laid out in consideration of how the kernel processes them, we could reduce the number of rule evaluations required per packet per 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

2 participants