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 |
||
|---|---|---|
| .. | ||
| testdata | ||
| accountcmd.go | ||
| accountcmd_test.go | ||
| attach_test.go | ||
| chaincmd.go | ||
| chaincmd_test.go | ||
| config.go | ||
| consolecmd.go | ||
| consolecmd_test.go | ||
| dbcmd.go | ||
| exportcmd_test.go | ||
| genesis_test.go | ||
| logging_test.go | ||
| logtestcmd_active.go | ||
| logtestcmd_inactive.go | ||
| main.go | ||
| misccmd.go | ||
| run_test.go | ||
| snapshot.go | ||