KimMachineGun/automemlimit
View on GitHub ↗ ★ 575 Go
Automatically set GOMEMLIMIT to match Linux cgroups(7) memory limit.
4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2023-11-07 · latest 2025-02-19
20082026
-
…dealing with kernel OOM and unpredictable GC cycles > You still need to use a helper library like https://github.com/KimMachineGun/automemlimit or https://github.com/uber-go/automaxprocs . I would be surprised if the Go team implemented it…
comment by demi56 · 2025-02-19 · in One year after switching from Java to Go -
…and https://github.com/golang/go/issues/59715 . You still need to use a helper library like https://github.com/KimMachineGun/automemlimit or https://github.com/uber-go/automaxprocs . Go 1.19 only had this in its notes for memory changes…
comment by lenkite · 2025-02-19 · in One year after switching from Java to Go -
…docker, you can automatically set it to the orchestrator-managed memory limit using something like https://github.com/KimMachineGun/automemlimit — no need to add any manual config at all.
comment by physicles · 2024-09-29 · in Some Go web dev notes -
Besides GOMAXPROCS there's also GOMEMLIMIT in recent Go releases. You can use https://github.com/KimMachineGun/automemlimit to automatically set this this limit, kinda like https://github.com/uber-go/automaxprocs .
comment by rickette · 2023-11-07 · in Go, Containers, and the Linux Scheduler