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

Can you add limit download/upload speed? #553

Open
1o1o1 opened this issue Jun 14, 2022 · 3 comments
Open

Can you add limit download/upload speed? #553

1o1o1 opened this issue Jun 14, 2022 · 3 comments

Comments

@1o1o1
Copy link

1o1o1 commented Jun 14, 2022

Can you add limit download/upload speed? :)

trickle don't work whit db1000n)

I have this msg in logs: "kernel: nf_conntrack: nf_conntrack: table full, dropping packet" :)

@arriven
Copy link
Owner

arriven commented Jun 14, 2022

you can use --min-interval for that. it will introduce artificial rate limiting to all the jobs. Another option would be to reduce the amount of jobs running by using --scale with some fractional value

it's not a full scale speed limiting (you would need to experiment to find the value that works for you) but doing that would require synchronizing work threads resulting in overall performance degradation

@1o1o1
Copy link
Author

1o1o1 commented Jun 14, 2022

Ok) looks like working well 👍
"-scale 0.6" is good for Archlinux on a VPS ...
"-min-interval 2s -scale 0.6" is well for archlinuxarm on my routerboard espressobin :)

@seriyps
Copy link

seriyps commented Dec 30, 2022

First of all you may just increase the nf_conntrack limit with smth like

sudo sysctl net.netfilter.nf_conntrack_max=128000

You may also limit the overall outgoing throughput of your network interface with smth as simple as

sudo tc qdisc add dev eth0 root tbf rate 20mbps latency 50ms burst 1mb

this would limit the outgoing traffic on eth0 interface to 20 megabytes (160 megabit) per second, but for the whole interface, not just db1000n.

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

3 participants