OpenVZ Forum


Home » General » Support » RTNETLINK problem with tc
RTNETLINK problem with tc [message #37059] Sun, 16 August 2009 16:08 Go to next message
Sékiltoyai is currently offline  Sékiltoyai
Messages: 7
Registered: August 2009
Location: France
Junior Member

Hello,

I'm trying to set up trafic control on the HN to limit bandwidth used in VPS.

These two rules are tests (see futher). The first one (tc qdisc) seems to work without error, but the second one (tc class) throw a "RTNETLINK answers: Invalid argument" error.
After some searches on Google, I have ensured every /lib/modules/2.6.26-2-openvz-amd64/kernel/net/sched/ modules were modprobed (so as sch_cbq). But no way to make this second rule to work...

Do you have some relative feedback or ideas for investigate the problem ?

Thanks for your help.


My OS : Debian Lenny
My kernel : linux-image-2.6.26-2-openvz-amd64 (installed by debian packages)
The tc commands :
sudo tc qdisc add \
	dev eth0 \
	root handle "1:" \
	cbq \
	avpkt 1500 \
	bandwidth 100mbit

sudo tc class add \
	dev eth0 \
	parent "1:" \
	classid "1:1" \
	cbq \
	rate 15mbit \
	allot 5000 \
	prio 2
Re: RTNETLINK problem with tc [message #37074 is a reply to message #37059] Mon, 17 August 2009 17:11 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

maybe the OpenVZ wiki help you:

-> http://wiki.openvz.org/Traffic_shaping_with_tc

Bye,
Thorsten
Re: RTNETLINK problem with tc [message #37075 is a reply to message #37074] Mon, 17 August 2009 17:52 Go to previous messageGo to next message
Sékiltoyai is currently offline  Sékiltoyai
Messages: 7
Registered: August 2009
Location: France
Junior Member

Mmh, I have already seen this page.

But, after your post, i have done a new test. Initially, I haven't considered relevant the "bounded" and "isolated" keywords as they are marked optional in manpages.

This behaviour (isolating bandwidth) doesn't interest me. Do you know why I get an error by not using them ?

These commands work :
sudo tc class add dev eth0 parent "1:" classid "1:1" cbq rate 15mbit allot 5000 prio 2 bounded


sudo tc class add dev eth0 parent "1:" classid "1:1" cbq rate 15mbit allot 5000 prio 2 isolated


sudo tc class add dev eth0 parent "1:" classid "1:1" cbq rate 15mbit allot 5000 prio 2 bounded isolated


But this one doesn't work :
sudo tc class add dev eth0 parent "1:" classid "1:1" cbq rate 15mbit allot 5000 prio 2


So it seems not to be possible with my kernel to have a trafic controlling which would be neither bounded (able to borrow bandwidth) or isolated (able to lend bandwidth). Is it a particuliarity of my tc commands or a bug in the kernel ?
Re: RTNETLINK problem with tc [message #37139 is a reply to message #37075] Fri, 21 August 2009 06:52 Go to previous message
Sékiltoyai is currently offline  Sékiltoyai
Messages: 7
Registered: August 2009
Location: France
Junior Member
Sékiltoyai wrote on Mon, 17 August 2009 19:52

So it seems not to be possible with my kernel to have a trafic controlling which would be neither bounded (able to borrow bandwidth) or isolated (able to lend bandwidth). Is it a particuliarity of my tc commands or a bug in the kernel ?


Up.
Any idea ?
Previous Topic: 6to4 - tunnel for VE
Next Topic: Network Configuration
Goto Forum:
  


Current Time: Mon Jul 21 19:23:40 GMT 2025

Total time taken to generate the page: 0.09677 seconds