libshape 20060117 review
Downloadlibshape is library for limiting the download rate of programs. libshape library works entirely in user space with existing progra
|
|
libshape is library for limiting the download rate of programs.
libshape library works entirely in user space with existing programs through LD_PRELOAD.
Are tested with threaded programs. This limiting is done entirely in user space. You only need to start Your program with
$ LIBSHAPE_CFG=/home/user/.libshape/program1
LD_PRELOAD=libshape.so
./program1
to limit download rate to 14Kbps You need to convert this rate to Bps:
$ echo $[14 * 1024 / 8] > /home/user/.libshape/program1
You can't dissable limiter, but you can set it to very high limit.
You can change download rate on the fly. Changes will occur in 1-5 seconds, becous there are some buffers in kernel space.
libshape 20060117 search tags