Re: [go-nuts] GC direct bitmap allocation and Intel Cache Allocation Technology

2016-08-01 Thread Jesper Louis Andersen
On Sun, Jul 31, 2016 at 11:47 AM, EduRam wrote: > It appears it will be possible to allocate partial CPU L3 cache to > processes. If I remember correctly, the original idea for the CAT technology was to have "cache smashing" workloads on the same machines as other

[go-nuts] Re: json murshal/unmarhsal struct that was got using custom interface type

2016-08-01 Thread nathan.leclaire via golang-nuts
Viacheslav, Your best bet here in my opinion is to have an intermediate object that contains type information which you Unmarshal into first to get the concrete type. Then, you have a switch to Unmarshal the remainder of the object into the real deal. We did a similar mechanic to this on

Re: [go-nuts] Using golang/cmd/pprof/internal in a Go program, and/or UNIX socket support in `go tool pprof`?

2016-08-01 Thread Brad Fitzpatrick
It used to be. It was rewritten in Go. On Mon, Aug 1, 2016 at 10:44 AM, Nathan LeClaire wrote: > Oh, interesting call out. Thanks Brad. For some reason I assumed pprof > was a more general-purpose tool written in C++. Forget where I may have > read that. > > On

Re: [go-nuts] Using golang/cmd/pprof/internal in a Go program, and/or UNIX socket support in `go tool pprof`?

2016-08-01 Thread Brad Fitzpatrick
Note that Go's "go tool pprof" is basically just https://github.com/google/pprof You can vendor that into the Docker daemon and have the server profile itself and send the all-in-one output over the unix socket to the docker command line tool, which users can then run and file a bug report with

[go-nuts] const values of any types can't be compared to interface{} values?

2016-08-01 Thread T L
ex: package main > > func main() { > // error: illegal constant expression: *int == interface {} > _ = (*int)(nil) == interface{}(nil) > } > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Re: GC direct bitmap allocation and Intel Cache Allocation Technology

2016-08-01 Thread rlh
Thanks for pointing this out. While it isn't clear how this is applicable to the sweep free alloc work it does seem relevant to the mark worker's heap tracing which can charitable be described as a cache smashing machine. The mark worker, loads an object from a random location in memory,

Re: [go-nuts] Re: How Go GC perform with 128GB+ heap

2016-08-01 Thread Jesper Louis Andersen
On Mon, Aug 1, 2016 at 6:38 AM, 'Sugu Sougoumarane' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Instead, if you ran something like 10x instances of the same program, > you'll end up using the same resources, but will get much better > performance, and your code will be much simpler.

[go-nuts] Re: How Go GC perform with 128GB+ heap

2016-08-01 Thread rlh
I think the high bit here is that the Go community is very aggressive about GC latency. Go has large users with large heaps, lots of goroutines, and SLOs similar to those being discussed here. When they run into GC related latency problems the Go team works with them to root cause and address

[go-nuts] Re: html/template function not defined

2016-08-01 Thread Matt Silverlock
Where is the code for parsing your templates and apply the FuncMap? On Saturday, July 30, 2016 at 7:05:39 AM UTC-7, alex.b...@leadinglocally.com wrote: > > > Since, I have made 2 more float-to-int functions and they work fine. > > To solve this I'm having to pre-marshal my json before I execute

Re: [go-nuts] How Go GC perform with 128GB+ heap

2016-08-01 Thread Chris Randles
Consul and etcd use Boltdb (https://github.com/boltdb/bolt) which uses an mmap-ed file. -- 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

[go-nuts] gomobile installation problem

2016-08-01 Thread vejdani . shojae
Hi all dears I'm beginner in golang and i interested to install gomobile and test it. unfortunately when i going to install gomobile using: "go get golang.org/x/mobile/cmd/gomobile" it broken and give this error massage: package golang.org/x/mobile/cmd/gomobile: unrecognized import path "

[go-nuts] How Go GC perform with 128GB+ heap

2016-08-01 Thread Sokolov Yura
Go 100 off-heap. You may use other in-memory database for data, running on a same machine. I recomend Tarantool: http://tarantool.org - it is capable to handle hundreds of thousands (up to million) requests per second on just one CPU core. If you need more, then you may consider sharding. If