WonderShaper

Here is WonderShaper with init-scripts.
It is a wonderful utility for highspeed connections - try it!
Build file follows, full package with everything is in incoming on ArchLinux ftp.
Sorry, I am not sure about posting over 200 lines for the patch and init etc.. so just check the whole package I guess?
PKGBUILD:
# Contributor: My Name <[email protected]>
pkgname=wondershaper
pkgver=1.1a
pkgrel=1
pkgdesc="Shapes interface traffic using QOS (Quality Of Service) to improve latency/throughput for fast [internet] connections."
license=GPL
groups=('network')
url="http://lartc.org/wondershaper"
depends=('iproute')
makedepends=('iproute')
source=($url/$pkgname-$pkgver.tar.gz)
md5sums=('bbc5a3a4485ab286e337ce8550e7b990')
build() {
   cd $startdir/src/$pkgname-$pkgver
   patch -p0 -i ../../wshaper-1.1a.diff
   patch -p0 -i ../../wshaper.htb-1.1a.diff
   mkdir -p $startdir/pkg/etc/rc.d
   mkdir -p $startdir/pkg/etc/wondershaper
   mkdir -p $startdir/pkg/usr/sbin
   mkdir -p $startdir/pkg/usr/share/wondershaper
   cp ../../wondershaper $startdir/pkg/etc/rc.d
   cp ../../wondershaper.conf $startdir/pkg/etc/wondershaper
   cp $startdir/src/$pkgname-$pkgver/wshaper $startdir/pkg/usr/sbin
   cp $startdir/src/$pkgname-$pkgver/wshaper.htb $startdir/pkg/usr/sbin
   cp $startdir/src/$pkgname-$pkgver/README $startdir/pkg/usr/share/wondershaper

PKGBUILD:
# Contributor: My Name <[email protected]>
pkgname=wondershaper
pkgver=1.1a
pkgrel=2
pkgdesc="Shapes interface traffic using QOS (Quality Of Service) to improve latency/throughput for fast [internet] connections."
license=GPL
groups=('network')
url="http://lartc.org/wondershaper"
depends=('iproute')
makedepends=('iproute')
source=($url/$pkgname-$pkgver.tar.gz
        wshaper-1.1a.diff wshaper.htb-1.1a.diff
        wondershaper wondershaper.conf)
md5sums=('bbc5a3a4485ab286e337ce8550e7b990'
         '91dc723686482e4738e7ab43098d1e58'
         'd09fe507ab6037caf17aeb8fefb3ca75'
         '04bc0a5bd5d97d6753b9d38e951d8798'
         '0876719acf27f812ce91f51b68b0272f')
build() {
   cd $startdir/src/$pkgname-$pkgver
   patch -p0 -i ../wshaper-1.1a.diff
   patch -p0 -i ../wshaper.htb-1.1a.diff
   mkdir -p $startdir/pkg/etc/rc.d
   mkdir -p $startdir/pkg/etc/wondershaper
   mkdir -p $startdir/pkg/usr/sbin
   mkdir -p $startdir/pkg/usr/share/wondershaper
   cp ../../wondershaper $startdir/pkg/etc/rc.d
   cp ../../wondershaper.conf $startdir/pkg/etc/wondershaper
   cp $startdir/src/$pkgname-$pkgver/wshaper $startdir/pkg/usr/sbin
   cp $startdir/src/$pkgname-$pkgver/wshaper.htb $startdir/pkg/usr/sbin
   cp $startdir/src/$pkgname-$pkgver/README $startdir/pkg/usr/share/wondershaper
That is better.
Thanks!

Similar Messages

  • A browser with download speed limit?

    It sounds weird but on Linux I can't find a browser that allows to set a download speed limit.
    I found an extension for Firefox but it works only on Windows.
    I know the existence of download managers like d4x, wget, jdownloader, etc... but some downloads can only be done by browser.
    I know trickle too but if I want to change the speed limit I have to 'restart' the command (interrupting the current download).
    Then I didn't find an extension for Chromium.

    I was able to implement [global] throttling with wondershaper. You will need to modprobe sch_cbq if you use the CBQ script (not sure about the HTB one). I use the CBQ version.

  • Script or util to limit network speed system wide?

    Is there a simple script or small util out there that'll let me limit internet download and upload rates? I just care about limiting file transfer and streaming speeds through browsers, but don't mind if it's easier to shape all network traffic. My system has a wired NIC.
    I tried to use trickle but it doesn't seem to work at all with chrome and it crashes firefox. I also tried to use wondershaper which seemed to work for setting upload and download rate limits, but then wouldn't allow me to change them back. Wondershaper also seems a little 'iffy' -- there's no man page or output for any of the commands you give and no real confirmation of what's going on.

    Here's 2 slightly different methods:  mine and using --set-mark.
    These are not what I'd call "simple" though.

  • Why arch use a so old iproute2 version??

    I was looking at some qos script to increase downloads performances when i have a lot of uploads and i've found a few useful things but the most of them don't work with the old tc included in iproute2 2.4.7 that's the one we have on archlinux... So i'd like to know if there is something wrong with the newer version of iproute2 or something like that.
    Anyway, if someone could find em useful:
    http://www.lartc.org/wondershaper/
    http://www.digriz.org.uk/jdg-qos-script/
    And here u can find (and download) iproute2:
    http://developer.osdl.org/dev/iproute2/
    (:oops:  i'm sorry for my english  :oops: )

    hi. I suggest you either email the maintainer to find out why or you can use the webpage to mark the package out of date.  Some packages can take a long time to be upgraded for a few reasons, such as:
    The version has some fault  and does not work well with the current arch packages
    The maintainer is not very active
    The maintainer may not do a monthly or weekly check of their packages to see if there are any to be upgraded or patched. There always packages that do not make the alert list on sourceforge or freshmeat which are usually two sites that maintainers will pay attention to for their upgrade info.
    Regardless either emailing the maintainer or flagging the package out of date should get you a faster response than posting here because many miantainers do not frequent this forum.
    (btw you can use the website to find who the maintainer is)

  • Traffic shaping: Which is the best solution?

    Hi! I'm running 3 computers on 1 d-link router, 2 of them has an archlinux installed. Wondershaper mostly works for me when the other computers has cfosspeed running on windows, but when both computers run archlinux and wshaper and p2p applications, ping is over 1000ms instead of 10-20ms.
    Which is the best solution of traffic shaping on linux, and is there a howto for them (can be even a gentoo wiki page or similar)?
    Edit: shorewall is not being built from yaourt (x86_64), can't find a usable manual for trickle and niceshaper, (even ubuntu forums has unreplied "threads" about it) and can't start them coz missing config files, it seems, noone cares about ACK priority and ping in the Linux world
    Last edited by Vegita (2010-02-24 19:58:07)

    This config file is being used on 2 computers, and not working, my speed is 8m/1m. Any ideas? I don't want to limit anything, I just want ACK's priority to set to the highest, and same with http, and get p2p apps (opn this computer ktorrent and valknut, on the other ktorrent) priority on lowest. valknut's port is 1412, ktorrents' one is 6881 on this and 24748 on the other computer. Any ideas what to modify for small ping?
    # shaping config script for pyshaper             
    # for more information about pyshaper configuration, refer to the
    # file 'pyshaper.conf.readme', and the examples therein
    # set the connection-scanning period to 15 seconds (which is very
    # aggressive). IF you're more concerned about longer-running
    # connections, set this to a longer value (say, 60-300 seconds).
    period 30
    # declare one network interface, and set its inbound
    # and outbound bandwidth in kbits/sec
    eth0.ip 192.168.0.180
    eth0.in 8096
    eth0.out 1024
    # This is a test scenario - we're throttling all replies
    # from our webserver to max 16kbits/sec, but only if
    # the remote client is shell.sourceforge.net
    # note - the identifiers 'out', 'pri', 'rate', 'ceil' 'http' and 'test'
    # have special meaning (see pyshaper.conf.readme).
    # the identifier 'http' is not significant - you can replace
    # it with anything, as long as your setup is consistent
    # we're setting up a basic 'class' called 'http'
    eth0.http.pri 1
    eth0.http.out.rate 968
    eth0.http.out.ceil 1024
    eth0.http.test raddr=='66.35.250.208' and lport == 80
    eth0.p2p.test (cmd == '/usr/bin/valknut')
    eth0.p2p.test (cmd == '/usr/bin/ktorrent')
    eth0.p2p.pri 3
    # default traffic gets good bandwidth
    eth0.default.out.rate 932
    eth0.default.out.ceil 968

  • [solved] Lockup during attempted NFSv4 mount

    NFS seems to be set up fine but my shares go stale very quickly after mounting. (nfsv4)
    It's only begun to be more temperamental lately... before it would mount but still go stale (freeze during a directory listing)
    Server displays connection attempt:
    Oct 1 10:23:59 localhost rpc.mountd[12621]: authenticated mount request from 192.168.10.2:980 for /media/external (/media/external)
    Oct 1 10:36:14 localhost rpc.mountd[12621]: authenticated mount request from 192.168.10.2:739 for /var/development/www (/var/development/www)
    But client does not complete mount - cannot even CTRL + C it. I get these logs on the client:
    Oct 1 10:42:17 mars kernel: [ 1200.279912] INFO: task python2:3668 blocked for more than 120 seconds.
    Oct 1 10:42:17 mars kernel: [ 1200.279916] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    Oct 1 10:42:17 mars kernel: [ 1200.279918] python2 D f3237dd4 0 3668 1 0x00000000
    Oct 1 10:42:17 mars kernel: [ 1200.279923] f3237e2c 00200086 f88221b4 f3237dd4 f8822b97 c05f8220 c06c7400 c06c7400
    Oct 1 10:42:17 mars kernel: [ 1200.279930] 27e63b52 000000d7 f5c6c400 f31d74e0 af96ad46 00200202 f30ba380 00200202
    Oct 1 10:42:17 mars kernel: [ 1200.279935] f3237e24 c01b65dc df2065e1 ffffffff 572b71e1 00000000 f3237e2c c0181773
    Oct 1 10:42:17 mars kernel: [ 1200.279941] Call Trace:
    Oct 1 10:42:17 mars kernel: [ 1200.279973] [<f88221b4>] ? rpc_make_runnable+0x54/0x60 [sunrpc]
    Oct 1 10:42:17 mars kernel: [ 1200.279984] [<f8822b97>] ? rpc_execute+0x27/0x90 [sunrpc]
    Oct 1 10:42:17 mars kernel: [ 1200.279990] [<c01b65dc>] ? delayacct_end+0x9c/0xb0
    Oct 1 10:42:17 mars kernel: [ 1200.279996] [<c0181773>] ? ktime_get_ts+0xc3/0xf0
    Oct 1 10:42:17 mars kernel: [ 1200.280001] [<c04c5f13>] schedule+0x23/0x60
    Oct 1 10:42:17 mars kernel: [ 1200.280004] [<c04c5fc8>] io_schedule+0x78/0xb0
    Oct 1 10:42:17 mars kernel: [ 1200.280008] [<c01e8b1d>] sleep_on_page+0xd/0x20
    Oct 1 10:42:17 mars kernel: [ 1200.280011] [<c04c3fa1>] __wait_on_bit+0x51/0x70
    Oct 1 10:42:17 mars kernel: [ 1200.280014] [<c01e8b10>] ? __lock_page+0x80/0x80
    Oct 1 10:42:17 mars kernel: [ 1200.280018] [<c01e8d06>] wait_on_page_bit+0x86/0x90
    Oct 1 10:42:17 mars kernel: [ 1200.280022] [<c01566e0>] ? autoremove_wake_function+0x50/0x50
    Oct 1 10:42:17 mars kernel: [ 1200.280026] [<c01e8e30>] filemap_fdatawait_range+0xd0/0x150
    Oct 1 10:42:17 mars kernel: [ 1200.280030] [<c01e9959>] filemap_write_and_wait_range+0x79/0x90
    Oct 1 10:42:17 mars kernel: [ 1200.280043] [<f88fb67f>] nfs_file_fsync+0x2f/0xd0 [nfs]
    Oct 1 10:42:17 mars kernel: [ 1200.280055] [<f88fb650>] ? nfs_file_splice_read+0xb0/0xb0 [nfs]
    Oct 1 10:42:17 mars kernel: [ 1200.280059] [<c025cc63>] vfs_fsync+0x33/0x50
    Oct 1 10:42:17 mars kernel: [ 1200.280070] [<f88fc2d7>] nfs_file_flush+0x47/0x60 [nfs]
    Oct 1 10:42:17 mars kernel: [ 1200.280074] [<c02326d3>] filp_close+0x33/0x80
    Oct 1 10:42:17 mars kernel: [ 1200.280078] [<c0232792>] sys_close+0x72/0xc0
    Oct 1 10:42:17 mars kernel: [ 1200.280082] [<c04ccf1f>] sysenter_do_call+0x12/0x28
    Anyone know whats going on?
    Last edited by bryanpaddock (2012-10-01 11:48:40)

    Ah-ha! Solved it...
    Wondershaper updated and it defaulted to rate-limit my eth0 instead of ppp0 which is normally shaped.
    Limiting eth0 to 800kbps killed everything...

  • Is anyone using 'niceshaper' successfully?

    This program is exactly what I've been looking for. (a dynamic 'wondershaper'...?)
    Has anyone got this working successfully with a p2p program?
    if so, could a simple guide be wrote, most of the guide on the website goes over my head. :S
    http://niceshaper.jedwabny.net/page/en/documentation
    EDIT
    should be in network section, oops.
    Last edited by gav616 (2009-12-23 15:47:09)

    This program is exactly what I've been looking for. (a dynamic 'wondershaper'...?)
    Has anyone got this working successfully with a p2p program?
    if so, could a simple guide be wrote, most of the guide on the website goes over my head. :S
    http://niceshaper.jedwabny.net/page/en/documentation
    EDIT
    should be in network section, oops.
    Last edited by gav616 (2009-12-23 15:47:09)

Maybe you are looking for

  • DVM lookup failing in soa 11g (11.1.1.3)

    Hi I have a strange problem. my dvm lookup fails in 11g if it does not has exact 1:1 mapping in the DVM. The same code is working in 10g fine. In 10g: -for '' (null) as source-value the dvm lookup function returns the default value orcl:lookup-dvm('L

  • How to replace existing fields in Addnl Data Tab in CV01N Transaction

    Hi DMS Experts, In cv01n transaction, In Addnl Data Tab presently having following fields which i needs to be changed. Addnl Data Tab: Inbound Material Safety Data Sheet MSDS Supplier Product Number Country Dok-X Document Type Dok-X Document Status D

  • Iphone still switching off when I'm restoring it!

    I've got a 3GS 16g and when down loading a new app the other day (after only getting it for Christmas) it crashed and then went into recovery mode. I've hooked it up to my computer and when i try to restore it, the phone seams to reboot or switch off

  • Cisco 4500X VSS & MEC Cisco 2960X

    Hi I have Cisco 4500x VSS  connect to  MEC Cisco 2960X using LACP. I encountered a problem about C2960X Integration reason 1.C2960X Ten 1/0/2 link flapping interface error-disable .  I am  disable interface then  enable interface , switch show SFP no

  • After installing update I can't get a full screen. Only tabs under foxfire symbol on task bar.

    I had to "un-install" Foxfire and reinstall the older version I was using. Every time I tried to install the update it messed up and I could never make it open to full screen. It just kept opening the tabs under the Foxfire symbol on the task bar. Ha