Skip to content

Increasing the size of /dev/shm for the Docker driver #20837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jaywonchung opened this issue May 26, 2025 · 1 comment
Closed

Increasing the size of /dev/shm for the Docker driver #20837

jaywonchung opened this issue May 26, 2025 · 1 comment

Comments

@jaywonchung
Copy link

What Happened?

I'm trying to run a fairly complicated system inside Minikube (driver and container runtime Docker with NVIDIA GPUs). The pods use /dev/shm heavily for IPC -- we need gigabytes -- and our pods have hostIPC: true. However, I see that the default size of /dev/shm inside the Minikube Docker container is 64M and I can't find a way to increase its size. Ideally, I'd like to either be able to pass --ipc host or --shm-size 50g to the docker run command that spins up the Minikube Docker container.

Attach the log file

N/A

Operating System

Redhat/Fedora

Driver

Docker

@jaywonchung
Copy link
Author

I found a workaround. It's good enough for me.

$ minikube ssh
docker@minikube:~$ sudo mount -o remount,size=32G /dev/shm
docker@minikube:~$ df -h
Filesystem             Size  Used Avail Use% Mounted on
overlay                3.5T  2.5T  1.1T  70% /
tmpfs                   64M     0   64M   0% /dev
shm                     32G   84K   32G   1% /dev/shm
tmpfs                  252G  9.7M  252G   1% /run
tmpfs                  252G  8.0K  252G   1% /tmp
/dev/nvme1n1p1         3.5T  2.5T  1.1T  70% /var
/dev/mapper/rhel-root   70G   50G   21G  71% /usr/lib/modules
tmpfs                  252G   12K  252G   1% /proc/driver/nvidia
tmpfs                  252G  4.0K  252G   1% /etc/nvidia/nvidia-application-profiles-rc.d
tmpfs                  5.0M     0  5.0M   0% /run/lock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy