Re:The State of Go: Where we are in February 2016
by geodel on Wednesday February 03, 2016 @02:06PM
(#11028783)
If it is carefully tuned why it needs such a big GC tuning guide and 100s of JVM flags to tune runtime. Any Java product of consequence comes with custom GC settings meaning they do not find default ones suitable.
https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gc...
Re:The State of Go: Where we are in February 2016
by pcwalton on Wednesday February 03, 2016 @02:12PM
(#11028827)
Because the JVM developers had customers who asked for the ability to tune the GC for their particular application.
Go will receive those feature requests too. The Go developers may not be as willing to provide so many knobs (which is a position I'm entirely sympathetic to, don't get me wrong). But the settings always exist, regardless of whether Google hammers in values for them or leaves them adjustable. GC is full of tradeoffs; they're fundamental to the problem.
Re:The State of Go: Where we are in February 2016
by mike_hearn on Wednesday February 03, 2016 @05:05PM
(#11030174)
The G1 collector has a single knob that is supposed to be a master knob: you pick your pause time goal. Lower means shorter pauses but overall more CPU time spent on collection. Higher means longer pauses but less time spent on collection and thus more CPU time spent on your app. Batch job? Give it a high goal. Latency sensitive game or server? Give it a low goal.
There are many other flags too, and you can tune them if you want to squeeze more performance out of your system, but you don't have to use them if you don't want to.
In particular, Go's GC is not yet generational from the talks I've seen, which is a large throughput loss compared to the GC of the JVM.