simple go program set up
TC39 meeting agendas
Repro for https://github.com/golang/go/issues/24993
The following may be relevant. From https://golang.org/pkg/runtime/ func GC https://golang.org/src/runtime/mgc.go?s=37860:37869#L1026
GC runs a garbage collection and blocks the caller until the garbage collection is complete. It may also block the entire program.
In the section about the trace line:
If the line ends with "(forced)", this GC was forced by a runtime.GC() call.
The trace contains
gc 15 @432.576s 4%: 0.073+17356+0.021 ms clock, 0.29+0.23/17355/34654+0.084 ms cpu, 8697->8714->8463 MB, 16927 MB goal, 4 P GC forced
at the point indicated as the cause of the issue and the second screenshot looks like a call to runtime.GC is made and the mutator thread is stopped and the GC is run.
I would look into whether runtime.GC is called and if the call is in the dynamic scope of code being timed. If so remove the runtime.GC call and see if that makes any difference.
And kudos for helping out testing the new release candidate.
On Sun, Feb 9, 2020 at 2:03 PM Heschi Kreinick email@example.com wrote:
I think this is working as expected. At the heart of github.com/golang/groupcache/lru is a single large map https://github.com/golang/groupcache/blob/8c9f03a8e57eb486e42badaed3fb287da51807ba/lru/lru.go#L33. AFAIK the map has to be marked all in one go, which will take a long time. In the execution trace above you can see a MARK ASSIST segment below G21. If you click on that I think you'll find that it spent all of its time marking a single object, presumably the map. Austin and others will know better, of course.
Since a real server would need to lock the map, sharding it would be a good idea, which would also reduce the latency impact of a mark.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/golang/go/issues/37116?email_source=notifications&email_token=AAHNNHYCOXRMJYP62MDEGO3RCBHPVA5CNFSM4KRSQU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGU7RA#issuecomment-583880644, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHNNH2BVNJP6PVXBKZJ3ZTRCBHPVANCNFSM4KRSQU3Q .
comment created time in 19 days