Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
containers using MADV_FREE do not see their memory usage decrease #2242
I've a bunch of containers running Thanos (a golang app which proxy prometheus queries).
The latest version of Thanos has been compiled with go 1.12 which use
Unfortunately it seems that cadvisor does not see the memory being released with
Here a graph showing
I don't know if cadvisor can do something about it though.
After couple of tests I am no longer sure if we can rely on
Wonder if my signals are weird (heap being larger than WSS) due to some different scrape internal etc so some spike being missed.
Wrote a post about this in details here: https://bwplotka.dev/2019/golang-memory-monitoring/