OpenVZ Forum


Home » General » Support » bandwidth limiting with tc
bandwidth limiting with tc [message #28738] Thu, 27 March 2008 09:24 Go to next message
kkhari is currently offline  kkhari
Messages: 1
Registered: March 2008
Location: India
Junior Member
Hi,

We are running virtuozzo 3 on some of our servers and virtuozzo 4 on some other. Recently we decided to implement bandwidth limiting with tc. We followed many links and decided to try this one on the openvz wiki,

http://wiki.openvz.org/Traffic_shaping_with_tc

The alternate one using HTB.

But when we started on we found that we had errors like

tc qdisc del dev venet0
RTNETLINK answers: No such file or directory


the same error for each tc command. While looking up on different forums we found that it was due to some kernel modules lacking , but then we tried lsmod to find out that it was blank,

*************************
-bash-3.00# modprobe sch_htb
FATAL: Error inserting sch_htb (/lib/modules/2.6.9-023stab046.2-enterprise/kernel/net/sched /sch_htb.ko): Operation not permitted
*************************


*************************
lsmod
Module Size Used by
*************************

No modules are loaded on the vps. It must be normal as a kernel doesn't exist actually for each vps if i understand correctly.


The kernel modules get loaded correctly on the main vps hardware node though.

Please let us know a way by which we cam implement this, all suggestions and comments are welcome.


Thank you


Harikumar Krishnan

'The future Is Open'
Re: bandwidth limiting with tc [message #28742 is a reply to message #28738] Thu, 27 March 2008 12:54 Go to previous messageGo to next message
TheWiseOne is currently offline  TheWiseOne
Messages: 66
Registered: September 2005
Location: Pennsylvania
Member
If this is for Virtuozzo why not use the built-in rate limiting via the vzctl rate/ratebound options?

Matt Ayres
TekTonic
Re: bandwidth limiting with tc [message #28743 is a reply to message #28738] Thu, 27 March 2008 13:32 Go to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Hi Harikumar,

Because of You are Virtuozzo customer I would advise You to address your questions to Virtuozzo support Team
http://www.parallels.com/en/support/virtuozzo/

It seems for me you are truing to configure traffic shaping from inside VE. It is incorrect, You should do it on the host system. Inside VE you cannot load any modules or have direct access to hardware.

Thank you,
Vasily Averin
Previous Topic: Kernel sources needed, SLES 10
Next Topic: Kernel 2.6.24 no UDP Ports opens
Goto Forum:
  


Current Time: Mon Jul 15 08:31:20 GMT 2024

Total time taken to generate the page: 0.02377 seconds