You should expect at most 10ms pauses for large heaps as of Go 1.6, and
especially in Go 1.7.

See https://talks.golang.org/2016/state-of-go.slide#37 (for Go 1.6; Go 1.7
is more consistently lower)


On Sat, Jul 30, 2016 at 8:31 PM, <almeida.pedro...@gmail.com> wrote:

> I'm starting a proof of concept project to the company i work. The project
> is a http proxy with a smart layer of cache (Varnish, Nginx and others
> don't work because we have business rules on cache invalidation) for a very
> big microservice architecture (300+ services).
>
> We have 2x128GB machines available today for this project.
> I don't have any doubt that Go has amazing performance, used in other
> projects, and they are rock solid, very fast and consuming very little
> memory.
> But i'm afraid to use Go at this project because of the GC. I'm planning
> to use all the available memory on cache. Isn't all this memory on heap be
> a problem?
>
> It's a new area to me, store tons of GB in a GC language.
> What is my options? Use a []byte and or mmap to stay out of GC?
> Lots and lots of code to reimplement this datastructures on top of slices
> just to avoid the GC, not counting all the encoding/decoding to get/set the
> values.
>
> Stick with the raw slices?
> Didn't used Cgo before, but it is a viable option?
> Or should i go 100% offheap with something like Rust or C?
>
> I hope to add as little overhead as possible.
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to