how does cockroach solve tail latency now? #142897
-
hi @nvanbenschoten. hope you’re doing well! I’m reaching out as I admire your expertise and wanted to ask a quick question. I noticed you once used GODEBUG=nogcassist=1 to reduce tail latency, but it seems the latest CockroachDB code has removed this. Could you share how CockroachDB currently addresses tail latency reduction? I’d really appreciate your insights. Thanks so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is still here, though our Go runtime fork has been moved to https://github.com/cockroachdb/go/tree/ae89cf02df7a088c1f36752c0a31bfbc6a5eb5bd. If you search for
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 with a higher default I still suspect that there's more that could be done to bound the impact of GC assist to just cases where the risk of an OOM is real and looming, but that would be a large body of work in the Go runtime. |
Beta Was this translation helpful? Give feedback.
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.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…