Discussion:
Using netem qdisc
Michael Lundkvist
2004-09-15 15:22:45 UTC
Permalink
Hi!

I'm trying to get the netem qdisc to work.

I've gotten 2.6.9-rc2 kernel and iproute2-2.6.9-ss040831.

Then I try it with:

tc qdisc change dev eth0 netem delay 100ms

and the response I get is:

RTNETLINK answers: Invalid argument

Should I use another combination of kernel and iproute2?

Are there any options besides enabling CONFIG_NET_SCH_NETEM that needs
to be enabled?

I've attached my kernel config file.

/Micke
Stephen Hemminger
2004-09-15 15:46:54 UTC
Permalink
On Wed, 15 Sep 2004 17:22:45 +0200
Post by Michael Lundkvist
Hi!
I'm trying to get the netem qdisc to work.
I've gotten 2.6.9-rc2 kernel and iproute2-2.6.9-ss040831.
tc qdisc change dev eth0 netem delay 100ms
tc qdisc chang dev eth0 root netem delay 100ms
Post by Michael Lundkvist
RTNETLINK answers: Invalid argument
Should I use another combination of kernel and iproute2?
Are there any options besides enabling CONFIG_NET_SCH_NETEM that needs
to be enabled?
Also make sure you installed the shared library that does netem support in /usr/lib/tc/q_netem.so
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Michael Lundkvist
2004-09-15 15:53:11 UTC
Permalink
Post by Stephen Hemminger
Also make sure you installed the shared library that does netem support in /usr/lib/tc/q_netem.so
Done that.

Without it tc complains that netem is an unknown qdisc.

/Micke
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Catalin(ux aka Dino) BOIE
2004-09-16 12:21:10 UTC
Permalink
Post by Michael Lundkvist
I'm trying to get the netem qdisc to work.
I've gotten 2.6.9-rc2 kernel and iproute2-2.6.9-ss040831.
tc qdisc change dev eth0 netem delay 100ms
1. Make sure sch_netem is loaded.
2. make sure /usr/lib/q_netem.so exists.
3. Run: tc qdisc add dev dummy0 root netem latency 100ms

If it doesn't work, please run:
strace -v tc qdisc add dev dummy0 root netem latency 100ms
and send the output only to me.
Post by Michael Lundkvist
RTNETLINK answers: Invalid argument
Should I use another combination of kernel and iproute2?
Are there any options besides enabling CONFIG_NET_SCH_NETEM that needs
to be enabled?
I've attached my kernel config file.
/Micke
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...