Re: [go-nuts] Re: Why does my time.Ticker work fine for 6 months then suddenly stop sending ticks?

2023-11-27 Thread Eric Hubbard
Do all ticker stop? or just the one? I had a problem back in 1.17? where the clock that powered the tickers wasn't monotomic .. only on some systems and configurations.. -Eric http://www.google.com/profiles/eric.hubbard On Sun, Nov 26, 2023 at 11:39 PM Ari Croock wrote: > Sorry for the conf

Re: [go-nuts] Re: Why this simple sorting code doesn't work?

2022-12-06 Thread Eric Hubbard
sort.Slice(s, func(i, j int) bool { return i > j }) You are comparing the indexes and not the values -Eric http://www.google.com/profiles/eric.hubbard On Tue, Dec 6, 2022 at 6:45 PM Andrew Harris wrote: > Subtly: > return s[i] > s[j] > > Is the right sort func > > I think it'd be recomme

Re: [go-nuts] Occasional hard lockup w/ 100% CPU usage in go applications

2022-10-31 Thread Eric Hubbard
I'm eager to hear what the final answer is. These are the "fun" ones..:) -Eric http://www.google.com/profiles/eric.hubbard On Mon, Oct 31, 2022 at 8:03 AM Robert Engels wrote: > I would simply use kill to send a signal that generates a core dump and > exits. Make sure you have the shell and s

Re: [go-nuts] Occasional hard lockup w/ 100% CPU usage in go applications

2022-10-25 Thread Eric Hubbard
What version of GoLang? tried different ones? -Eric http://www.google.com/profiles/eric.hubbard On Tue, Oct 25, 2022 at 5:28 PM Steven Sokol wrote: > I don't think so. I don't have it capped in the systemd configuration and > it's not using very much memory even in the runaway state. Here's

Re: [go-nuts] BoringCrypto on arm64?

2022-09-26 Thread Eric Hubbard
Not sure if this helps but there is also this repo that does things a little differently.. https://github.com/golang-fips/go -Eric http://www.google.com/profiles/eric.hubbard On Mon, Sep 26, 2022 at 12:02 PM Ian Lance Taylor wrote: > On Mon, Sep 26, 2022 at 2:51 PM Louisa Berger wrote: > > >

Re: [go-nuts] Re: Go 1.19 Beta 1 is released

2022-06-12 Thread Eric Hubbard
> debug.SetMemoryLimit will be useful (for me at least). Me too! :) I need to read up more about it though. It seems to be a soft limit, not a hard limit. We run in a container that has limited memory.. and anything we can do to make the GC aware of that limit would be nice.. -Eric http://www.

[go-nuts] Re: Lots of retained free spans

2022-01-29 Thread Eric Hubbard
How does go know about memory pressure? maybe that aspect is broken in my environment... within a cgroup..etc.. On Saturday, 29 January 2022 at 02:16:56 UTC-8 Brian Candler wrote: > What go version are you compiling with? > > go prior to 1.16 would hold onto memory such that the OS would only

[go-nuts] Re: Lots of retained free spans

2022-01-29 Thread Eric Hubbard
v1.16.4 On Saturday, 29 January 2022 at 02:16:56 UTC-8 Brian Candler wrote: > What go version are you compiling with? > > go prior to 1.16 would hold onto memory such that the OS would only > reclaim it when under memory pressure; it could be made to free memory > eagerly using GODEBUG=madvdon

[go-nuts] Lots of retained free spans

2022-01-28 Thread Eric Hubbard
I've been trying to root cause an OOM condition. My process is running within a cgroup with a 4gb limit. Occasionally that limit gets hit. I added a cgroup listener to watch for memory usage and create a pprof and core dump. The pprof shows just a few hundred megs of "in-use" memory, however