| Linode Forum https://forum.linode.com/ |
|
| token bucket filter - slowing down network too much https://forum.linode.com/viewtopic.php?f=19&t=5683 |
Page 1 of 1 |
| Author: | gmt [ Tue Jun 08, 2010 11:30 pm ] |
| Post subject: | token bucket filter - slowing down network too much |
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? |
|
| Author: | rsk [ Wed Jun 09, 2010 2:51 am ] |
| Post subject: | |
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. |
|
| Author: | gmt [ Wed Jun 09, 2010 4:40 am ] |
| Post subject: | |
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" |
|
| Author: | zunzun [ Wed Jun 09, 2010 8:36 am ] |
| Post subject: | |
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 |
|
| Author: | Stever [ Wed Jun 09, 2010 8:50 am ] |
| Post subject: | |
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 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. |
|
| Author: | gmt [ Wed Jun 09, 2010 1:29 pm ] |
| Post subject: | |
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. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|