# Go Runtime 内核深度拆解：调度器、内存分配、Green Tea GC 与生产调优

DevFeed: [Go Runtime 内核深度拆解：调度器、内存分配、Green Tea GC 与生产调优](<https://devfeed.tech/articles/go-runtime-green-tea-gc-159690.md>)

Original publisher: [Read original article](<https://quant67.com/post/go-runtime/index.html>)

Author: Liao Tonglang

Published: 2026-11-27T00:00:00Z

Content type: article

Language: zh

Sources: [土法炼钢 - 系统与基础设施](<https://devfeed.tech/sources/source-4.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [observability](<https://devfeed.tech/topics/observability.md>), [cgroups](<https://devfeed.tech/topics/cgroups.md>), [vectorization techniques](<https://devfeed.tech/topics/vectorization-techniques.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [garbage-collection](<https://devfeed.tech/tags/garbage-collection.md>), [gc](<https://devfeed.tech/tags/gc.md>), [gmp](<https://devfeed.tech/tags/gmp.md>), [go](<https://devfeed.tech/tags/go.md>), [go-runtime](<https://devfeed.tech/tags/go-runtime.md>), [goroutine](<https://devfeed.tech/tags/goroutine.md>), [greenteagc](<https://devfeed.tech/tags/greenteagc.md>), [os](<https://devfeed.tech/tags/os.md>), [pprof](<https://devfeed.tech/tags/pprof.md>), [scheduler](<https://devfeed.tech/tags/scheduler.md>), [swisstable](<https://devfeed.tech/tags/swisstable.md>), [systems](<https://devfeed.tech/tags/systems.md>), [tag-f8ba1bdfe863](<https://devfeed.tech/tags/tag-f8ba1bdfe863.md>)

## AI overview

The 12-part series uses Go 1.25.5 on linux/amd64 as its source and measurement anchor to explain runtime behavior from startup and GMP scheduling through allocation, GC, concurrency, compiler interfaces, OS boundaries, and production troubleshooting. It connects symptoms such as latency spikes, resident memory that stays high after traffic falls, and OS-thread growth under cgo to mechanisms including mark assist, span retention, and syscall handling. The overview describes runnable experiments and practical triage coverage, while distinguishing local 1.25.5 results from later upstream changes: Green Tea GC is experimental in 1.25 and described as default in 1.26; the excerpt also summarizes 1.24 and 1.27 developments. Its claims are scoped to the stated environment and versions.

## Source excerpt

以 Go 1.25.5 源码与本机实测为锚点，结合 Go 1.26/1.27 演进，系统拆解 GMP 调度、连续栈、分配器、Green Tea GC、并发原语、OS 边界与生产排障。