Bandwidth Shapers for the tc shy: trickle & wondershaper

Post links to your 32-bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
Post Reply
Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Bandwidth Shapers for the tc shy: trickle & wondershaper

Post#1 by Bogomips » 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. :twisted:

    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
    
  • wondershaper

    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
    Requires bit of initialization which haven't got round to doing. Would be interested in feedback. :)

    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
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Post Reply