Closed jas8522 closed 7 years ago
between completing that command and renaming the file:
Are you aware that renames do not exist in the underlying protocol, and a rename is nothing but a second upload under the new name?
ALWAYS use --inplace with rsync.
rsync --progress --inplace /root/test.txt /mnt/hubic/default/Jordan
test.txt 3 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/1)
sent 75 bytes received 31 bytes 10.10 bytes/sec total size is 3 speedup is 0.03
10.10 bytes/sec isn't too hot! Thoughts on how I can best troubleshoot this?
Thoughts on how I can best troubleshoot this?
Hubic isn't very fast on metadata operations in general (creation/deletion), try with a larger file, if you upload a 100 Mbyte file the speed should average out to much higher, even if there are any creation/end upload delays.
Don't try to store tons of very small files, it isn't fit for that. If you have to, compress them into a single file archive before upload.
Here it is on upload (great performance for transfer itself):
rsync --progress --inplace /root/onehundredmb /mnt/hubic/default/Jordan/ onehundredmb 104857600 100% 69.71MB/s 0:00:01 (xfer#1, to-check=0/1)
But then the process is hung right there. Terminal non-responsive. Is there something else I'm missing? The performance of the raw data transfer seems great, but then it never seems to complete the transaction. I had to ctrl-c rsync.
Here's my attempt to download the same file:
rsync --progress --inplace /mnt/hubic/default/Jordan/onehundredmb /root/download/
file has vanished: "/mnt/hubic/default/Jordan/onehundredmb"
sent 50 bytes received 31 bytes 3.18 bytes/sec
total size is 104857600 speedup is 1294538.27
rsync warning: some files vanished before they could be transferred (code 24) at main.c(1052) [sender=3.0.9]
But then the process is hung right there. Terminal non-responsive. Is there something else I'm missing?
It's not hung, it is actually uploading at this moment. In effect this very fast speed is copying the file into hubicfuse's temporary location (/tmp by default), then the entire file is sent to Hubic. After that completes, your rsync would unlock and most likely also update the speed reading to the realistic one.
Thanks romanrm.
Looks like I'm getting 3MB/sec upload and 1MB/sec download from an OVH VPS in Montreal to Hubic. Would you consider that normal from what you've seen?
Since about a month ago (http://travaux.ovh.net/?do=details&id=17305) they have enabled the 10 Mbit speed limit which is specified in the Hubic TOS. So if you get 3 MB/sec that's very good, and around 1 MB/sec is to be expected.
However the infrastructure is capable of much more than that, as before this change I used to get full 100 Mbit upload speeds, maxing out my home connection. We can look forward to when/if they decide to remove or upgrade the artificial limit.
Nothing we can do on hubicfuse side. Closing.
Running this command:
rsync --progress /root/test.txt /mnt/hubic/default/Jordan
Results in this:
Which can't be the expected speed. I set hubicfuse to debug mode and it seems like the PUT command is normal speed, but then there's some unspecified delay between completing that command and renaming the file:
Thoughts as to what's up with the performance?