You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hacked together a binary that uses bazilfuse.InitBigWrites in the response to fuse's init request, which appears to result in 32 KiB writes from the kernel.
New results for 1 GiB:
real 0m43.312s
user 0m0.052s
sys 0m2.656s
real 0m37.229s
user 0m0.064s
sys 0m1.980s
Better.
Surprisingly, InitWritebackCache plus big writes appears to make things much worse:
Hacked in some logging that shows that with 32 KiB most of the time is spent in ObjectProxy.Sync, which is doing the network write:
2015/03/25 05:05:47.256616 object_proxy.go:244: WriteAt called
2015/03/25 05:05:47.256658 object_proxy.go:412: ensureLocalFile called
2015/03/25 05:05:47.293666 object_proxy.go:423: ensureLocalFile returning
2015/03/25 05:05:47.293758 object_proxy.go:259: WriteAt returning
2015/03/25 05:05:52.133747 object_proxy.go:296: Sync called
2015/03/25 05:06:29.445792 object_proxy.go:342: Sync returning
real 0m42.493s
user 0m0.044s
sys 0m1.908s
Now that's actually a bit odd to me. What is our io.Copy doing that gsutil is not? Serving from a bytes.Reader rather than the file doesn't seem to make a difference.
Switched to resumable object uploads in jacobsa/gcloud@3b1af22, which seems to make a bit of a difference to upload speed. As far as I can tell, this effect is responsible for most of the remaining delta with gsutil. (Ignoring the unavoidable double-copy overhead when staging the temporary file in gcsfuse.)
Activity
jacobsa commentedon Mar 25, 2015
Setting up in
us-central1-aonn1-standard-4with imagebackports-debian-7-wheezy-v20150320and standard persistent disk.jacobsa commentedon Mar 25, 2015
Setup notes
Create an instance with a built-in key that can access GCS:
Copy in key file:
ssh in and set up the shell:
Install and set up fuse:
Log out and back in so the group change takes effect:
Install Go:
Install Git:
Install gcsfuse:
Test notes
Generate some data:
gcsfuse
Mount gcsfuse:
Copy in the file:
gsutil
jacobsa commentedon Mar 25, 2015
Results from a few runs
100 MiB
gcsfuse
gsutil
1 GiB
gcsfuse
gsutil
jacobsa commentedon Mar 25, 2015
So pretty slow, but not as terribly slow as I had feared. Some things to look at:
cpis doing something braindead here? Try usingddinstead, where we can control the block size.jacobsa commentedon Mar 25, 2015
Trying with dd:
which gives:
which is not much different. Only slightly better with a block size of 10x that, on a single run:
jacobsa commentedon Mar 25, 2015
Confirmed: writes are 4 KiB.
jacobsa commentedon Mar 25, 2015
Hacked together a binary that uses
bazilfuse.InitBigWritesin the response to fuse's init request, which appears to result in 32 KiB writes from the kernel.New results for 1 GiB:
Better.
Surprisingly,
InitWritebackCacheplus big writes appears to make things much worse:jacobsa commentedon Mar 25, 2015
Hacked in some logging that shows that with 32 KiB most of the time is spent in ObjectProxy.Sync, which is doing the network write:
Now that's actually a bit odd to me. What is our
io.Copydoing that gsutil is not? Serving from abytes.Readerrather than the file doesn't seem to make a difference.jacobsa commentedon Mar 25, 2015
FWIW, here is the CPU profile while calling CreateObject:
jacobsa commentedon Mar 25, 2015
Although gcsfuse CPU usage hovers at about 50%, so that's probably not the bottleneck.
jacobsa commentedon Mar 25, 2015
To do for alpha: Document these numbers, set performance expectations.
jacobsa commentedon Mar 26, 2015
Switched to resumable object uploads in jacobsa/gcloud@3b1af22, which seems to make a bit of a difference to upload speed. As far as I can tell, this effect is responsible for most of the remaining delta with gsutil. (Ignoring the unavoidable double-copy overhead when staging the temporary file in gcsfuse.)
jacobsa commentedon Mar 26, 2015
To do:
jacobsa commentedon Mar 26, 2015
Issue #27 is fixed.
Tried again with 1 GiB:
Much much better, and proabably good enough for now. Let's document that performance is comparable with gsutil, and wait for specific complaints.
Added a short README.md section on performance.