Hello! I cant get the bwlimit option working right. If i set this option over 400 kbyte per sec i still only get 400kbyte per sec, whether wich value i set. I try this option with a 100MB big file. I use a debian stable System with rsync version 2.5.6cvs protocol version 26. Can someone tell me how i can this get working? thx Rene dpkg -l "rsync*" ii rsync 2.5.5-0.1 fast remote file copy program (like rcp) without bwlimit: Number of files transferred: 1 Total file size: 99745211 bytes Total transferred file size: 99745211 bytes Literal data: 99745211 bytes Matched data: 0 bytes File list size: 74 Total bytes written: 154 Total bytes read: 99757574 wrote 154 bytes read 99757574 bytes 9500736.00 bytes/sec total size is 99745211 speedup is 1.00 with bwlimit=200 Number of files: 2 Number of files transferred: 1 Total file size: 99745211 bytes Total transferred file size: 99745211 bytes Literal data: 99745211 bytes Matched data: 0 bytes File list size: 74 Total bytes written: 168 Total bytes read: 99757574 wrote 168 bytes read 99757574 bytes 136188.04 bytes/sec total size is 99745211 speedup is 1.00 with bwlimit=1000 Number of files: 2 Number of files transferred: 1 Total file size: 99745211 bytes Total transferred file size: 99745211 bytes Literal data: 99745211 bytes Matched data: 0 bytes File list size: 74 Total bytes written: 169 Total bytes read: 99757574 wrote 169 bytes read 99757574 bytes 408007.13 bytes/sec total size is 99745211 speedup is 1.00 with bwlimit=5000 Number of files: 2 Number of files transferred: 1 Total file size: 99745211 bytes Total transferred file size: 99745211 bytes Literal data: 99745211 bytes Matched data: 0 bytes File list size: 74 Total bytes written: 169 Total bytes read: 99757574 wrote 169 bytes read 99757574 bytes 408007.13 bytes/sec total size is 99745211 speedup is 1.00
> I cant get the bwlimit option working right. > If i set this option over 400 kbyte per sec i still only get > 400kbyte per sec, whether wich value i set. I try this option > with a 100MB big file. I use a debian stable System with > rsync version 2.5.6cvs protocol version 26. Can someone tell > me how i can this get working?This really doesn't answer your question, but I wanted to mention that I use CBQ on Redhat for QoS and it does a great job at limiting bandwidth to exactly what it's set to. I believe it's included with Debian as well. I use it on several servers to limit saturation. I think I tried the --bwlimit option a while back and it doesn't seem to work to well if you have many small files. Max
On 17 Oct 2003, Rene Schumann <rene.schumann@gmx.net>?wrote:>?Hello! >? >?I cant get the bwlimit option working right. >?If i set this option over 400 kbyte per sec i still only get 400kbyte >?per sec, whether wich value i set. >?I try this option with a 100MB big file. >?I use a debian stable System with rsync version 2.5.6cvs ?protocol >?version 26. >?Can someone tell me how i can this get working?[ snip ] We use --bwlimit extensively and have experienced the same 400 kB limit. So you are doing nothing wrong. It's just the nature of the beast in the way that it is implemented. Linux systems have a granularity of 10 ms. Wait times cannot be shorter than that, and are rounded up if necessary. If you are pulling data (vs. pushing data) then rsync uses a buffer size of 4096. The forumla used to calculate the sleep time in microsecs is: bytes_written * 1000 / bwlimit 4096 * 1000 / 400 = approx. 10,000 So attempts to use bwlimit greater than 400 ends up with a wait time that is rounded up to 10,000, which is effectively 409.6 kB/s given the 4096 byte buffeer size. Thus the apparent ceiling. There is a proposed patch to accumulate wait times to make it more accurate which would probably solve your problem. See this thread in the archives: http://www.mail-archive.com/rsync@lists.samba.org/msg07270.html A corrected patch is in the next message (7271). -- John Van Essen Univ of MN Alumnus <vanes002@umn.edu>