<div dir="ltr">>> <span style="font-family:arial,sans-serif;font-size:13px"> These are both a weak and a strong checksum for each chunk of the file from start to finish. </span><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">So lets take an example.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">If a file were 70000 bytes and the logical block size for rsync by default being 700, it would send :</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">1) 4 Bytes x 70000/700 = 400 Bytes</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">2) 16 Bytes </span><span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">x 70000/700 = 1600 Bytes</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Total : 2000 Bytes</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Is this correct ?</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 3:55 AM, Kevin Korb <span dir="ltr"><<a href="mailto:kmk@sanitarium.net" target="_blank">kmk@sanitarium.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
First, are you talking about --checksum checksums or the hashing of<br>
files that are different on both ends so that only the differences<br>
need to be transferred?  You seem to be talking about the latter while<br>
describing the performance of the former.<br>
<br>
If you are talking about --checksum then you should know that it is<br>
only there for a few very unusual use cases.  It most normal(ish) use<br>
cases --checksum is slower than simply re-copying everything and<br>
especially re-hashing everything (--ignore-times).<br>
<div><div class="h5"><br>
On 11/12/13 17:13, Karl O. Pinc wrote:<br>
> On 11/12/2013 03:50:20 PM, Wayne Davison wrote<br>
><br>
>> Yes, the receiver sends all the checksums that it generates at<br>
>> once<br>
><br>
>> For really big files it would be interesting to amend this rule<br>
>> to one where the sending side waits only long enough for a<br>
>> certain number of checksums to arrive before it begins its work<br>
>> (and perhaps pauses if it gets too far ahead of the arriving<br>
>> checksums).<br>
><br>
> Based on the behavior I see when using rsync, without really<br>
> knowing what's going on, it seems that the sending side first does<br>
> a lot of disk access, then the receiving side does, and then the<br>
> sync begins over the network.  It would save a lot of wall-clock<br>
> time if the sending and receiving side could both be hitting the<br>
> disk at once.  At least in my use case, with whatever version of<br>
> rsync I happen to be using.<br>
><br>
><br>
> Karl <<a href="mailto:kop@meme.com">kop@meme.com</a>> Free Software:  "You don't pay back, you pay<br>
> forward." -- Robert A. Heinlein<br>
><br>
<br>
</div></div>- --<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
        Kevin Korb                      Phone:    (407) 252-6853<br>
        Systems Administrator           Internet:<br>
        FutureQuest, Inc.               Kevin@FutureQuest.net  (work)<br>
        Orlando, Florida                <a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a> (personal)<br>
        Web page:                       <a href="http://www.sanitarium.net/" target="_blank">http://www.sanitarium.net/</a><br>
        PGP public key available on web site.<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.22 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iEYEARECAAYFAlKCqvEACgkQVKC1jlbQAQdV4wCghWzsier+l7/Q5QMLr3HqSJ+m<br>
enAAn1gBX9zULkpDqArhbhKl34xnAmRr<br>
=FzIv<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5">--<br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</div></div></blockquote></div><br></div>