Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: high contention in mheap_.lock causing low CPU utilization on allocation-intensive workload #23182
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
changed the title
High contention in mheap_.lock causing low CPU utilization on allocation-intensive workload
Dec 19, 2017
Thanks for the analysis. Could you describe your allocation pattern a bit? Usually many spans stay in the mcentrals, so they don't have to grow that much outside of initialization and phase changes. But it sounds like the allocations in your application have very closely tied lifetimes, so entire spans are often freed together and returned to the heap.
Interesting. With your modification, is