Learn about Centmin Mod LEMP Stack today
Become a Member

Insight Guide Boost 'Centmin Mod LEMP stack performance' in 2022

Discussion in 'Centmin Mod Insights' started by buik, May 12, 2022.

  1. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    7:30 PM
    Ok topic How to boost Centmin Mod LEMP stack performance is 4.5 years old.
    I wonder if the insights from back then still apply anno 2022.
    For example Intel's PGO used at PHP_PGO is from 2015.

    Does it also have a positive effect on PHP 8.1, released in 2021.
    Other recommendations are always welcome. The configuration is written below.
    Code:
    NGINXCPU_AUTOTUNE_NEW='y'
    NGINX_DYNAMICTLS='y'
    NGINX_DEVTOOLSETGCC='y'
    NGINX_SSLCACHE_ALLOWOVERRIDE='y'
    NGINX_STAPLE_CACHE_OVERRIDE='y'
    NGINX_STAPLE_CACHE_TTL='86400'
    NGINX_LIBBROTLI='y'
    NGXDYNAMIC_BROTLI='y'
    LETSENCRYPT_DETECT='y'
    PHP_PGO='y'
    PHP_BROTLI='y'
    PHP_LZFOUR='y'
    PHP_LZF='y'
    PHP_ZSTD='y'
    DMOTD_PHPCHECK='y'
    GCCINTEL_PHP='y'
    DEVTOOLSETTEN='y'
    CLOUDFLARE_ZLIB='y'
    CLOUDFLARE_ZLIBPHP='y'
    


     
  2. eva2000

    eva2000 Administrator Staff Member

    54,584
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    4:30 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    7:30 PM
    Willing to share your config?
    I'm curious if there is still room to optimize.
     
  4. tininho

    tininho Active Member

    182
    44
    28
    May 22, 2019
    eu
    Ratings:
    +135
    Local Time:
    8:30 PM
    Some ideas:

    Code:
    AUTOTUNE_CLIENTMAXBODY='y'
    NGINX_IOURING_PATCH_BETA='y'
    DEVTOOLSETELEVEN='y'
    AUTOHARDTUNE_NGINXBACKLOG='y'
    PHP_TUNING='y'
     
  5. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    7:30 PM
    Nice catch. Thanks.
    Nice. I'm going to try that. Thanks.

    Can't find the option 'NGINX_IOURING_PATCH_BETA' in the code. Only the non beta exists. Is this option based on the patch of Intel, Carter Li or some else?

    Intel achieved the following results with their patch as written below.
    Disadvantage. New kernel outside of EL7 is needed and it strikes me as quite experimental. I don't really find many practical examples with tests/results/bechm on the internet on the longer term.

    Only tests that last only a few minutes with a single test command line in the prompt.
    Non on the longer term. Like. What if using it for a week.... on site ...etc etc with detailed results.

    Apart from that, what is the performance gain of Centminmod using this Nginx AIO option vs not using this option? Has anyone tested this and willing to share bechmarks?

    I can't find this option. But seems that it is only valid as an upgrade and only for Nginx. What is the current status on Devtoolset 11 @eva2000 ?

    "So incorrectly manually setting this by end users can result in duplication directive option errors and prevent nginx server from restarting." I've really never experienced this before. Is this option recommended?

    Looks promising. I'm going to try this one out.
     
    Last edited: May 13, 2022
  6. tininho

    tininho Active Member

    182
    44
    28
    May 22, 2019
    eu
    Ratings:
    +135
    Local Time:
    8:30 PM
  7. eva2000

    eva2000 Administrator Staff Member

    54,584
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    4:30 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    NGINX_IOURING_PATCH_BETA='y' can be buggy so no guarantees and it requires you use 5.x Linux Kernel too
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,584
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    4:30 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes GCC 11 compilation support for PHP and Nginx should work fine with DEVTOOLSETELEVEN='y' set. Waiting on GCC 12 in CentOS 7 and EL8+
     
  9. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    7:30 PM
    Nice. Gonna try this: DEVTOOLSETELEVEN='y'

    Thanks.
    What Kernel are you using?
    Oracle's Unbreakable Enterprise Kernel for EL7?

    About the system you use for NGINX_IOURING_PATCH.
    Dual CPU or single like the blogpost?
     
  10. tininho

    tininho Active Member

    182
    44
    28
    May 22, 2019
    eu
    Ratings:
    +135
    Local Time:
    8:30 PM
    Centos 7 with ml elrepo-release-7.el7 (currently 5.17). Also testing with Alma 8.4, same kernel.

    Various VPSs mainly. And honestly, I don't think Nginx is my bottleneck since most server usage is not caused by visitors directly, so I only know it works. I think that blogger had E5-2682 with quite a bit of cores, if I didn't misunderstand :D
     
  11. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    2:30 AM
    Mainline
    10.2
    How about for new CMM install?
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,584
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    4:30 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Should work :)
     
  13. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    7:30 PM
    Up-to-date 'custom_config.inc' based on feedback.
    As this is a rolling topic.
    Other recommendations are still/always welcome.
    Code:
    NGINXCPU_AUTOTUNE_NEW='y'
    NGINX_DYNAMICTLS='y'
    NGINX_DEVTOOLSETGCC='y'
    DEVTOOLSETELEVEN='y'
    AUTOTUNE_CLIENTMAXBODY='y'
    AUTOHARDTUNE_NGINXBACKLOG='y'
    NGINX_SSLCACHE_ALLOWOVERRIDE='y'
    NGINX_STAPLE_CACHE_OVERRIDE='y'
    NGINX_STAPLE_CACHE_TTL='86400'
    NGINX_LIBBROTLI='y'
    NGXDYNAMIC_BROTLI='y'
    LETSENCRYPT_DETECT='y'
    PHP_PGO='y'
    PHP_BROTLI='y'
    PHP_LZFOUR='y'
    PHP_LZF='y'
    PHP_ZSTD='y'
    PHP_TUNING='y'
    DMOTD_PHPCHECK='y'
    GCCINTEL_PHP='y'
    CLOUDFLARE_ZLIB='y'
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,584
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    4:30 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+