Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jun 08, 2010 11:30 pm 
Offline
Senior Member

Joined: Sun Jul 20, 2003 8:29 am
Posts: 100
Website: http://www.ipo-australia.com
Location: Tropical Queensland, Australia
I've been trying to get tbf to work with Ubuntu 8.04LTS.

Running this command
tc qdisc replace dev eth0 root tbf rate 500kbps latency 50ms burst 1540

should slow the interface down to 500kbytes/sec, but it actually slows down to about 20kbytes/sec.

Any ideas?


Top
   
 Post subject:
PostPosted: Wed Jun 09, 2010 2:51 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
kbps = kilo BITS per second. One byte is eight bits, so you should use "4000kbps" to get 500 kbytes/s... or check out tc's documentation if it allows you to specift values in kbytes.


Top
   
 Post subject:
PostPosted: Wed Jun 09, 2010 4:40 am 
Offline
Senior Member

Joined: Sun Jul 20, 2003 8:29 am
Posts: 100
Website: http://www.ipo-australia.com
Location: Tropical Queensland, Australia
rsk wrote:
kbps = kilo BITS per second. One byte is eight bits, so you should use "4000kbps" to get 500 kbytes/s... or check out tc's documentation if it allows you to specift values in kbytes.

If you have nothing to contribute go away.

tc man page
"All parameters accept a floating point number, possibly followed by a unit.

Bandwidths or rates can be specified in:

kbps Kilobytes per second

mbps Megabytes per second

kbit Kilobits per second

mbit Megabits per second

bps or a bare number
Bytes per second"


Top
   
 Post subject:
PostPosted: Wed Jun 09, 2010 8:36 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
gmt wrote:
If you have nothing to contribute go away.


My personal preference is for units of bits per yoctosecond, or possibly even bits per zeptosecond.

http://en.wikipedia.org/wiki/Zeptosecond

James


Top
   
 Post subject:
PostPosted: Wed Jun 09, 2010 8:50 am 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
Is your "burst" too small?
Code:
       burst  Also  known  as buffer or maxburst.  Size of the bucket, in bytes. This is the maximum amount of bytes that tokens
              can be available for instantaneously.  In general, larger shaping rates require a larger buffer. For  10mbit/s  on
              Intel, you need at least 10kbyte buffer if you want to reach your configured rate!

              If  your  buffer  is  too small, packets may be dropped because more tokens arrive per timer tick than fit in your
              bucket.  The minimum buffer size can be calculated by dividing the rate by HZ.



Also, as seen in the last sentence above, the man page for tbf seems to imply a heavy dependence on the kernel's HZ. I think the linode kernels are tickless, at least mine is. Not sure what effect that has, but it may be affecting your rates.


Top
   
 Post subject:
PostPosted: Wed Jun 09, 2010 1:29 pm 
Offline
Senior Member

Joined: Sun Jul 20, 2003 8:29 am
Posts: 100
Website: http://www.ipo-australia.com
Location: Tropical Queensland, Australia
http://mailman.ds9a.nl/pipermail/lartc/ ... 20594.html
>Xen VMs don't have very precise clocks, so that might be one
> reason why the reliable tbf is also not performing well.
>
> I also set the burst sizes manually and the speed again becomes
> exceptionally low.

This is exactly what I'm experiencing, even giving huge bandwidths results in slow speeds.

Looks like a Xen bug.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group