-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying file with CIFS is very slow sometimes #65
Comments
Hi Zerikv, Hmm, I'm not sure that is the cause of the problem. ByteStreams.copy tries to read a complete buffer of 4K from its inputstream at a time, so that should already take care of the buffering. Also, why would this only cause local-to-local copies to be slow? What happens when you copy from-local-SMB-to-remote-SMB or from-remote-SMB-to-local-SMB? Or from local-file-to-local-SMB? Regards, Vincent. |
Hi Vincent,
The same copy (one file about 80 Mb) has taken only 6 seconds from a source shared folder (on the VM) toward a destination local folder. As you suggest, I need to do more tests on this issue. I'll keep you informed with the results. Thank you for your help, Eric |
Finally, I was not able to reproduce this issue with the same VM on another host. I have done some trivial tests with ByteStreams.copy in order to compare elapsed times These tests were to copy one file (about 730Mb)
It just a trivial test, played one time, and results are maybe specific to the network and hardware used, |
Hi Eric, Today I ran into this exact same issue while copying a 9MB file from a Unix host to a Windows host on the same network. The transfer with Overthere took many minutes, while Changing the code in I'm not sure in what circumstances this bug occurs (e.g. it does not occur on my local Windows images), but thanks for noticing! I am reopening this issue so that I can fix it for the next release of Overthere. Regards, Vincent. |
Hello,
I have noticed that in some configurations, copy a
SmbFile
can be very slow (I mean totaly unusable).That seems the case when the destination is a VM hosted on the same machine as the source.
If I have understand right, the copy is done by the Guava class
ByteStreams
inOverthereFileCopier#copyFile
.The copy uses streams provided by
SmbFile
.As I understand theses stream are not buffered.
Do you think to wrap the streams by a Buffered streams could increase the copy rate?
Thank you for your advices.
The text was updated successfully, but these errors were encountered: