Welcome to Centmin Mod Community
Become a Member

DigitalOcean Benchmarks 512MB DigitalOcean VPS - Centmin Mod 123.09beta01 Install Test

Discussion in 'Virtual Private Server (VPS) hosting' started by eva2000, Jul 7, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    7:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    Updated Centmin Mod code to auto create a 1GB swap file on disk for non-openvz systems if no swap file is detected. DigitalOcean VPS do not setup a swap file for you unless you setup one for yourself.

    On low memory <1GB ram VPS servers, php compile of PHP fileinfo extension will fail as it requires >1GB of memory. However, if you need PHP fileinfo extension enabled (it's disabled by default via PHPFINFO='n' variable in centmin.sh) and have a VPS with <1GB of memory, you run into problems with failed PHP compiles.

    Centmin Mod now has added auto creation of a 1GB swap file which can supplement system memory to work around PHP fileinfo extensions memory requirements. It will be slower to compile PHP especially if swap on disk is on a disk with slow disk I/O performance. If your VPS has SSD disks, it would be better.

    Centmin Mod Install

    SSH commands to install Centmin Mod 123.09beta01 via the curl installer one liner but setup persistent /etc/centminmod/custom_config.inc before install to enable PHPFINFO='y' as it's disabled by default

    Code (Text):
    mkdir /etc/centminmod
    touch /etc/centminmod/custom_config.inc
    echo "PHPFINFO='y'" >> /etc/centminmod/custom_config.inc
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh

    Centmin Mod After Install

    centmin mod installed successfully but slower due to php compile time needing to hit disk swap due to php fileinfo extension being enabled
    Code (Text):
    Total Curl Installer YUM Time: 184.5430 seconds
    Total YUM Time: 74.129798934 seconds
    Total YUM + Source Download Time: 104.4291
    Total Nginx First Time Install Time: 582.2591
    Total PHP First Time Install Time: 996.2599
    Download Zip From Github Time: 49.1838
    Total Time Other eg. source compiles: 380.2543
    Total Centmin Mod Install Time: 2063.2024
    Total Install Time (curl yum + cm install + zip download): 2296.9292 seconds

    post-install check output at end of routine
    Code (Text):
    * Post-Install Check List....
    Check ccache Version:
    ccache version 3.2.5
    Copyright (C) 2002-2007 Andrew Tridgell
    Copyright (C) 2009-2016 Joel Rosdahl
    This program is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software
    Foundation; either version 3 of the License, or (at your option) any later
    Check Nginx Version:
    nginx version: nginx/1.11.2
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.3.6
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -mfpmath=sse -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion -Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module --with-http_secure_link_module --with-openssl-opt=enable-tlsext --add-module=../nginx-module-vts --with-libatomic --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0 --add-module=../set-misc-nginx-module-0.30 --add-module=../echo-nginx-module-0.59 --add-module=../redis2-nginx-module-0.13 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.17 --add-module=../srcache-nginx-module-0.31 --add-module=../headers-more-nginx-module-0.30 --with-pcre=../pcre-8.39 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.3.6
    Check PHP-FPM Version:
    PHP 5.6.23 (cli) (built: Jul  6 2016 18:31:43)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    Check MariaDB installed RPM Versions:
    Check Memcached Server Version:
    memcached 1.4.27
    Check CSF Firewall Version:
    csf: v9.09 (generic)
    Check Siege Benchmark Version:
    SIEGE 4.0.2
    Copyright (C) 2016 by Jeffrey Fulmer, et al.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS
    Check mysqlreport version:
    mysqlreport v3.5-maria11 Jul 4 2013
    Check pure-ftpd Version:
    pure-ftpd v1.0.30
    Check YUM Repo List
    Loaded plugins: fastestmirror, priorities, security
    Loading mirror speeds from cached hostfile
    * base: repos.forethought.net
    * epel: mirrors.kernel.org
    * extras: mirrors.kernel.org
    * rpmforge: mirror.hmc.edu
    * updates: linux.mirrors.es.net
    1558 packages excluded due to repository priority protections
    repo id        repo name                                             status
    base           CentOS-6 - Base                                       5,093+1,603
    epel           Extra Packages for Enterprise Linux 6 - x86_64        9,159+2,980
    extras         CentOS-6 - Extras                                              62
    mariadb        MariaDB                                                      12+4
    rpmforge       RHEL 6 - RPMforge.net - dag                           3,229+1,489
    updates        CentOS-6 - Updates                                         111+26
    repolist: 17,666
    mytimes check:
    Wed Jul  6 18:37:48 UTC 2016    [UTC]
    Thu Jul  7 04:37:48 AEST 2016   [Australia/Brisbane]
    Wed Jul  6 11:37:48 PDT 2016    [America/Los_Angeles]
    Wed Jul  6 13:37:48 CDT 2016    [America/Chicago]
    Wed Jul  6 14:37:48 EDT 2016    [America/New_York]
    Wed Jul  6 19:37:48 BST 2016    [Europe/London]

    Memory Usage

    before centmin mod install fresh DO 512MB VPS has no swap file setup
    Code (Text):
    free -m
                 total       used       free     shared    buffers     cached
    Mem:           490        120        369          0          6         68
    -/+ buffers/cache:         45        444
    Swap:            0          0          0

    after centmin mod install with swap auto created
    Code (Text):
    free -m
                 total       used       free     shared    buffers     cached
    Mem:           490        313        177         11         63        100
    -/+ buffers/cache:        149        340
    Swap:         1023          4       1019

    and this is memory and swap usage during php compile with PHPFINFO='y' enabled to enable fileinfo PHP extension support - yup 511MB of memory swap to disk required and 400MB system memory used = ~911MB of memory total.
    Code (Text):
     free -ml
                 total       used       free     shared    buffers     cached
    Mem:           490        400         89          0          0          8
    Low:           490        400         89
    High:            0          0          0
    -/+ buffers/cache:        391         98
    Swap:         1023        511        512

    checking php fileinfo was compiled
    Code (Text):
    php --ri fileinfo
    fileinfo support => enabled
    version => 1.0.5
    libmagic => 517
    Last edited: Jul 7, 2016