I am using these commands to set up bandwidth throttling:
tc qdisc del dev eth1 root tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100Mbit tc class add dev eth1 parent 1: classid 1:1 cbq rate 1Mbit allot 1500 prio 3 bounded isolated tc filter add dev eth1 parent 1: protocol ip u32 match ip protocol 6 0xff flowid 1:1
My understanding is that these commands should limit my network traffic to 1 MBit / 125 KByte per second but they don't.
The actual data transfer rate is roughly 5 MByte per second. I measured that by transferring a large file over NFS. If I modify the "rate 1Mbit" parameter to "rate 512 Kbit" the transfer rate is only 2.5 MByte per second, so the tc command does in fact throttle the traffic but not to what the parameter say.
This server is running Debian Linux 6.0.7 as a Citrix XenServer VM.
What are I am doing wrong? Please advise.