Skip to contentSkip to conversation

Resetting a queue discipline back to the default pfifo_fast one

DISCUSSION Francois Marier 2 participants 4 messages Jan 9, 2013 – Jan 29, 2013

lore
Share & tools
lore
#0 lore raw

After reading the HOWTO and searching the list archive, I'm still not sure how to do what seems like a simple task. I'm trying to temporarily set a rate-limited queue discipline and then remove it a bit later:

  # tc qdisc add dev eth1 root tbf rate 600kbit latency 50ms burst 1540
  # tc qdisc del dev eth1 root

If I try that on AWS using an Amazon Linux image, it seems to do the right thing, but unfortunately, on Debian squeeze or wheezy, this entirely removes the queue discipline (and severely therefore interferes with outgoing data transfers).

I was hoping to be able to reset the qdisc back to the default one:

qdisc pfifo_fast 0: dev eth1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1

However it doesn't look like that pfifo_fast qdisc can be created manually:

  # tc qdisc add dev eth1 root pfifo_fast
  qdisc 'pfifo_fast' does not support option parsing

The work-around I found is to create a new prio queue discipline:

  # tc qdisc add dev eth1 root prio

but, I was wondering how to reset this back to the real default (pfifo_fast) without rebooting.

Am I dealing with a broken version of tc on Debian? Is this a known problem? Or am I using the tool wrong?

Cheers,
Francois

Signature · 2 lines
Francois Marier           identi.ca/fmarier
http://fmarier.org      twitter.com/fmarier
#1 lore raw

iI think if you just "tc qdisc del dev eth1 root", you will reset it to default.

Quoted 41 lines · Francois Marier

After reading the HOWTO and searching the list archive, I'm still not sure how to do what seems like a simple task. I'm trying to temporarily set a rate-limited queue discipline and then remove it a bit later:

  # tc qdisc add dev eth1 root tbf rate 600kbit latency 50ms burst 1540
  # tc qdisc del dev eth1 root

If I try that on AWS using an Amazon Linux image, it seems to do the right thing, but unfortunately, on Debian squeeze or wheezy, this entirely removes the queue discipline (and severely therefore interferes with outgoing data transfers).

I was hoping to be able to reset the qdisc back to the default one:

qdisc pfifo_fast 0: dev eth1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1

However it doesn't look like that pfifo_fast qdisc can be created manually:

  # tc qdisc add dev eth1 root pfifo_fast
  qdisc 'pfifo_fast' does not support option parsing

The work-around I found is to create a new prio queue discipline:

  # tc qdisc add dev eth1 root prio

but, I was wondering how to reset this back to the real default (pfifo_fast) without rebooting.

Am I dealing with a broken version of tc on Debian? Is this a known problem? Or am I using the tool wrong?

Cheers,
Francois

--
Francois Marier identi.ca/fmarier
http://fmarier.org twitter.com/fmarier
--
To unsubscribe from this list: send the line "unsubscribe lartc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Francois Marier
Quoted 1 line · 叶雨飞

I think if you just "tc qdisc del dev eth1 root", you will reset it to default.

That's what I thought as well, but it doesn't seem to work on Debian and Ubuntu at least. When I delete the queue, it looks like there is no queue anymore and the uplink becomes almost totally unusable.

Francois

#3 lore raw
In reply to Francois Marier

what is your kernel version? You can try to upgrade to a 3.x kernel in debian to see how's things changed.

I have 3.2 and this works fine.

Quoted 12 lines · Francois Marier
Quoted 1 line · 叶雨飞

I think if you just "tc qdisc del dev eth1 root", you will reset it to default.

That's what I thought as well, but it doesn't seem to work on Debian and Ubuntu at least. When I delete the queue, it looks like there is no queue anymore and the uplink becomes almost totally unusable.

Francois
--
To unsubscribe from this list: send the line "unsubscribe lartc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html