TRICKLE(1) | General Commands Manual | TRICKLE(1) |
trickle
— a
lightweight userspace bandwidth shaper
trickle |
[-h ] [-v ]
[-V ] [-s ]
[-d rate[:schedule]]
[-u rate[:schedule]]
[-w length]
[-t time]
[-l length]
[-n path]
command ... |
trickle
is a userspace bandwidth manager.
Currently, trickle
supports the shaping of any
SOCK_STREAM (see socket(2)) connection established via the
socket(2) interface. Furthermore,
trickle
will not work with statically linked
executables, nor with setuid(2) executables.
trickle
is highly configurable; download and upload
rates can be set separately, or in an aggregate fashion.
The options are as follows:
-h
-v
-V
-s
-d
rate[:schedule]-u
rate[:schedule]-w
lengthtrickle
is at
eliminating bandwidth consumption peaks. Lower values will be more
aggressive, but may also result in over shaping. The default value (512
KB) is usually sufficient.-t
secondstrickle
will try to
let the application transcieve data. Smaller values will result in a more
continuous (smooth) session, while larger values may produce bursts in the
sending and receiving data. Smaller values (0.1 - 1 s) are ideal for
interactive applications while slightly larger values (1 - 10 s) are
better for applications that need bulk transfer. The default value is 3
seconds.-l
lengthtrickle
cannot meet the requested smoothing time,
it will instead fall back on sending length KB of
data. The default value is 10 KB.-n
pathBoth the -u and -d flags accept one or more optional schedules, specified in the following form:
:[days_of_week][start_time],[end_time],[rate]
days_of_week may be any of Su M T W Th F Sa in any order. If no day is specified, the schedule will apply for all days.
start_time is the 3-or-4-digit 24-hour local time to begin the new bandwidth schedule. For example, 1234 would mean 12:34 PM. 123 would mean 1:23 AM. 2345 would mean 11:45 PM.
end_time is the 3-or-4-digit 24-hour local time to end the bandwidth schedule.
rate is the bandwidth limit (in KB/s) that is enforced during the specified time.
Multiple schedules can be string together on the command line. If the schedules overlap, the last one takes precident.
trickle -u 10 -d 20 ncftp
Launch ncftp(1) limiting its upload capacity to 10 KB/s, and download capacity at 20 KB/s.
trickle -d 50 -u
10:WSaSu130,145,1000:MTTh1200,300,96 rsync ...
Launch rsync(1) limiting the bandwidth as follows:
trickle -s -u 100 -d 10000:900,1700,10" wget
...
Launch wget(1) in standalone mode, limiting the bandwidth as follows:
trickle
has been developed by Marius
Aamodt Eriksen ⟨marius@monkey.org⟩.
Does not support executables utilizing kqueue(2). Does not support statically linked executables.
November 10, 2002 | Debian |