Bandwidth Shaper/Prioritizing

Ask questions about Arch Linux ARM. Please search before making a new topic.

Bandwidth Shaper/Prioritizing

Postby slycat » Sun Oct 28, 2012 7:36 pm

I do not have much experience with tc/iproute/iptables but I want to prioritize my network applications so that I do not need to cap one program before I temporarily use another (then requiring an uncap). For now, whenever I want to stream something through minidlna or work through a smb share I log into my transmission and cap it, then once done uncap it. It isn't exactly a problem but it is a nuisance. Has anyone been successful in shaping or prioritizing their bandwidth on their plugs?

I tried one shaper (wondershaper) but get errors involving communication with the kernel. Not sure where to really start from, so any ideas or examples would help.
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Bandwidth Shaper/Prioritizing

Postby WarheadsSE » Sun Oct 28, 2012 8:06 pm

QoS is always interesting. However, if this is on an oxnas, it might not work right with a kernel that old. If you find something in the kernel that it needs, let me know.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Bandwidth Shaper/Prioritizing

Postby slycat » Mon Oct 29, 2012 3:32 pm

Most of what I have read online thus far says that QoS is functional on 2.4 and above. But a number of distros have issues with tc and all have different solutions, neither of which have solved it for my oxnas. A CentOS solution involved modprobing sch_cbq and/or compiling a diff iproute. Gentoo-ers found adding "root" to the command completed the job, but not for me. OpenWRT is still trying to figure out how to fix the same problem.

Below are the commands and their errors
$this->bbcode_second_pass_code('', '## Snipped from original script (wonderscript)
DEV=eth0
DOWNLINK=2800
##### downlink handling
tc qdisc add dev $DEV handle ffff: ingress
tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \
0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1')
They return
$this->bbcode_second_pass_code('', 'RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
We have an error talking to the kernel')
For anyone interested here's the link to the script.

The site mentions that if there are errors with these two lines it suggests to recompile iproute
iproute2-2.4.7-now-ss010824.tar.gz
But even after editing the make file it will not compile.

Any ideas?
Last edited by slycat on Tue Oct 30, 2012 2:08 am, edited 1 time in total.
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Bandwidth Shaper/Prioritizing

Postby pepedog » Mon Oct 29, 2012 4:32 pm

Shouldn't
Dev=eth0
Read
DEV=eth0
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Bandwidth Shaper/Prioritizing

Postby slycat » Tue Oct 30, 2012 2:08 am

It does in the script. That typo was my fault as I just typed in those two variables and copy-pasted the last two commands. Fix'd.
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL


Return to User Questions

Who is online

Users browsing this forum: No registered users and 4 guests