Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch add Profile Guided Optimizations for PHP 7 compiles to boost PHP perf…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 1, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    add Profile Guided Optimizations for PHP 7 compiles to boost PHP performance in 123.09beta01

    Via centmin.sh menu option 5 PHP compile/recompile and upgrades, you can optionally enable Profile Guided Optimized PHP builds which boost PHP performance by between 3-17% for Wordpress, MediaWiki and Drupal like PHP web applications. You can enable Profile Guided Optimized PHP builds only when upgrading or recompiling PHP 7.x builds. Does not work for PHP 5.x. You enable PHP 7 PGO via centmin.sh menu option 5 by setting in persistent config file /etc/centminmod/custom_config.inc the variable before running centmin.sh
    Code (Text):
    PHP_PGO='y'
    

    then running centmin.sh menu option 5 to recompile PHP specifying PHP 7 based specific version i.e. 7.0.11. PHP Compile time will take longer as PHP needs to be compiled twice as outlined at PGO: Let It Go (PHP) | Intel® Software

    This new option is disabled by default using PHP_PGO='n'.

    Continue reading...

    123.09beta01 branch

     
    • Like Like x 3
  2. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    6:47 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    So it will not be any better results if server run only XenForo?
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    It might depends on php code similarities i believe. PGO shouldn't make it any worse, only better :D
     
    • Like Like x 1
  4. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    12:47 AM
    1.11
    10.2
    Will work on 7.1 RC3 ? :)
     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    12:47 AM
    1.11
    10.2
    That was long enough :).
     
  6. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    12:47 AM
    1.11
    10.2
    How to verify PHP_PGO working or not?
     
  7. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    12:47 AM
    1.11
    10.2
    Before and After on XenForo Help page on Debug mode.
    Doesn't see any improvements :/
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    Yeah whether it's helpful, you need to benchmark before and after :)

    if it compiles successfully, then should support PGO
     
  9. pamamolf

    pamamolf Well-Known Member

    2,721
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    7:47 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    How do you get that benchmarks?

    Code:
    Timing: 0.0062 seconds Memory: 3.018 MB DB Queries: 4
    Timing: 0.0060 seconds Memory: 3.018 MB DB Queries: 4
    Timing: 0.0060 seconds Memory: 3.018 MB DB Queries: 4
    Timing: 0.0062 seconds Memory: 3.018 MB DB Queries: 4
    Timing: 0.0056 seconds Memory: 3.018 MB DB Queries: 4
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    xenforo debug mode reports it so native to xenforo :)
     
    • Informative Informative x 1
  11. eva2000

    eva2000 Administrator Staff Member

    30,156
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    2:47 AM
    Nginx 1.13.x
    MariaDB 5.5