Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: raftLogQueue locking causes contention on large machines #36251

Closed
ajwerner opened this issue Mar 27, 2019 · 3 comments
Closed

storage: raftLogQueue locking causes contention on large machines #36251

ajwerner opened this issue Mar 27, 2019 · 3 comments
Labels
C-performance Perf of queries or internals. Solution not expected to change functional behavior. no-issue-activity X-stale

Comments

@ajwerner
Copy link
Contributor

ajwerner commented Mar 27, 2019

A mutex profile on a 3-node 32-core high CPU cluster running KV0 with 1024 splits (I ran it with a variety of concurrencies) reveals that the vast majority of time is spent waiting on the raftLogQueue.maybeAdd.

Screenshot_2019-03-27 cockroach delay

It seems possible to reconsider this locking in a targeted way given that a CPU profile for this looks like it's mostly accessing system and replica state rather than queue state.

Screenshot_2019-03-27 cockroach cpu(1)

@ajwerner ajwerner added the C-performance Perf of queries or internals. Solution not expected to change functional behavior. label Mar 27, 2019
@tbg
Copy link
Member

tbg commented Mar 28, 2019

#36262 should be of service with that because it can help us remove that queue altogether.

@tbg
Copy link
Member

tbg commented Nov 7, 2019

BTW, I'm curious how this looks on 19.2+, since I made that change to make adding to the queues async. (The work is still being done which is annoying, but at least it won't be blocking the hot path any more).

@github-actions
Copy link

github-actions bot commented Jun 4, 2021

We have marked this issue as stale because it has been inactive for
18 months. If this issue is still relevant, removing the stale label
or adding a comment will keep it active. Otherwise, we'll close it in
5 days to keep the issue queue tidy. Thank you for your contribution
to CockroachDB!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-performance Perf of queries or internals. Solution not expected to change functional behavior. no-issue-activity X-stale
Projects
None yet
Development

No branches or pull requests

2 participants