automemlimit v1.0.0: automatically set GOMEMLIMIT from cgroup limits
Hi gophers!
I recently released v1.0.0 of automemlimit, a small library I started about four years ago (and thankfully, a few open-source projects are using it).
It sets GOMEMLIMIT based on the cgroup memory limit, similar to what automaxprocs does for GOMAXPROCS.
Hope some of you find it useful!
[link] [留言] Read original: https://www.reddit.com/r/golang/comments/1w5ag10/automemlimit_v100_automatically_set_gomemlimit/
原文:https://www.a8q9.cn/en/article/en-automemlimit-v100-automatically-set-gomemlimit-from-cgroup-l.html