Is it possible to change /dev/shm size for containers? #8568
Unanswered
sfc-gh-aivanou
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using k8s with containerd and runc and was wondering whether it is possible to change the shm size?
shm mount point is defined in
ctr oci spec
, that has size option, but no matter what size I put, containers always have/dev/shm
with only 64Mb .I tried to change size of /dev/shm in the
ctr spec
:But it does not seem to have any effect. Is it because the shm size is hardcoded to 64mb here: https://github.com/containerd/containerd/blob/main/pkg/cri/server/sandbox_run_linux.go#L301 ? And shm oci spec configuration is not really used?
Beta Was this translation helpful? Give feedback.
All reactions