automemlimit v1.0.0: automatically set GOMEMLIMIT from cgroup limits

2026-09-02English

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!

https://github.com/KimMachineGun/automemlimit

submitted by /u/kim-machine-gun
[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

相关文章