News for hackers. Stuff that matters.
Re:Go: Execution Tracer Overhaul by goranmoomin on Sunday June 18, 2023 @06:56AM (#36379052)
Trying to understand the document as a Go outsider, but it seems that the document is assuming that the reader knows what Ps, Ms, and Gs are? Anyone knows what they are? It seems that it’s a scheduling resource… but I can’t find any further info.

Edit: It seems like

- P: Logical CPU cores

- M: OS-level threads

- G: Goroutines

Re:Go: Execution Tracer Overhaul by 4ft4 on Sunday June 18, 2023 @07:04AM (#36379097)
P‘s are logical processors, M‘s are OS Threads and G‘s are goroutines. I don’t know who coined these terms or abbreviations but I first heard of them from Bill Kennedy from ArdanLabs in his ultimate go course. So I think these are go specific terms. Maybe the go Team introduced them prior.
Re:Go: Execution Tracer Overhaul by 4ad on Sunday June 18, 2023 @07:01AM (#36379079)
The document's intended audience is Go runtime authors, so yes, of course it assumes the reader know how the Go runtime works.

A somewhat out of date explanation of Ps, Ms, and Gs by yours truly:

https://news.ycombinator.com/item?id=12460807

https://news.ycombinator.com/item?id=12460574