Results 1 to 5 of 5

Thread: Trouble with tc after upgrading to Karmix

  1. #1
    Join Date
    Mar 2009
    Beans
    3

    Trouble with tc after upgrading to Karmix

    Hello,

    After upgrading (clean install) my machine from 9.04 to 9.10, several tc scripts has stopped working. I have not been able to isolate or fix the problem, but it seems to be related to inheritance. For example, the following works in 9.04 but only gives a "RTNETLINK: Invalid argument" in 9.10:

    tc qdisc add dev eth0 root handle 1: netem delay 10ms
    tc qdisc add dev eth0 parent 1:1 handle 10: htb default 1 r2q 10

    Has anyone experienced anything similar and/or have any ideas on how to fix it? When I checked the HTB FAQ, it said that the error is often caused by using the wrong version of tc for the current kernel, but I have found no way of upgrading tc (also, it shouldn't really be necessary).

    -Kristian

  2. #2
    Join Date
    Feb 2010
    Beans
    2

    Re: Trouble with tc after upgrading to Karmix

    I have a similar problem as well. It has to do with attaching child layers to the queueing discipline (qdisc) tree when the root qdisc is netem. Adding child qdisc layers works fine if the root is cbq

    Is there a bug reported for this issue? Is there a workaround for this?

    Thanks.

  3. #3
    Join Date
    Feb 2010
    Beans
    2

    Re: Trouble with tc after upgrading to Karmix

    I've figured out the issue - netem no longer allows child layers to be added to it.

    In order to produce the equivalent combination of having netem and another queueing discipline, netem has to be the bottommost child.

    E.g.

    tc qdisc add dev eth0 root handle 1: tbf rate 256kbit buffer 1600 limit 3000
    tc qdisc add dev eth0 parent 1: handle 10: netem delay 10ms

    This works on Ubuntu 9.10.
    Last edited by ChrisKhoo; February 6th, 2010 at 01:19 AM.

  4. #4
    Join Date
    Nov 2005
    Location
    flying a cubicle
    Beans
    700
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Trouble with tc after upgrading to Karmix

    Quote Originally Posted by ChrisKhoo View Post
    I've figured out the issue - netem no longer allows child layers to be added to it.

    In order to produce the equivalent combination of having netem and another queueing discipline, netem has to be the bottommost child.

    E.g.

    tc qdisc add dev eth0 root handle 1: tbf rate 256kbit buffer 1600 limit 3000
    tc qdisc add dev eth0 parent 1: handle 10: netem delay 10ms

    This works on Ubuntu 9.10.
    ChrisKhoo - thank you very much for posting this! I've been pulling out my hair for three days trying to figure this problem out on Fedora 12. Your solution works for me too.

    Thanks!

  5. #5
    Join Date
    May 2010
    Beans
    3

    Re: Trouble with tc after upgrading to Karmix

    Yes, thanks for sharing. This is still an issue on Ubuntu 10.04. Chainloading with netem as bottommost did the trick.
    Thanks again.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •