Closed a3nm closed 8 years ago
Yes, the percentages can be arbitrarily larger than 100%. Buttersink used heuristics to guess at the source diff size, and sometimes (often?) this is incorrect. If you are transferring remotely (e.g. over ssh), buttersink will perform a local diff ahead of time, to get a correct size before determining the optimal transfers. If you are transferring locally, it just uses the guesses, since it would take just as long to measure the actual source size as it does to just do the transfer.
One tip: you can force buttersink to do the pre-measuring if you use ssh:/localhost/path as your destination.
Thanks for the explanations! I understand better now, but still I wonder whether the display couldn't be improved so that this is less confusing and does not look like a bug to the user. For instance, display "of estimated" instead of "of" when using estimated sizes, and drop ETA (and maybe the percentage itself) when percentage is above 100%?
Regarding the parenthesis at the end of my report, do you have any ideas about why buttersink is not picking the right parents at all? Is this related to the diff estimations being off? (I can open a different bug with this same report if you like.)
Thanks again!
Antoine Amarilli
On Mon, May 09, 2016 at 11:29:38AM -0700, Ames wrote:
Yes, the percentages can be arbitrarily larger than 100%. Buttersink used heuristics to guess at the source diff size, and sometimes (often?) this is incorrect. If you are transferring remotely (e.g. over ssh), buttersink will perform a local diff ahead of time, to get a correct size before determining the optimal transfers. If you are transferring locally, it just uses the guesses, since it would take just as long to measure the actual source size as it does to just do the transfer.
One tip: you can force buttersink to do the pre-measuring if you use ssh:/localhost/path as your destination.
You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/AmesCornish/buttersink/issues/26#issuecomment-217948349
I have invoked buttersink to transfer snapshots from one filesystem to the other as follows:
The current partial output is:
The percentages end up being larger than 100%, so something is wrong somewhere. (The percentages get incremented and go over 100% while progress information is being displayed.)
(I should also point out that buttersink's heuristic do not seem to be performing so well in this case. The snapshots here were created by a crontab, with diff sizes much smaller than the total volume size, so I think the optimal plan would be to transfer the diffs successively. However, buttersink is apparently trying to transfer the delta with a much older state of the data because it already exists on the destination filesystem.)