Discover Centmin Mod today
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

    59,388
    12,514
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,150
    Local Time:
    9:45 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

    94
    18
    8
    Mar 26, 2018
    Ratings:
    +37
    Local Time:
    12:45 PM
    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?