Welcome to Centmin Mod Community
Register Now

Beta Branch update Transparent Huge Pages (THP) defaults in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 31, 2025.

  1. eva2000

    eva2000 Administrator Staff Member

    58,916
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:00 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update Transparent Huge Pages (THP) defaults in 140.00beta01


    - Switch from never to madvise default for THP. Redis historically recommended disabling Transparent Huge Pages (THP) entirely (“never”) to avoid latency and memory usage issues. In practice, most modern Linux distributions ship with THP set to “madvise”, which only applies huge pages when an application explicitly requests them. Since Redis (and bundled jemalloc) never calls madvise(MADV_HUGEPAGE), MADV_HUGEPAGE-mode never impacts Redis’s performance.

    Continue reading...

    140.00beta01 branch
     
  2. iaTa

    iaTa Member

    89
    16
    8
    Mar 26, 2018
    Ratings:
    +32
    Local Time:
    3:00 AM
    Nginx 1.31.x
    MariaDB 10.11.x
    Would it be advisable for existing Redis users to edit /etc/systemd/system/disable-thp.service and change never to madvise?