Heap Optimization for Go Systems
Heap Optimization for Go Systems
Nishant Roy Tech Lead @ Pinterest Dec 2020
About Me
Nishant Roy
Ads Serving Architecture @ Pinterest
Georgia Tech `17 Brunch & Basketball
How does memory management in Go work?
Automated
Concurrent
How does GC impact performance?
Attempts to limit CPU usage
GC steals resources
What causes GC pressure?
Scanning the heap
Number of heap objects
How to determine if GC is the problem?
? High tail latency
? Set the GODEBUG environment variable to see GC stats
GODEBUG=gctrace=1
? Compare GC start/end times to system metrics like latency
gctrace
Source: ArdenLabs
How to profile heap usage?
? Built-in tools to study heap usage runtime.MemStats - Statistics about the memory allocator pprof - System profile visualizer
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- how to avoid go gotchas
- the go programming language part 1
- francesc why and how to write good go code an cern
- agolangwrapperformpi vi4io
- golang range
- develop your embedded applications faster comparing c and
- golang cheat sheet
- go programming language
- designing and building a distributed data store in go
- go 学习笔记 第六版 下卷