Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Threw away complicated caching logic.
The read logic now looks like: * If this read started where the last finished, request the entire rest of the object and serve from that until the next seek. * Otherwise, request only what the user asked, expanding to a 1 MiB minimum read size. This significantly improves sequential read throughput. The cost to random reads is in the noise. Fixes #103. ========================================== % go install -v && gcsfuse --temp-dir /mnt/ssd0 jacobsa-standard-asia ~/mp % go build ./benchmarks/read_within_file && cputime ./read_within_file --file ~/mp/10g Before: Read 272.00 MiB in 10.439062389s (26.06 MiB/s) After: Read 568.00 MiB in 10.007478618s (56.76 MiB/s) % go install -v && gcsfuse --temp-dir /mnt/ssd0 jacobsa-standard-asia ~/mp % go build ./benchmarks/read_within_file && cputime ./read_within_file --random --file ~/mp/10g Before: Read 15.00 MiB in 10.089234126s (1.49 MiB/s) After: Read 15.00 MiB in 10.461594056s (1.43 MiB/s) % go install -v && gcsfuse --temp-dir /mnt/ssd0 jacobsa-standard-asia ~/mp % go build ./benchmarks/read_full_file && cputime ./read_full_file --dir ~/mp Before: Full-file read times: 50th ptile: 12.401941ms (5.04 GiB/s) 90th ptile: 13.103936ms (4.77 GiB/s) 98th ptile: 13.727666ms (4.55 GiB/s) After: Full-file read times: 50th ptile: 12.543545ms (4.98 GiB/s) 90th ptile: 13.049257ms (4.79 GiB/s) 98th ptile: 13.714352ms (4.56 GiB/s)
- Loading branch information
Showing
37 changed files
with
1,864 additions
and
6,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.