Running Sheepit render farm in the background on one of our machines, I wanted to limit the download speed of the Sheepit client, since office bandwidth was limited.
First tried wondershaper and tc - did not work - finally ended up with trickle. Modified the desktop shortcut launcher I use to the command
trickle -s -d 1024 -u 1024 java -jar sheepit-client-ver.jar
Earlier tries and misses, and links for reference -
https://securitynetworkinglinux.com/how-to-shape-traffic-using-wondershaper-on-ubuntu-20-04-cli/
https://askubuntu.com/questions/1523362/server-24-04-only-starts-a-single-interface-on-boot
https://superuser.com/questions/1053003/what-is-the-difference-between-eth1-and-eno1
We have eno1 instead of eth0.
Used git clone instead of the apt version as per
https://github.com/magnific0/wondershaper
Then, syntax has changed. But errors,
sudo ./wondershaper -a eno1 -d 1024
Error: Exclusivity flag on, cannot modify.
Error: Exclusivity flag on, cannot modify.
Error: Exclusivity flag on, cannot modify.
RTNETLINK answers: File exists
Trying tc with this syntax from
https://superuser.com/questions/1598721/adding-both-delay-bandwidth-restrictions-via-tc
sudo tc qdisc add dev eno1 root netem rate 10mbit
no errors shown
sudo tc qdisc add dev eno1 root netem rate 1mbit
Error: Exclusivity flag on, cannot modify.
The 2nd command above was with protonvpn on.
sudo ifdown eno1
ifdown: command not found.
sudo systemctl restart systemd-networkd
no errors,
but when running protonvpn, this has no effect - download is running at 2.4MB/s
Command 'trickle' not found, but can be installed with:
sudo apt install trickle
sudo apt install trickle
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package trickle is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'trickle' has no installation candidate
https://ubuntu.pkgs.org/22.04/ubuntu-universe-amd64/trickle_1.07-11_amd64.deb.html
wget http://archive.ubuntu.com/ubuntu/pool/universe/t/trickle/trickle_1.07-11_amd64.deb
Installed OK.
But man trickle says,
Furthermore, trickle will not work with statically linked executables, nor with setuid(2) executables.
No comments:
Post a Comment