Increase max stack size limit?
Open
type: enhancement
- Dominant language
- Go
- Stars
- 19.3k
- Forks
- 2k
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 264
Description
### Description
The maximum stack size (set with `ulimit -s`) currently appears to be [limited to 128 MB](https://github.com/google/gvisor/blob/01142fe5992a57fce4ac748598337f4a27d1313b/pkg/sentry/mm/syscalls.go#L247). Would maintainers be open to increasing this limit to 512 MB or 1 GB?
For context, I'm trying to run a competitive programming online judge in gVisor, which often requires running programs with a large stack size (usually 256 MB, but occasionally even more).
Thanks for considering this!
### Is this feature related to a specific bug?
No
### Do you have a specific solution in mind?
Yes -- increase `maxStackSize` to 512 MB or 1 GB.
Contributor guide
Assessment
This issue has not been assessed yet.