Skip to content

How to Disable Transparent Huge Pages in Github Actions #26004

Answered by BrightRan
mckalexee asked this question in Actions
Discussion options

You must be logged in to vote

@mckalexee,

To check if Transparent Hugepages is enabled on the Linux machine, you can run the following command.

cat /sys/kernel/mm/redhat_transparent_hugepage/enabled
  • If it is enabled, the returned setting is this.
    [always] madvise never
    
  • If it is disabled, the returned setting is this.
    always madvise [never]
    

To disable Transparent Hugepages on the Linux runner machine:

  1. 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: Check Transparent Hugepages
      run: cat /sys/kernel/mm/transparent_hugepage/enabled
    
    • name: Re-install Hugepages and disable Transparent Hugepages
      run: |
      sudo su
      sudo apt-…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants