mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Add a --gcpercent flag that overrides the Go runtime's GOGC value at startup. When not set, the existing cache-based auto-tuning is used. CPU profiling of the binary trie (EIP-7864) shows 44% of CPU time spent in garbage collection due to the large live object graph (~25K InternalNodes). Reducing GC frequency via higher GOGC significantly improves read-heavy workloads at the cost of higher memory usage. This flag lets operators tune based on their workload: - Validators (write-heavy): default or --gcpercent=100 - RPC nodes (read-heavy): --gcpercent=200 or higher |
||
|---|---|---|
| .. | ||
| cmd.go | ||
| diskusage.go | ||
| diskusage_openbsd.go | ||
| diskusage_windows.go | ||
| export_test.go | ||
| flags.go | ||
| flags_legacy.go | ||
| flags_test.go | ||
| history_test.go | ||
| prompt.go | ||