Shaping and kernel panic

Discussion in 'Linux Networking' started by nunya, Dec 16, 2003.

  1. nunya

    nunya Guest

    What I really need is to limit uploads in order to avoid them to
    TBF limits by interface, quite easily and cleanly:
    tc qdisc add dev eth0 root tbf limit 10k burst 22k rate 200kbit
    will rate limit the interface outgoing.
    nunya, Dec 16, 2003
    1. Advertisements

  2. nunya

    Luiz Lima Guest

    I'm getting a kernel panic while trying to run the shaping script
    available at
    It's supposed to do wonders, but once I load it and traffic begins, my
    box crashes. Any clues?

    I'm running RedHat 9, all up2dated:

    #uname -a
    Linux 2.4.20-24.9 #1 Mon Dec 1 11:43:36 EST 2003 i686 athlon i386
    # ip -V
    ip utility, iproute2-ss010824

    What I really need is to limit uploads in order to avoid them to
    damage download speeds.

    I would even go for a "dirty" solution and limit all downloads from
    ports above 1024, which get me to 95% of the result I need since most
    downloads here are from the web and FTP (and I couldn't care less for
    p2p anyway).

    Thanks a lot.

    Luiz Lima
    Luiz Lima, Dec 16, 2003
    1. Advertisements

  3. nunya

    Neil Horman Guest

    I'm not familiar with the script in question, but I worked briefly with
    a gentleman a number of months ago on c.o.l.d.s/n with a project he had
    to do linux bandwidth limiting/arbitration. It turned into a pretty
    good project, and its GPL'd and available for download at Works pretty well for the sort of
    things you're trying to do. I think they have a link there to their
    commercial site if you're looking for a turnkey solution.

    Otherwise, you probably want to start looking at this problem by posting
    the oops that you got when you ran the script.

    Neil Horman, Dec 16, 2003
  4. nunya

    Luiz Lima Guest

    The problem is that if a limit all outgoing I'll also limit ack
    packets. The result would be even worse downloads, wouldn't it? That's
    why I would want to run the script which panics my kernel (it reserves
    space for acks) or I would want to limit connections from remote ports
    Am I missing something easier?

    Luiz Lima, Dec 17, 2003
  5. nunya

    Luiz Lima Guest

    I'm not familiar with the script in question, but I worked
    Thanks. I'll take a look.
    It doesn't crash when I run it. I must wait a few minutes for the
    panic. Where could I get this information from?

    Luiz Lima, Dec 17, 2003
  6. nunya

    Neil Horman Guest

    You'll need to set up netdump, or attach a serial console to your system
    and add the line console=/dev/ttyS0 (or ttyS<n> depending on which
    serial port you use) to your kernel command line.
    Neil Horman, Dec 17, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.