Repository navigation
Allow dev/shm size to be configurable in the native driver - #4981
crosbymichael wants to merge 1 commit into
Conversation
Right now it's hard coded to a -o option. I don't know if this is the best way to do it because the hard coding fs.system.shm.size=512m could lead to duplication but I like being explicit and with this way we can easily see all the commands that are supported by the drivers. Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
|
Any way to bump the size with lxc ? |
|
@crosbymichael Can you rebase this PR, please?. |
|
Closing this now while we work out the options |
|
Any options yet? |
|
What has been working so far for me was to remount /dev/shm with a bigger size: This has to be done in the start command before anything else has been started, of course. |
|
hm, yeah, but that would need |
|
wscherphof: Unfortunately yes. I've tried it in unprivileged mode but that didn't work. |
|
so I'm running privileged as a workaround, while wishing for the feature of being able to enlarge the shared memory without having to run privileged |
|
Hello, is there any other way available to change the size of /dev/shm? Is there any changed planned in docker master branch? |
|
Was there any movement on this? Being discussed on a different github issue? Our performance guys are running into this problem now with some of their tests. And volume mounting in /dev/shm into the container basically breaks the security separation. |
|
The specific test is Linpack MPI which wants to shove a very large dataset into shared memory. |
|
Sadly this seems to have fallen in importance. We now are looking at adding additional tmpfs to the docker run -ti -v /etc/localtime:/etc/localtime:rw -ti --rm fedora mount | grep tmpfstmpfs on /dev type tmpfs (rw,nosuid,context="system_u:object_r:svirt_sandbox_file_t:s0:c785,c819",mode=755) If we want to control the amount of memory available on these tmfs we need a mechansm to specify this per mount point from the CLI, or from the daemon config. |
Fixes #2606
Right now it's hard coded to a -o option. I don't know if this is the
best way to do it because the hard coding fs.system.shm.size=512m could
lead to duplication but I like being explicit and with this way we can
easily see all the commands that are supported by the drivers.
I'm up to suggestions on how to handle this?
Can be configured by
docker run -o native.fs.system.shm.size=512m busybox mountDocker-DCO-1.1-Signed-off-by: Michael Crosby [email protected] (github: crosbymichael)