On Wed, Sep 29, 2004 at 03:53:13PM +0200, Erich Titl wrote: > > > >I have started to load tc.lrp, bash.lrp (as the wonder-script is a bash > >script) and load all modules specified in the qos-htb howto. I also modified > >slightly the script, commenting 4 lines > > > >#echo Please read the documentation in 'README' first > >#exit > > > >and > > > >#tc filter add dev $DEV parent 1: protocol ip prio 18 u32 \ > ># match ip dst 0.0.0.0/0 flowid 1:20 > > I doubt you can remove this filter without consequences.
I think it can be removed, because that puts all 'bulk traffic' into child class 1:20, but 1:20 is also the default when traffic matches no filters. > >Running the script alone is OK but when run by 'shorewall restart', I need > >to replace $[9*$UPLINK/10] with $((9*$UPLINK/10)). I guess because 'bash' is > >not recognized within shorewall script. > > this is the syntax I used: > > #tc class add dev $DEV parent 1:1 classid 1:20 htb rate $[9*$UPLINK/10]kbit \ > tc class add dev $DEV parent 1:1 classid 1:20 htb rate `expr 9 \* $UPLINK / 10`kbit \ > burst 6k prio 2 > > possibly the same thing. I did not have any performance degradation Indeed. Only difference is that the '$(( ))' is handled by the shell itself, but 'expr' is an external command. This is only evaluated at startup however, so doesn't affect performance. About the '$[ ]': I don't know where it comes from, but it's not default bash syntax either. I also replaced it by '$(( ))' arith. evaluation. > > I do not have anything in 'tcrules' yet. So far there is no error > > and it seems that something happens because it slowed down my > > downloading significantly. I tried to download a 15-M file from Sun > > and with 'tcstart' present, I got about 2K/sec, whereas if I remove > > 'tcstart' and restart shorewall, I got 100K/sec. I will try to > > refine the script soon. By the way, is there any way to test the > > wonderscript and tell if it works the way we want it to? Maybe a stupid question, but have you set the DOWNLINK and UPLINK variables in the wondershaper script correctly? Anyways, I recall something strange about the units being used by 'tc'. I myself have the rates specified in Kbits/sec and in the calls to 'tc' have the rates followed by 'Kbit' (with capital K). You might also look at what tc says the outgoing rate is with the command 'tc class show dev $DEV'. Jaap Eldering ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
