Learn about Centmin Mod LEMP Stack today
Register Now

Beta Branch Nginx & PHP-FPM - enable gcc optimisations for Intel detected processors

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 4, 2014.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    10:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Nginx & PHP-FPM - enable gcc optimisations for Intel detected processors

    Continue reading...

     
  2. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:57 AM
    Mainline
    10.2
    Sounds sweet :D
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    10:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes part of the code was already in place back in April for .07 beta 15 ;) But choose to use the newer commit above for now :)
     
  4. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:57 AM
    Mainline
    10.2
    If that improves my forum speed, then I will try that once release as stable :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    10:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Created a new 123.07stable_install branch at centminmod/centminmod at 123.07stable_intel · GitHub just to backport Intel optimisations. Of course mileage will vary as it depends on which specific Intel processor you're using. Also recompiled PHP 5.5.15 with Intel optimisations for this very forum. Nginx only ~2 days out to 1.7.4 release, so will update to Nginx 1.7.4 with Intel optimisations and see :)
     
  6. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:57 AM
    Mainline
    10.2
    Still not updated here:
    http://centminmod.com/download/centmin-v1.2.3-eva2000.07.zip right?
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    10:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah won't be updating official .07 zip with this. It's Github only so folks in the know can test :D
     
  8. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:57 AM
    Mainline
    10.2
  9. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    10:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I still need to keep it as close to .07 stable branch for testing, so for now just manually make the changes to 123.07stable_install files. You only have to do it once anyway ;)
     
  10. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:57 AM
    Mainline
    10.2
    How to verify this is working and applied? :)
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    10:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no real way to verify AFAIK other than via benchmarking and comparing as well as well checking the compile options i.e. in your nginx upgrade log look for -march=native

    i.e.

    Code:
    ccache gcc -c -O3 -m64 -march=native -pipe -g -mmmx -msse3
    Code:
    grep march=native centminmod_1.2.3-eva2000.07_050814-133739_nginx_upgrade.log | tail -1
    
    ccache gcc -c -O3 -m64 -march=native -pipe -g -mmmx -msse3 -I/svr-setup/staticlibssl/include -I/usr/include  -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/chromium/src -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/google-sparsehash/src -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/google-sparsehash/gen/arch/linux/x64/include -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/protobuf/src -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/re2/src -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/out/Release/obj/gen -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/out/Release/obj/gen/protoc_out/instaweb -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/apr/src/include -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/aprutil/src/include -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/apr/gen/arch/linux/x64/include -I ../ngx_pagespeed-release-1.8.31.4-beta/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I ../pcre-8.35 -I ../openssl-1.0.1h/.openssl/include -I objs \
     
  12. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:57 AM
    Mainline
    10.2
    Yeah it's there Thanks!
     
  13. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:57 AM
    Mainline
    10.2
    What about for PHP Upgrade?
    How to verify?
    Thanks!
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    10:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    same method of verification
     
  15. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    8:57 AM
    Mainline
    10.2
    But I got a very long output, different from nginx upgrade.
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    10:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    if you get any output it means it matched the text you're grepping so it's confirmed to be in place.

    if you get no output means grep can't find the text