Discover Centmin Mod today
Register Now

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

    55,807
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
     
  2. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    3:38 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    So it will not be any better results if server run only XenForo?
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,807
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    It might depends on php code similarities i believe. PGO shouldn't make it any worse, only better :D
     
  4. rdan

    rdan Well-Known Member

    5,451
    1,412
    113
    May 25, 2014
    Ratings:
    +2,206
    Local Time:
    9:38 PM
    Mainline
    10.2
    Will work on 7.1 RC3 ? :)
     
  5. rdan

    rdan Well-Known Member

    5,451
    1,412
    113
    May 25, 2014
    Ratings:
    +2,206
    Local Time:
    9:38 PM
    Mainline
    10.2
    That was long enough :).
     
  6. rdan

    rdan Well-Known Member

    5,451
    1,412
    113
    May 25, 2014
    Ratings:
    +2,206
    Local Time:
    9:38 PM
    Mainline
    10.2
    How to verify PHP_PGO working or not?
     
  7. rdan

    rdan Well-Known Member

    5,451
    1,412
    113
    May 25, 2014
    Ratings:
    +2,206
    Local Time:
    9:38 PM
    Mainline
    10.2
    Before and After on XenForo Help page on Debug mode.
    Doesn't see any improvements :/
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,807
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    4:38 PM
    Nginx-1.26.x
    MariaDB 10.6.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

    55,807
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    xenforo debug mode reports it so native to xenforo :)
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,807
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+