Skip to content

how does cockroach solve tail latency now? #142897

Answered by nvanbenschoten
LeGamerDc asked this question in Q&A
Discussion options

You must be logged in to vote

I noticed you once used GODEBUG=nogcassist=1 to reduce tail latency, but it seems the latest CockroachDB code has removed this.

This is still here, though our Go runtime fork has been moved to https://github.com/cockroachdb/go/tree/ae89cf02df7a088c1f36752c0a31bfbc6a5eb5bd. If you search for gcnoassist, you'll see it, still in the same shape as when it was originally added.

Could you share how CockroachDB currently addresses tail latency reduction?

That said, we don't use this knob in production, just in tests to understand the cost of GC assist. It would be unsafe and risk OOMs since it undermines soft memory limits. Our current approach for keeping GC assist disruption down is to run…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LeGamerDc
Comment options

@mknyszek
Comment options

@LeGamerDc
Comment options

Answer selected by yuzefovich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants