How to use shared memory with huges pages #25544
Unanswered
marklakata
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a suite of applications that work fine running on the host, but I can't get it to work inside a container. The simplest test case is the following program. The following program runs fine on the host, but not in the container. It allocates 1 GiB of shared memory using huge pages.
In order for huge pages to work with shared memory, there are some other settings that need to be set, but they all seem to be set.
I'm running the container interactively like this
and build and run this:
and it always returns "shmget failed: Operation not permitted".
To use huge pages with shared memory, you need to be part of the hugetlb_shm_group, and I think it is set up correctly:
I don't know what else to try, or if it is even supported.
Beta Was this translation helpful? Give feedback.
All reactions