Join the community today
Register Now

Beta Branch update centmin.sh menu option 4, 5 & 17 in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 9, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,499
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,615
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    update centmin.sh menu option 4, 5 & 17 in 123.09beta01

    - when GCC_FALIGN_FUNCTION='y' is enabled via persistent config file /etc/centminmod/custom_config.inc, then enable tweaks for centmin.sh menu option 4 nginx routine and menu option 5 php routine for more cpu tuning and menu option 17 compression algorithm for pigz Profile Guided Optimization routine. Disabled by default GCC_FALIGN_FUNCTION='n'

    Continue reading...

    123.09beta01 branch
     
    • Like Like x 5
  2. rdan

    rdan Well-Known Member

    4,715
    1,138
    113
    May 25, 2014
    Ratings:
    +1,694
    Local Time:
    5:00 AM
    Mainline
    10.2
    I will try this on next Nginx/PHP version, Thanks!
    If compilation succeeded meaning it works?
     
  3. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,499
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,615
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah pretty much

    you can also inspect the individual php_upgrade and nginx_upgrade logs in /root/centminlogs for references to -falign-functions=32

    listing and filtering nginx_upgrade and php_upgrade logs in date ascending order filtered by grep
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'

    example
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    -rw-r--r--   1 root root 1.4M Oct 18 15:40 centminmod_123.09beta01.b292_181019-153724_nginx_upgrade.log
    -rw-r--r--   1 root root 1.5M Oct 20 12:02 centminmod_123.09beta01.b292_201019-120106_nginx_upgrade.log
    -rw-r--r--   1 root root 1.4M Oct 22 18:53 centminmod_123.09beta01.b293_221019-185126_nginx_upgrade.log
    -rw-r--r--   1 root root 1.8M Oct 22 19:32 centminmod_123.09beta01.b295_221019-192649_php_upgrade.log
    -rw-r--r--   1 root root 366K Oct 22 19:32 centminmod_123.09beta01.b295_221019-192649_php_upgrade_minimal.log
    -rw-r--r--   1 root root 1.6M Oct 24 01:04 centminmod_123.09beta01.b296_241019-010225_nginx_upgrade.log
    -rw-r--r--   1 root root 1.5M Oct 24 10:54 centminmod_123.09beta01.b298_241019-105037_php_upgrade.log
    -rw-r--r--   1 root root 235K Oct 24 10:54 centminmod_123.09beta01.b298_241019-105037_php_upgrade_minimal.log
    -rw-r--r--   1 root root 1.5M Oct 24 17:59 centminmod_123.09beta01.b298_241019-175502_php_upgrade.log
    -rw-r--r--   1 root root 197K Oct 24 17:59 centminmod_123.09beta01.b298_241019-175502_php_upgrade_minimal.log
    -rw-r--r--   1 root root 1.5M Oct 24 18:04 centminmod_123.09beta01.b298_241019-180029_php_upgrade.log
    -rw-r--r--   1 root root 189K Oct 24 18:04 centminmod_123.09beta01.b298_241019-180029_php_upgrade_minimal.log
    -rw-r--r--   1 root root 1.6M Oct 24 18:10 centminmod_123.09beta01.b298_241019-180558_php_upgrade.log
    -rw-r--r--   1 root root 205K Oct 24 18:10 centminmod_123.09beta01.b298_241019-180558_php_upgrade_minimal.log
    -rw-r--r--   1 root root 1.4M Oct 27 03:26 centminmod_123.09beta01.b299_271019-032412_php_upgrade.log
    -rw-r--r--   1 root root  83K Oct 27 03:26 centminmod_123.09beta01.b299_271019-032412_php_upgrade_minimal.log
    -rw-r--r--   1 root root 1.7M Oct 30 03:42 centminmod_123.09beta01.b301_301019-034000_nginx_upgrade.log
    -rw-r--r--   1 root root 1.4M Nov  8 14:47 centminmod_123.09beta01.b306_081119-144458_php_upgrade.log
    -rw-r--r--   1 root root  89K Nov  8 14:47 centminmod_123.09beta01.b306_081119-144458_php_upgrade_minimal.log
    -rw-r--r--   1 root root 1.7M Nov  9 08:35 centminmod_123.09beta01.b309_091119-083312_nginx_upgrade.log
    

    the latest nginx upgrade log was /root/centminlogs/centminmod_123.09beta01.b309_091119-083312_nginx_upgrade.log

    grep count number of references in the log which there were 356 references during nginx compilation
    Code (Text):
    grep -c 'falign-functions=32' /root/centminlogs/centminmod_123.09beta01.b309_091119-083312_nginx_upgrade.log
    356
    

    if you remove grep's -c count flag you get the full matched output

    example excerpt
    Code (Text):
    ./configure --with-ld-opt="-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/lib -ljemalloc -lpcre -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib -flto=8 -fuse-ld=gold" --with-cc-opt="-I/usr/local/zlib-cf/include -I/usr/local/include -m64 -march=native -DTCP_FASTOPEN=23 -falign-functions=32 -g -O3 -fstack-protector-strong -flto=8 -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -gsplit-dwarf" --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --build=091119-083418-centos7 --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --add-dynamic-module=../ngx_http_geoip2_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.5 --add-dynamic-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.32 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.15 --add-module=../ngx_http_redis-0.3.7 --add-dynamic-module=../lua-nginx-module-0.10.15 --add-module=../stream-lua-nginx-module-0.0.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.1d --with-openssl-opt="enable-ec_nistp_64_gcc_128 enable-tls1_3 -fuse-ld=gold"
    ccache gcc -c -I/usr/local/include/luajit-2.1 -I/usr/local/include/luajit-2.1  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I/usr/local/zlib-cf/include -I/usr/local/include -m64 -march=native -DTCP_FASTOPEN=23 -falign-functions=32 -g -O3 -fstack-protector-strong -flto=8 -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -gsplit-dwarf -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include/luajit-2.1 -I ../stream-lua-nginx-module-0.0.7/src/api -I ../ngx_brotli/deps/brotli/c/include -I ../ngx_devel_kit-0.3.0/objs -I objs/addon/ndk -I ../ngx_devel_kit-0.3.0/src -I ../ngx_devel_kit-0.3.0/objs -I objs/addon/ndk -I ../lua-nginx-module-0.10.15/src/api -I /usr/local/include/luajit-2.1 -I ../openssl-1.1.1d/.openssl/include -I ../zlib-cloudflare-1.3.0 -I objs \
    
     
    • Like Like x 1
  4. pdinh97qng

    pdinh97qng Member

    74
    8
    8
    Jan 24, 2016
    Ratings:
    +20
    Local Time:
    1:00 PM
    So I have to compile Nginx or PHP or both?
     
  5. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,499
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,615
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    both after enabling variable