Bandwidth Shapers for the tc shy: trickle & wondershaper
Posted: 24 Feb 2017, 13:10
Throttling Bandwidth with trickle & wondershaper
- trickle
Example trickle -d 512 palemoon -profile /mnt/sda4/PaleMoon/pmProfile
limits download to 512 Kilobits/sec and curbs superfluous caching, although for some streaming sites notice no difference, so this must be their maximum streaming rate.Code: Select all
guest@porteus:~$ ls -lh $t/trickle-1.07.i686-pkg-8.xzm -rw-r--r-- 1 root root 32K Feb 15 20:06 p10/Por/tmp/trickle-1.07.i686-pkg-8.xzm
- wondershaperRequires bit of initialization which haven't got round to doing. Would be interested in feedback.
Code: Select all
guest@porteus:~$ ls -lh $t/wondershaper-1.1a.alt1-noarch-1.xzm -rw-r--r-- 1 root root 8.0K Feb 15 20:39 p10/Por/tmp/wondershaper-1.1a.alt1-noarch-1.xzm
Code: Select all
root@porteus:/home/guest# which wshaper /usr/sbin/wshaper root@porteus:/home/guest# file /usr/sbin/wshaper /usr/sbin/wshaper: symbolic link to ../../etc/wondershaper/wshaper root@porteus:/home/guest# file /etc/wondershaper/wshaper /etc/wondershaper/wshaper: Bourne-Again shell script, ASCII text executable root@porteus:/home/guest# wshaper status Please read the documentation in README first :-)
sudo wondershaper eth0 1000 200
This limits the download limit to 1000 kilobits and uplaod to 200 kilobits.
To reset, use: sudo wondershaper clear eth0