runtime: higher system cpu cost by runtime.freespan #54517
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
running my program
What did you expect to see?
lower system cpu usage.
What did you see instead?
system cpu cost about 30 core.
user cpu cost is only 60 core!
i use perf to record callstack and tran it to pprof.
the pprof top means that function native_queued_spin_lock_slowpath cost most cpu.

hear is the pprof flamegraph, seems that runtime.freespan is the reason.

the memory usage of my machine.
the pprof file:
cpu.pprof.gz
The text was updated successfully, but these errors were encountered: