Skip to content

fix issue #2606 - #3505

Closed
jvermillard wants to merge 1 commit into
moby:masterfrom
jvermillard:2606-issue-cant-resize-shm
Closed

jvermillard wants to merge 1 commit into
moby:masterfrom
jvermillard:2606-issue-cant-resize-shm

Conversation

@jvermillard

Copy link
Copy Markdown

Added a "docker run" option for sizing /dev/shm which is actually
hardcoded to 64M.

The option is -shm="xxx" where xxx is the size in bytes using k,m,g
notation.

Docker-DCO-1.0-Signed-off-by: Julien Vermillard [email protected] (github: jvermillard)

@jvermillard jvermillard mentioned this pull request Jan 8, 2014
@vieux

vieux commented Jan 8, 2014

Copy link
Copy Markdown
Contributor

LGTM

@creack creack mentioned this pull request Jan 8, 2014
@SvenDowideit

Copy link
Copy Markdown
Contributor

mmm, @jvermillard could you please update the cli.rst documentation with your new option too?

@jvermillard

Copy link
Copy Markdown
Author

@SvenDowideit done

@creack creack mentioned this pull request Jan 8, 2014
@SvenDowideit

Copy link
Copy Markdown
Contributor

docs LGTM :) and i know someone who will want to use this (with a very large number)

doc
@metalivedev @kencochrane @jamtur01

@jvermillard

Copy link
Copy Markdown
Author

my goal here is to run oracle xe 11g, which need 2Gbytes of SHM (or it refuses to start)

@corporate-gadfly

Copy link
Copy Markdown

my goal here is to run oracle xe 11g, which need 2Gbytes of SHM (or it refuses to start)

I would be interested in the Dockerfile for that project.

@jvermillard

Copy link
Copy Markdown
Author

[OFF-TOPIC] @corporate-gadfly you can't do it with a dockerfile, because you need -privileged option for running the oracle installer
The simple way is to run a centos image (with -priviliged option) and rpm -i the oracle xe RPM, be sure to fix the container hostname, oracle is picky about it.

@jvermillard

Copy link
Copy Markdown
Author

ping? do you need extra modification for merging the PR?

@unclejack

Copy link
Copy Markdown
Contributor

@jvermillard Can you rebase, please?

This will require reviewing again after rebasing because PR #3580 was merged.

@jvermillard

Copy link
Copy Markdown
Author

rebase done

@jvermillard

Copy link
Copy Markdown
Author

bumped signoff dco version

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be --shm=... ? (two dashes)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok let me fix that

Added a "docker run" option for sizing /dev/shm which is actually
hardcoded to 64M.

The option is -shm="xxx" where xxx is the size in bytes using k,m,g
notation.

Docker-DCO-1.1-Signed-off-by: Julien Vermillard <[email protected]> (github: jvermillard)
@unclejack

Copy link
Copy Markdown
Contributor

@jvermillard Some tests are failing

-- FAIL: TestLXCConfig (0.00 seconds)
        lxc_template_unit_test.go:49: template: lxc:75:80: executing "lxc" at <.Config.Shm>: can't evaluate field Shm in type []string
--- FAIL: TestCustomLxcConfig (0.00 seconds)
        lxc_template_unit_test.go:82: template: lxc:75:80: executing "lxc" at <.Config.Shm>: can't evaluate field Shm in type []string
FAIL
exit status 1
FAIL    github.com/dotcloud/docker/execdriver/lxc       0.016s

@jvermillard

Copy link
Copy Markdown
Author

weird :/ was working before the rebase. I probably missed something while rebasing, I'll check that

@jvermillard

Copy link
Copy Markdown
Author

ok the way lxc is configured totally changed with PR #3580 so I need to rewrite my whole patch.
I'll try to find time next week.

@crosbymichael

Copy link
Copy Markdown
Contributor

@jvermillard We talked on IRC so I am going to close this for now until we finish the changes to the exec drivers or you will be forever rebasing until we are finished. We will keep this in mind when designing the api.

@jwerak

jwerak commented Nov 3, 2014

Copy link
Copy Markdown

Is there any thread where I could watch progress on setting /dev/shm size for docker?

@rongearley

Copy link
Copy Markdown

I'm using centos 6.6 and need -shm support. Didn't see it in the help so I imagine it hasn't made its way to this release. Currently using docker 1.5. Please help - really need more control of sizing /dev/shm.

@oren-yowza

Copy link
Copy Markdown

Any update on this PR?
Would be happy to control the shared memory size available inside a docker.

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

Successfully merging this pull request may close these issues.

10 participants