google / google/gvisor

Increase max stack size limit?

Open
#10,508 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.