Join the community today
Become a Member

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

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

  1. eva2000

    eva2000 Administrator Staff Member

    59,272
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    8:37 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.