[go-nuts] Re: heap profiling does not work on M2 MacBook air?

2023-03-01 Thread Jochen Voss
Hi Peter, Thanks a lot, giving the "-alloc_space" option makes all the difference! With this option, it also works for me. I wonder whether it meant to be the way that you have to give this option. Maybe something broke? In the blog entry https://go.dev/blog/pprof they didn't need this opti

[go-nuts] Re: heap profiling does not work on M2 MacBook air?

2023-03-01 Thread peterGo
Jochen Voss, On linux/amd64 xxx.go: https://go.dev/play/p/Wq_OU49LVQZ $ go build xxx.go && ./xxx $ go tool pprof xxx mem.prof File: xxx Type: inuse_space Time: Mar 1, 2023 at 11:03pm (EST) No samples were found with the default sample value type. Try "sample_index" command to analyze different

Re: [go-nuts] Re: heap profiling does not work on M2 MacBook air?

2023-03-01 Thread Miguel Angel Rivera Notararigo
Try commenting runtime.GC On Wed, Mar 1, 2023, 14:31 Jochen Voss wrote: > Dear Sean, > > Thanks for trying this out. Your result is different from mine, but I > don't think this can be right. According to the output, the only > allocation would be inside the regexp module. But there should be

Re: [go-nuts] Re: heap profiling does not work on M2 MacBook air?

2023-03-01 Thread Jochen Voss
Dear Sean, Thanks for trying this out. Your result is different from mine, but I don't think this can be right. According to the output, the only allocation would be inside the regexp module. But there should be many more allocations (for example in line 56 of the code)! All the best, Joche

Re: [go-nuts] Re: heap profiling does not work on M2 MacBook air?

2023-03-01 Thread 'Sean Liao' via golang-nuts
fwiw, that code works on my machine :tm: 1:40:47 ~/tmp/testrepo0120 0:00:27 main » go run . 1:40:58 ~/tmp/testrepo0120 0:00:08 main » go tool pprof mem.prof File: testrepo0120 Type: inuse_space Time: Mar 2, 2023 at 1:40am (CST) Entering interactive mode (type "help" for commands, "o" for options)

[go-nuts] Re: is ECDHE-RSA-AES256-SHA384 currently supported in Golang?

2023-03-01 Thread Brian Candler
https://go.dev/src/crypto/tls/cipher_suites.go {TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", supportedOnlyTLS12, false}, Looks like it only works with TLS1.2. On Wednesday, 1 March 2023 at 16:15:04 UTC Joe Wickberg wrote: > Hello, > > I've been trying witho

[go-nuts] is ECDHE-RSA-AES256-SHA384 currently supported in Golang?

2023-03-01 Thread 'Joe Wickberg' via golang-nuts
Hello, I've been trying without success to use the result of tls.LoadX509KeyPair (with the two certs in pem files) in tls.Config to perform secure request to a server using ECDHE-RSA-AES256-SHA384 cipher. is ECDHE-RSA-AES256-SHA384 currently supported in Golang? -- The information containe

[go-nuts] Re: heap profiling does not work on M2 MacBook air?

2023-03-01 Thread Jochen Voss
The problem also occurs on AMD64 Linux, so it's not architecture specific. Hints would be most welcome! On Wednesday, 1 March 2023 at 13:55:30 UTC Jochen Voss wrote: > Dear all, > > I'm trying to profile memory use of a program, following the instructions > at https://go.dev/blog/pprof , but I

[go-nuts] heap profiling does not work on M2 MacBook air?

2023-03-01 Thread Jochen Voss
Dear all, I'm trying to profile memory use of a program, following the instructions at https://go.dev/blog/pprof , but I can't get memory profiling to work. Am I doing things wrong, or is this broken? Simplified code is at https://go.dev/play/p/Wq_OU49LVQZ . (The code doesn't run on the play