Repository navigation
Benchmark reads while a writer is committing - #41
Merged
Merged
Conversation
mixed.read runs single lookups on every thread but one for 10 s. The last thread commits 10 updates at a time at 1,000 updates/s, timing each commit from its scheduled start so stalls aren't hidden. Readers sample their latencies into a reservoir and keep the exact maximum.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #33
Adds a 10-second
mixedworkload:mixed.read: every thread but one does single incidence lookups in a closed loop.mixed.write: the last thread commits 10 updates at a time on a fixed schedule of 1,000 updates/s.Writer latency is measured from each commit's scheduled start, so a stall shows up in the commits queued behind it instead of quietly slowing the writer. The writer stops at the deadline even if it's behind, so a store that can't keep up shows a lower achieved rate.
Readers run millions of operations, so each thread keeps a uniform random sample of 200,000 latencies plus the exact max (
Reservoir). The writer gets bytes written, and the readers get allocation and GC, like the other workloads. Both results depend on timing, so the report shows n/a under Results agree; any result can now saychecked: false.My first try used 100-update commits at 2,000 updates/s. Neither store kept up on this loaded machine, so the latency mostly measured a growing backlog, and there were too few commits for a useful p99.9. 10 at 1,000/s gives about 1,000 commit samples and is well within what both stores can do alone.
Smoke run at scale 1, async, 9 readers, machine load around 20:
So HStore readers are faster and steadier at p99, but its writer can't keep the schedule while they run. Together with
latency.commit(#37) and the 20 KiB written per small commit (#38), this points at the cost of small commits. I'll open an issue for that with a profile.