shad-go/lectures/11-runtime/lecture.slide

50 lines
541 B
Text
Raw Normal View History

2021-04-22 12:24:40 +00:00
Go Runtime Internals
2021-02-18 09:45:14 +00:00
Короткий Фёдор
* Go runtime
- Compiler
- GC
- Scheduler
* Compiler
- Inlining
2021-04-22 12:24:40 +00:00
- Escape Analysis `-m=1` `-m=2`
2021-02-18 09:45:14 +00:00
- Bound Check Elimination
2021-04-22 12:24:40 +00:00
- Call ABI
- ASM
2021-02-18 09:45:14 +00:00
* GC
- Finalizer
- Knobs `GOGC`
2021-02-18 09:45:14 +00:00
- sync.Pool
2021-04-22 12:24:40 +00:00
- STW
- Mark Assist
2021-02-18 09:45:14 +00:00
- Write Barrier
- Stack Growth
2021-02-18 09:45:14 +00:00
* Scheduler
- G, M, P model
- Global Run Queue, Local Run Queue
- Knobs `GOMAXPROCS`
- cgo & system call
2021-02-18 09:45:14 +00:00
- runtime.LockOsThread
* runtime
- stacktraces
- mem stats
- runtime/debug
- gc stats
* Tools
- delve
- gdb
- runtime/pprof
- net/http/pprof