MT cpu spike due to GC -> requests can easily take >5s to get answered #172
Comments
test with https://gist.github.com/Dieterbe/bda3f2af50c56146e98580a03c2b6eaa applied to raintank-docker to auto-apply realistic workload vegeta:
new sys https://snapshot.raintank.io/dashboard/snapshot/i9TIko5tB522Wh8RQVgR7BG6BZmjmFna vegeta:
=> my test was probably using too many req/s or something. it seemed graphite-api itself had issues keeping up, however we can still tell what we need to tell: |
confirmed again using latest golang master, which includes Austin's fix. |
latest master has GC changes that should help |
a fix was merged in Go for golang/go#16293 : golang/go@cf4f1d0 , this has shown good results for large maps (see also spion/hashtable-latencies#13). It will likely fix our issue as well. We just need to test it. |
Is it reasonable to cherry-pick that fix onto 1.7.1 ? |
i'll just run a bench in raintank-docker. |
i'm going to look into techniques to lower GC cpu overhead.
we currently reference a lot of data through pointers, i suspect we may be able to lower GC quite a bit by being smarter about this.
The text was updated successfully, but these errors were encountered: