Open GoogleCodeExporter opened 8 years ago
Hi,
I tested simply this case, but the result seems that s3fs uploaded parallel by
each process.
I would like to know how many uploading at same time on web server.
The single process uploading is multiple parallel uploading from s3fs to
S3(default is 5 parallel).
Then many process uploading same time means by five times(parallel count =
process count * 5).
I would like to know more information for solving this issue.
Thanks in advance for your help.
Original comment by ggta...@gmail.com
on 10 Dec 2013 at 2:24
Here is a test I did to verify this.
First I run this command to copy one file. I use "time" command to time the
copy.
time cp test.txt /mnt/s3drive/test1.txt
And get output:
real 0m3.869s
user 0m0.000s
sys 0m0.004s
This shows it took 3.8 seconds to complete the copy of one file. Next, I run 5
copy commands at the same time with this command. Use use & operator to run all
the commands at the same time:
time cp test.txt /mnt/s3drive/test1.txt & time cp test.txt
/mnt/s3drive/test2.txt & time cp test.txt /mnt/s3drive/test3.txt & time cp
test.txt /mnt/s3drive/test4.txt & time cp test.txt /mnt/s3drive/test5.txt &
And get output:
real 0m3.892s
user 0m0.000s
sys 0m0.004s
real 0m7.670s
user 0m0.000s
sys 0m0.004s
real 0m11.215s
user 0m0.002s
sys 0m0.002s
real 0m14.797s
user 0m0.001s
sys 0m0.003s
real 0m18.295s
user 0m0.002s
sys 0m0.002s
As each copy command completes it shows the time. If everything is uploading at
the same time each command should still take about 3.8 seconds and they should
all complete at about the same time, but instead each copy command shows slower
and slower. The times are about 3.8 seconds apart, so it looks like it is
uploading the first file in 3.8 seconds, waiting, and then uploading the second
file, etc.
Original comment by penguin...@gmail.com
on 13 Dec 2013 at 9:28
Original issue reported on code.google.com by
penguin...@gmail.com
on 6 Dec 2013 at 10:23