-
I’m trying to run some PHP tests for a legacy application, and part of that process requires running a container for MariaDB that uses TokuDB (very obscure engine) The issue is that TokuDB doesn’t work if Transparent Huge Pages are enabled. How can I disable THP for Github Actions? I’m wanting to move away from Circle CI but this is the last thing blocking me. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
To check if Transparent Hugepages is enabled on the Linux machine, you can run the following command.
To disable Transparent Hugepages on the Linux runner machine:
|
Beta Was this translation helpful? Give feedback.
-
How are things going? |
Beta Was this translation helpful? Give feedback.
-
brightran:
Unfortunately this doesn’t work on the GitHub-hosted runner. The container has to be running in privileged mode to modify THP. |
Beta Was this translation helpful? Give feedback.
-
It should work directly in the runner VM, but to ensure the change is made before the container is started you’ll have to manage your container(s) directly instead of relying on job-level |
Beta Was this translation helpful? Give feedback.
-
That was it. Thanks! I needed to manually control the containers instead of using the services option. One small pain point is that I can’t run my tasks in my own docker container. This means I have to install some things in the linux runner every time, and the actions testing environment doesn’t 100% match my production environment any more. I can work around it just fine, but it would be nice in the future if a flag existed to disable THP out the gate so I can use some of the built in docker features. |
Beta Was this translation helpful? Give feedback.
-
mckalexee:
Well, you could turn the current steps into a script running in yet another Docker container. Though admittedly that loses the convenience of including pre-made actions. |
Beta Was this translation helpful? Give feedback.
@mckalexee,
To check if Transparent Hugepages is enabled on the Linux machine, you can run the following command.
To disable Transparent Hugepages on the Linux runner machine:
If on the GitHub-hosted runner, you can try to re-install the Hugepages and use the option “–thp-never” to disable Transparent Hugepages.
name: Re-install Hugepages and disable Transparent Hugepages
run: |
sudo su
sudo apt-…