TBF maximum bucket size

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to fill a token bucket with enough tokens to burst several gigs
of data. However, it doesn't seem to get any higher than ~3.9GB:

  >tc qdisc add dev eth0 root tbf rate 1440kbit latency 50ms \
	burst 16000000000
  >tc qdisc show dev eth0
qdisc tbf 800b: rate 1440Kbit burst 3908420240b lat 2197.8s

A smaller attempt of ~1.6 gigs works just fine:

  >tc qdisc add dev eth0 root tbf rate 1440kbit latency 50ms \
	burst 160000000
  >tc qdisc show
qdisc tbf 800c: dev eth0 rate 1440Kbit burst 156250Kb lat 48.8ms

Is there any way around this? I have a 500GB/month colocation deal. This
means I can send a sustained traffic stream of 1440Kbit/s. However, most
of my server's traffic will be in bursts. I figured it makes sense to have
a 1440Kbit/s stream of tokens going into a TBF with a bucket large enough
to hold maybe a few days worth of that stream. I have a 100Mbit connection
to the internet, and there will be days when that will be close to maxed
out. However, I need to protect myself, as going over 500GB will cost me a
fortune in overage charges. So... is there any way I can create a larger
bucket? Anything I'm doing wrong?

Thanks very much for your help,

-Ross Skaliotis
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux