Re: [go-nuts] Any recommendation for structured logging library in Golang?

2020-11-17 Thread Mike Spreitzer
> From: ChrisLu > To: golang-nuts > Date: 11/17/2020 11:22 PM > Subject: [EXTERNAL] [go-nuts] Any recommendation for structured > logging library in Golang? > Sent by: golang-nuts@googlegroups.com > > I am considering moving from glog to structured logging. I tried > logrus, go-kit, uber/zap,

Re: [go-nuts] Mysterious RSS memory spike

2020-08-23 Thread Mike Spreitzer
BTW, how are you measuring RSS? That is a trick all by itself! See https://groups.google.com/g/golang-nuts/c/LsOYrYc_Occ/m/LbjLAsL6BwAJ Regards, Mike golang-nuts@googlegroups.com wrote on 08/23/2020 11:04:47 AM: > From: Manish R Jain > To: "golang-nuts" > Date: 08/23/2020 11:04 AM >

Re: [go-nuts] Re: basics of understanding golang memory usage

2020-08-23 Thread Mike Spreitzer
BTW, how are you measuring RSS? That is a trick in and of itself! https://groups.google.com/g/golang-nuts/c/LsOYrYc_Occ/m/LbjLAsL6BwAJ Regards, Mike golang-nuts@googlegroups.com wrote on 08/18/2020 01:56:30 AM: > From: Mike Spreitzer > To: golang-nuts > Date: 08/18/2020 01:56 AM

RE: [go-nuts] Debug http calls made using go http client

2020-08-23 Thread Mike Spreitzer
Krishna can put a use of TCPMon or tcpdump inside the Kubernetes Pod. Either of these things can be added to the main container, or put in another container in the Pod. Regards, Mike golang-nuts@googlegroups.com wrote on 08/23/2020 01:06:20 PM: > From: "Tamás Gulácsi" > To: golang-nuts >

[go-nuts] Re: basics of understanding golang memory usage

2020-08-17 Thread Mike Spreitzer
I collected data on an example program from four angles. See https://docs.google.com/document/d/1KUz7IjnD93X2VTVkRAhhNa7rHScCaIH8GLrsoaDIW_g for the raw data and my puny attempts to correlate the four views. There are some exact equalities, some near matches, some gross differences in things

[go-nuts] Re: basics of understanding golang memory usage

2020-08-17 Thread Mike Spreitzer
FYI, after asking on Slack I got some useful pointers: - https://golang.org/pkg/runtime/#MemStats - definitions of memory stats from the golang runtime - https://github.com/prometheus/client_golang/blob/master/prometheus/go_collector.go - the code that publishes golang runtime memory stats as

[go-nuts] basics of understanding golang memory usage

2020-08-14 Thread Mike Spreitzer
I have several basic questions. I examined a couple of golang programs, and got really confused. I started by looking at a kube-proxy from Kubernetes release 1.15 (probably either 1.15.9 or 1.15.12) on Linux 4.15.0 using `/proc/[pid]/statm`. As a reminder, here is what man procfs has to say