-
Notifications
You must be signed in to change notification settings - Fork 572
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
WARNING you have Transparent Huge Pages (THP) support enabled #55
Comments
You probably want to see both #19 and #35 -- the short version is that there's nothing we can do to enable these in the image itself. Setting |
Any help how to do this on MacOS host? |
On an OSX machine, you are still running the containers in a Linux VM, so you would have to configure it on that VM whether the VM is from docker-toolbox using docker-machine or Docker for Mac. |
On Linux I solved this running those on HOST:
Suggest closing ;) |
Here is a oneshot systemd unit to do it as well:
|
There's nothing that can be done here -- This is a host level configuration that can't be modified inside the container (unless it runs in privileged mode). |
Leaving some more detail for this in case other Docker for Mac users still have this problem. This solved the above problem with the following system info: This is a very naive solution this problem (mostly just cutting and pasting from SO and above, so use at your own risk). Step 1: Start a screen session the linux VM that docker for mac is running on
(h/t https://stackoverflow.com/questions/39739560/how-to-access-the-vm-created-by-dockers-hyperkit) Step 2: Run the commands above
Step 3: Exit screen session, and run whatever docker images / commands. |
What's the fix on Docker for Windows? |
@danrubenstein great hack, but does it make any practical sense? |
SSH into the Docker VM (MobyLinuxVM)
then, run the commands @mostolog wrote:
|
@danrubenstein |
@danrubenstein Your steps were helpful. However, I found that on my system, the path to Docker's Linux VM was I am using macOS 10.14.2 Mojave; Docker v2.0.0.0-mac81 (29211); and Redis v5.0.3. |
I created a simple shell script to fix this using
I'd use alpine instead of debian, but apparently nsenter is broken for If there's a more direct way to do this w/o pulling debian I'd be glad to hear it. |
thank you. |
In case the screen paths from @danrubenstein and @stephengtuggy don't work, I found on my machine the correct path was macOS Mojave 10.14.6, Docker 2.1.0.5, and Redis 5.0.5 |
Do we have any fix for windows yet? |
Did you try #55 (comment)? Or, since Docker for WIndows is basically the same setup as Docker for Mac, this #55 (comment) should work. Maybe minus running it as a shell script, but the two commands should be enough to modify the VM that Docker uses to run Linux containers. (basically you need to get direct access to the underlying VM so you can turn off THP). For those wondering about using an Alpine container instead of Debian, you should be able to the same thing after installing |
@tunecrew, notice two dashes to signify the end of command options for run followed by sh -c.
|
On Windows I found an easier way to get access to the host VM here: Here is the TL;DR version: |
How would one set this on kubernetes? |
You'll have to set it outside k8s on each of your worker hosts, as detailed above. |
When Redis starts I'm seeing the following two warnings, Is this something to be concerned about or something that should be corrected in the docker-library redis:2.8 image?
The text was updated successfully, but these errors were encountered: