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
runtime: memalloc does not respect cgroups limits (?) #22419
What version of Go are you using (
The current Go memory allocator does not respect any sort of memory limits at all. The current work on #16843 assumes that the user is going to explicitly tell the runtime package approximately how memory to allocate, with the understanding that the runtime may overshoot that number. Any attempt to set that limit automatically based on ulimit or whatever is going to be a later and longer discussion.
I don't think there is any purpose to be served by keeping this issue open at this time, so I am going to close it.