Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch add PHP_PGO_ALWAYS='n' variable in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 4, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    42,288
    9,554
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,714
    Local Time:
    6:08 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    add PHP_PGO_ALWAYS='n' variable in 123.09beta01

    for PHP 7+ installs, setting PHP_PGO='y' will enable Profile Guided Optimizations for 5-25% better PHP performance but it takes longer for PHP to compile so by default PHP_PGO only enables if you have more than 2 cpu threads on server detected. If your server has 1 cpu core, then PHP_PGO is auto disabled even if you try to enable it. But this update adds a variable PHP_PGO_ALWAYS='n' by default which when set to PHP_PGO_ALWAYS='y' in persistent config file /etc/centminmod/custom_config.inc will override and enable PHP_PGO enable when PHP_PGO='y' set for 1 cpu thread servers too. PHP compiles times can be between 60-90% slower on 1 cpu core servers as PHP compile times depend on how many cpu cores and clock speed of those cpu cores. More cpu cores that are high cpu clock speed = faster PHP compile times.

    Continue reading...

    123.09beta01 branch
     
    • Informative Informative x 1
  2. pamamolf

    pamamolf Premium Member Premium Member

    3,557
    343
    83
    May 31, 2014
    Ratings:
    +658
    Local Time:
    10:08 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hello :)

    Is there any topic related to PHP PGO with more info like what is it and what it does and which are the supported php versions?

    Looking to try it for a first time now but i don't know if that can conflict with any script/software/platform.....?

    Thank you
     
  3. eva2000

    eva2000 Administrator Staff Member

    42,288
    9,554
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,714
    Local Time:
    6:08 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    PGO is referenced in https://centminmod.com/perf/ or linked to at https://community.centminmod.com/th...ptimizations-to-boost-php-7-performance.8961/
    There's no conflicts just Profile Guided Optimizations for PHP 7+ won't accelerate all PHP code paths just ones optimized for. So you either get no change in performance or a boost in performance.
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    3,557
    343
    83
    May 31, 2014
    Ratings:
    +658
    Local Time:
    10:08 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Does that means that the php code of the script/platform should have something related to it so it can get optimized or that the PGO will optimize some paths related to something else related?
     
  5. eva2000

    eva2000 Administrator Staff Member

    42,288
    9,554
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,714
    Local Time:
    6:08 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
     
    • Informative Informative x 1
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,557
    343
    83
    May 31, 2014
    Ratings:
    +658
    Local Time:
    10:08 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    As the performance can't be worst in any case then i will try it :)
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    3,557
    343
    83
    May 31, 2014
    Ratings:
    +658
    Local Time:
    10:08 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Do i need to set also the path?