2 ms·
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
by goranmoomin 3y ago
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
- 4ad 3y agoThe 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=12460807 https://news.ycombinator.com/item?id=12460574 https://news.ycombinator.com/item?id=12460574
- 4ft4 3y agoP‘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.