Log in

No account? Create an account

Previous Entry | Next Entry

Filespace is saved!

tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth0 parent 1: classid 1:1 cbq rate 256kbit allot 1500 prio 5 bounded isolated
tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip sport 80 0xffff flowid 1:1

Translation: the web server part of Navi is now limited to 256kbps, leaving a decent amount of bandwidth open for the family to use even when Filespace is under heavy load.

w00tw00t. Now to figure out where to put those commands so they'll stick...


( Read 2 comments — Leave a comment )
May. 23rd, 2004 11:56 am (UTC)
: rate 256kbit

Does (or, do you know if, offhand, whether) this mechanism work for rates less than 1kbit?

May. 27th, 2004 12:52 am (UTC)
I think so, but I'm not sure...

If you want to try it out, take a look at the Linux Advanced Routing & Traffic Control HOWTO. It requires Linux 2.2 or better with the appropriate modules compiled ("QoS and/or Fair Queueing" in menuconfig), plus a set of userland tools, of which 'tc' is perhaps the most important.

Debian didn't come with the appropriate kernel options, even as loadable modules. Apparently, the obscure 'cramfs' was more important than traffic control. *rolls eyes*
( Read 2 comments — Leave a comment )