From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Timo Benk" Subject: Linux Traffic Shaping broken in 3.0.3rc1 ? Date: Sat, 07 Oct 2006 21:21:15 +0200 Message-ID: <20061007192115.28680@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, with Xen 3.0.2 i used tc to limit the outgoing traffic rate and it worked very well and accurate with the HTB class: Limit: 1mbit / actual rate: 116.2KB/s (given by scp) Now i looked at 3.0.3rc1 and noticed that traffic shaping using the same setup as before does not work as accurate as before (same hardware): Limit: 1mbit / actual rate: 449.0KB/s (given by scp) Interstingly shaping of the incoming transfer rate at the vif*.* interfaces works correct. The problem is reproducible on my side and for me it seems to be a problem with the new Xen-kernel. Here is a stripped down version of my tc setup for you to verify the problem: -------- tc qdisc add dev peth0 root handle 1:0 htb tc class add dev peth0 parent 1:0 classid 1:1 htb rate 1mbit tc qdisc add dev peth0 parent 1:1 handle 11: prio tc filter add dev peth0 parent 1:0 protocol ip prio 1 u32 match ip src \ 172.17.0.100/32 flowid 1:1 -------- 172.17.0.100/32 is the IP of my Domain-0. Greetings, -timo -- Timo Benk - B1 Systems GmbH (http://www.b1-systems.de) Jabber ID: fry@jabber.org - ICQ ID: #241877854 PGP Public Key: http://m28s01.vlinux.de/b1_gpg_key.asc