Join the community today
Register Now

Featured CentOS 7.x How to help test .08 CentOS 7 Betas with Github code ?

Discussion in 'Beta release code' started by eva2000, Jul 11, 2014.

  1. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    I modified centmin.sh to:
    NGINX_PAGESPEED=n

    Another error now:
     
    • Informative Informative x 1
  2. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    Eva! is not sleeping :D
     
  3. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    i suspect it's to with 32bit os.. i'll add a check for it and enable clang only for 64bit

    other work came up heh
     
    • Like Like x 1
  4. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    Still an error Eva.
     
  5. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    Grabbing the latest commit on github, seems fine now.
    nginx upgrade works now @eva2000 .
    Thanks a lot!
     
  6. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
     
  7. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  8. Steve Tozer

    Steve Tozer Member

    70
    42
    18
    Jul 28, 2014
    South Wales, UK
    Ratings:
    +49
    Local Time:
    1:42 PM
    1.91
    10.0.19
    Just tested this on CentOS 7 OpenVZ - Installs nice, tested LibreSSL with a test site, See be sweet :D
     
    • Like Like x 1
  9. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    Total PHP Upgrade Time: 230.591006678 seconds
    Total Nginx Upgrade Time: 75.446789795 seconds

    RamNode | VPS Plans 1024MB SKVM
     
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    thanks @Steve Tozer for all your testing and contribution :)
    Nice.. need to see how i can improve the PHP side times too :)
     
    • Like Like x 2
  11. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Testing out .08 beta03's new clang support for PHP compilations via centmin.sh variable CLANG_PHP='y'. It currently defaults to disabled CLANG_PHP='n' in centmin.sh so need to set to 'y' to enable it. Looks like Clang worked fine with CLANG_PHP='y' when i recompiled PHP 5.4.41 via centmin.sh menu option 5.

    ccache 3.2.2 version also working nicely with caching for recompiles, speed up is ~49% faster ! :D

    Menu Logs /root/centminlogs/



    All centmin.sh menu options have a saved log of what happened at /root/centminlogs/

    PHP Install/Reinstall Times



    Initial first time PHP 5.4.41 install time during initial Centmin Mod .08 beta03 install took 142.842 seconds (without Clang enabled CLANG_PHP='n')
    Code:
    tail -1 /root/centminlogs/centminmod_phpinstalltime_100615-131800.log
    Total PHP First Time Install Time: 142.842168192 seconds
    First recompile of PHP 5.4.41 via centmin.sh menu option 5 done in 182.046 seconds as ccache's cache has yet to be populated and bit slower as ccache has initial overhead which the first time PHP install above didn't. (with Clang enabled CLANG_PHP='y')
    Code:
    tail -1 /root/centminlogs/centminmod_1.2.3-eva2000.08_100615-180344_php_upgrade.log
    Total PHP Upgrade Time: 182.046121141 seconds
    On recompile of PHP 5.4.41 with populated ccache cache, much faster at 92.203 seconds. (with Clang enabled CLANG_PHP='y')
    Code:
    tail -1 /root/centminlogs/centminmod_1.2.3-eva2000.08_100615-180749_php_upgrade.log
    Total PHP Upgrade Time: 92.202542684 seconds

    PHP 5.4 to 5.6 Clang Compile Tests



    Next is to test PHP 5.4.41 to 5.6.9 upgrade via centmin.sh menu option 5 with Zend Opcache enabled and with Clang enabled CLANG_PHP='y'.

    Upgrading major PHP versions i.e. 5.4 to 5.5 or 5.6 or 7.0 will usually take longer as all custom additional PHP extensions added by Centmin Mod like igbinary, imagick, apc cache/xcache or zend opcache or memcache/memcached and geoip/mongodb are recompiled ONLY if major PHP version updates are detected. If recompiling within same PHP branch i.e. 5.4.x or 5.5.x or 5.6.x, then those PHP extensions do not get recompiled.

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu 
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10, 10.1 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    
    Code:
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    
    PHP Upgrade - Would you like to continue? [y/n] y
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.4.41, 7.0.0, NGDEBUG)
    PHP 7.0.0 is experimental in alpha status and may have broken PHP extensions.
    NGDEBUG is PHP 7.0.0 minus incompatible PHP extensions
    ----------------------------------------------------------------
    Enter PHP Version number you want to upgrade/downgrade to: 5.6.9
    ----------------------------------------------------------------
    Want to update to latest php-fpm.conf ? (overwrites will auto backup existing php-fpm.conf)
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_100615-181902
    existing php-fpm.conf will be backed up at /usr/local/etc/php-fpm.conf-oldversion_100615-181902
    ----------------------------------------------------------------
    Update & overwrite your existing php-fpm.conf [y/n]: n
    ----------------------------------------------------------------
    
    -----------------------------------------------------------------------------------------
    Detected PHP 5.6 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y
    End result
    Code:
    php -v
    PHP 5.6.9 (cli) (built: Jun 10 2015 18:25:43)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
    506.75 seconds for PHP 5.4 to 5.6.9 update + all custom PHP extensions recompiled.
    Code:
    tail -1 /root/centminlogs/centminmod_1.2.3-eva2000.08_100615-181902_php_upgrade.log
    Total PHP Upgrade Time: 506.749606048 seconds
    The custom PHP extensions' individual .ini config files
    Code:
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/mongodb.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini
    Code:
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    ereg
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    memcache
    memcached
    mhash
    mongo
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache

    ccache compiler's accumulated statistics - you can see the higher accumulated ccache miss stats as it was first time installing PHP 5.6.9. Next is to test recompile of PHP 5.6.9 to measure times
    Code:
     ccache -s
    cache directory                     /home/.ccache
    primary config                      /home/.ccache/ccache.conf
    secondary config      (readonly)    /usr/local/etc/ccache.conf
    cache hit (direct)                   950
    cache hit (preprocessed)              48
    cache miss                          2902
    called for link                       56
    called for preprocessing             276
    compile failed                        76
    preprocessor error                    57
    bad compiler arguments                53
    autoconf compile/link               1121
    no input file                         84
    files in cache                      6157
    cache size                         277.2 MB
    max cache size                       2.2 GB

    PHP 5.6.9 Clang Recompile Tests



    Running centmin.sh menu option 5 again and specify PHP 5.6.9 at prompt to recompile to measure ccache benefits.

    recompile of PHP 5.6.9 with Clang compiler took 103.74 seconds
    Code:
    tail -1 /root/centminlogs/centminmod_1.2.3-eva2000.08_100615-183311_php_upgrade.log
    Total PHP Upgrade Time: 103.741114552 seconds
    ccache stats more cache hits now on recompile :)
    Code:
     ccache -s
    cache directory                     /home/.ccache
    primary config                      /home/.ccache/ccache.conf
    secondary config      (readonly)    /usr/local/etc/ccache.conf
    cache hit (direct)                  2631
    cache hit (preprocessed)              67
    cache miss                          2910
    called for link                       61
    called for preprocessing             325
    compile failed                       105
    preprocessor error                    75
    bad compiler arguments                58
    autoconf compile/link               1435
    no input file                         97
    files in cache                      6174
    cache size                         278.6 MB
    max cache size                       2.2 GB
    Accumulation of Centmin Mod centmin.sh menu log runs :)
    Code:
    ls -Alrt /root/centminlogs/
    total 13108
    -rw-r--r-- 1 root root   18845 Jun 10 17:23 centminmod_1.2.3-eva2000.08_100615-131800_yuminstall_centos6.log
    -rw-r--r-- 1 root root   78796 Jun 10 17:23 centminmod_yumtimes_100615-131800.log
    -rw-r--r-- 1 root root      38 Jun 10 17:23 centminmod_profiletimes_100615-131800.log
    -rw-r--r-- 1 root root  262687 Jun 10 17:24 centminmod_downloadtimes_100615-131800.log
    -rw-r--r-- 1 root root     199 Jun 10 17:24 securedtmp.log
    -rw-r--r-- 1 root root      44 Jun 10 17:25 centminmod_libresslinstalltime_100615-131800.log
    -rw-r--r-- 1 root root    1212 Jun 10 17:26 gcc_native.log
    -rw-r--r-- 1 root root 1051052 Jun 10 17:27 centminmod_ngxinstalltime_100615-131800.log
    -rw-r--r-- 1 root root      58 Jun 10 17:30 centminmod_phpinstalltime_100615-131800.log
    -rw-r--r-- 1 root root   21128 Jun 10 17:32 centminmod_1.2.3-eva2000.08_100615-131800_yum-log.log
    -rw-r--r-- 1 root root 2761979 Jun 10 17:32 centminmod_1.2.3-eva2000.08_100615-131800_install.log
    -rw-r--r-- 1 root root 2131284 Jun 10 18:06 centminmod_1.2.3-eva2000.08_100615-180344_php_upgrade.log
    -rw-r--r-- 1 root root 2130688 Jun 10 18:09 centminmod_1.2.3-eva2000.08_100615-180749_php_upgrade.log
    -rw-r--r-- 1 root root     381 Jun 10 18:22 zendopcache_passfile.txt
    -rw-r--r-- 1 root root 2613869 Jun 10 18:27 centminmod_1.2.3-eva2000.08_100615-181902_php_upgrade.log
    -rw-r--r-- 1 root root 2282813 Jun 10 18:34 centminmod_1.2.3-eva2000.08_100615-183311_php_upgrade.log

    PHP Configure with Clang Compiler



    PHP configure option output from logs with Clang compiler
    Code:
    ../configure --enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-config-file-scan-dir=/etc/centminmod/php.d
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether ccache /usr/bin/clang accepts -g... yes
    checking for ccache /usr/bin/clang option to accept ISO C89... none needed
    checking how to run the C preprocessor... ccache /usr/bin/clang -E
    checking for icc... no
    checking for suncc... no
    checking whether ccache /usr/bin/clang and cc understand -c and -o together... yes
    checking how to run the C preprocessor... ccache /usr/bin/clang -E

    PHP 5.6.9 Recompile Without Clang Compiler



    Now to test recompiling existing PHP 5.6.9 via centmin.sh menu option 5 but without Clang enabled CLANG_PHP='n' in centmin.sh to see how long it takes to recompile PHP. Seems for PHP at least, it could be that Clang disabled is better approach with CLANG_PHP='n' as it's a bit faster for ccache backed recompiles :)

    Initial recompile without Clang enabled CLANG_PHP='n' and switching back from Clang to GCC took 254.05 seconds
    Code:
    tail -1 /root/centminlogs/centminmod_1.2.3-eva2000.08_100615-184714_php_upgrade.log
    Total PHP Upgrade Time: 254.047374844 seconds
    2nd recompile without Clang enabled CLANG_PHP='n' but with benefits of ccache took 98.623 seconds
    Code:
    tail -1 /root/centminlogs/centminmod_1.2.3-eva2000.08_100615-185207_php_upgrade.log
    Total PHP Upgrade Time: 98.623154021 seconds
     
    Last edited: Jun 11, 2015
    • Like Like x 1
  12. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    So Clang is only effective for Nginx compile.
     
  13. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yup seems that way biggest gain in speed for Nginx ~120s saved. LibreSSL with Clang saves ~20s so not much. Have yet to test a fresh install with CLANG_PHP='y' yet though maybe faster for initial install ? :)
     
  14. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    Running the latest code now on my Live OVH server, will try Nginx upgrade now.
     
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 2
  16. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  17. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  18. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    So might want to enable Clang for 32 bit also :)
     
  19. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    8:42 PM
    Mainline
    10.2
    WOW!

    Total Nginx Upgrade Time: 70.704346914 seconds
     
  20. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    10:42 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    doh forgot about that hehe
    yeah it's much quicker with clang vs gcc compiler
     
..