Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch add more system stats collection for initial install runs

Discussion in 'Centmin Mod Github Commits' started by eva2000, Mar 31, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,850
    6,904
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,394
    Local Time:
    9:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    add more system stats collection for initial install runs

    - install sysstat for sar command earlier in initial install routine for logging system statistics for cpu, memory, and disk
    - change sar interval from 10 minutes to 5 minutes for more finer grain system stats logging

    centmin mod initial install system stats are logged to the following files:

    - /root/centminlogs/sar-u-installstats.log
    - /root/centminlogs/sar-q-installstats.log
    - /root/centminlogs/sar-r-installstats.log
    - /root/centminlogs/sar-d-installstats.log
    - /root/centminlogs/sar-b-installstats.log

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,850
    6,904
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,394
    Local Time:
    9:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    example of change in sar intervals from 10 min to 5 min
    Code (Text):
    sar -r
    Linux 3.10.0-514.10.2.el7.x86_64 (host.domain.com)  03/31/2017      _x86_64_        (8 CPU)
    
    05:30:01 AM kbmemfree kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit  kbactive   kbinact   kbdirty
    05:40:01 AM  31284884   1457980      4.45      4140     75260  12999348     37.31   1113156     50672        12
    05:50:01 AM  31282024   1460840      4.46      4620     75732  12999372     37.31   1113524     51744         4
    06:00:01 AM  31279512   1463352      4.47      4884     77500  13003516     37.33   1115364     53436         0
    06:10:01 AM  31269128   1473736      4.50      7616     84820  13000076     37.32   1116584     62532         0
    06:20:01 AM  31266572   1476292      4.51      7832     87660  12999988     37.32   1116588     65568        16
    06:30:01 AM  31065060   1677804      5.12     78304    184780  13000040     37.32   1212324    137468         8
    06:40:01 AM  31063784   1679080      5.13     78496    184792  13000040     37.32   1212780    137656         4
    06:50:01 AM  31045968   1696896      5.18     78780    193400  13005920     37.33   1219832    142120        16
    07:00:01 AM  31045308   1697556      5.18     79044    193440  13005924     37.33   1219900    142348         4
    07:10:01 AM  31046892   1695972      5.18     79268    193432  13003428     37.33   1218780    142388         4
    07:15:01 AM  31042796   1700068      5.19     79404    196364  13005376     37.33   1221444    144124       260
    07:20:01 AM  31042584   1700280      5.19     79564    196388  13005372     37.33   1221336    144280         4
    07:25:01 AM  31042556   1700308      5.19     79648    196404  13005384     37.33   1221496    144372        16
    Average:     31111067   1631797      4.98     58826    162162  13002728     37.32   1190332    118777        41
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,850
    6,904
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,394
    Local Time:
    9:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    123.09beta01 install example
    Code (Text):
    ---------------------------------------------------------------------------
    Total Curl Installer YUM or DNF Time: 78.2335 seconds
    Total YUM Time: 18.348684083 seconds
    Total YUM or DNF + Source Download Time: 43.6813
    Total Nginx First Time Install Time: 50.4017
    Total PHP First Time Install Time: 146.9080
    Download Zip From Github Time: 0.8011
    Total Time Other eg. source compiles: 245.1451
    Total Centmin Mod Install Time: 486.1361
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 565.1707 seconds
    ---------------------------------------------------------------------------
    

    new sar install stats logs
    Code (Text):
    ls -lahrt /root/centminlogs/
    total 3.1M
    -rw-r--r--. 1 root root  11K Mar 31 07:48 centminmod_1.2.3-eva2000.09.004_310317-034810_yuminstall_centos7.log
    -rw-r--r--. 1 root root  13K Mar 31 07:48 centminmod_yumtimes_310317-034810.log
    -rw-r--r--. 1 root root   37 Mar 31 07:48 centminmod_profiletimes_310317-034810.log
    -rw-r--r--. 1 root root 2.2K Mar 31 07:48 cmm-login-git-checks_310317-034845.log
    -rw-r--r--. 1 root root  68K Mar 31 07:48 centminmod_downloadtimes_310317-034810.log
    -rw-r--r--. 1 root root  274 Mar 31 07:48 securedtmp.log
    -rw-r--r--. 1 root root   45 Mar 31 07:49 centminmod_libresslinstalltime_310317-034810.log
    -rw-r--r--. 1 root root    0 Mar 31 07:49 patch_patchnginx_310317-034810.log
    -rw-r--r--. 1 root root 1.9K Mar 31 07:49 gcc_native.log
    -rw-r--r--. 1 root root 1.8K Mar 31 07:49 nginx-configure-310317-034810.log
    -rw-r--r--. 1 root root 641K Mar 31 07:50 centminmod_ngxinstalltime_310317-034810.log
    -rw-r--r--. 1 root root  16K Mar 31 07:51 setio_innodbstatus-before-310317-075142.log
    -rw-r--r--. 1 root root  784 Mar 31 07:51 centminmod_setio_310317-075142.log
    -rw-r--r--. 1 root root  15K Mar 31 07:51 setio_innodbstatus-after-310317-075142.log
    -rw-r--r--. 1 root root 2.2K Mar 31 07:51 gcc_php_native.log
    -rw-r--r--. 1 root root   58 Mar 31 07:54 centminmod_phpinstalltime_310317-034810.log
    -rw-r--r--. 1 root root  387 Mar 31 07:54 zendopcache_passfile.txt
    -rw-r--r--. 1 root root 3.5K Mar 31 07:56 centminmod_1.2.3-eva2000.09.004_310317-034810_yum-log.log
    -rw-r--r--. 1 root root  125 Mar 31 07:56 install.utc.time.log
    -rw-r--r--. 1 root root  293 Mar 31 07:56 centminmod_1.2.3-eva2000.09.004_310317-075617_git_updatecur_branch.log
    -rw-r--r--. 1 root root 2.2M Mar 31 07:56 centminmod_1.2.3-eva2000.09.004_310317-034810_install.log
    dr-xr-x---. 8 root root 4.0K Mar 31 07:56 ..
    -rw-r--r--. 1 root root   18 Mar 31 07:56 getcmtime_installtime_310317-034531.log
    -rw-r--r--. 1 root root   55 Mar 31 07:56 firstyum_installtime_310317-034531.log
    -rw-r--r--. 1 root root  392 Mar 31 07:56 sar-u-installstats.log
    -rw-r--r--. 1 root root  488 Mar 31 07:56 sar-r-installstats.log
    -rw-r--r--. 1 root root  368 Mar 31 07:56 sar-q-installstats.log
    -rw-r--r--. 1 root root 1.1K Mar 31 07:56 sar-d-installstats.log
    -rw-r--r--. 1 root root  338 Mar 31 07:56 sar-b-installstats.log
    drwxr-xr-x. 2 root root 4.0K Mar 31 07:56 .
    

    Code (Text):
    cat /root/centminlogs/sar-q-installstats.log | sed -e "s|$(hostname)|hostname|"
    Linux 3.10.0-514.10.2.el7.x86_64 (hostname)     03/31/2017      _x86_64_        (8 CPU)
    
    07:46:03 AM       LINUX RESTART
    
    07:48:12 AM       LINUX RESTART
    
    07:50:01 AM   runq-sz  plist-sz   ldavg-1   ldavg-5  ldavg-15   blocked
    07:55:01 AM         1       174      4.91      3.72      1.74         0
    Average:            1       174      4.91      3.72      1.74         0

    Code (Text):
    cat /root/centminlogs/sar-r-installstats.log | sed -e "s|$(hostname)|hostname|"
    Linux 3.10.0-514.10.2.el7.x86_64 (hostname)     03/31/2017      _x86_64_        (8 CPU)
    
    07:46:03 AM       LINUX RESTART
    
    07:48:12 AM       LINUX RESTART
    
    07:50:01 AM kbmemfree kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit  kbactive   kbinact   kbdirty
    07:55:01 AM  27516012   5226852     15.96     98880   4427308   1160808      3.33   1171056   3452228     27980
    Average:     27516012   5226852     15.96     98880   4427308   1160808      3.33   1171056   3452228     27980

    Code (Text):
    cat /root/centminlogs/sar-u-installstats.log | sed -e "s|$(hostname)|hostname|"
    Linux 3.10.0-514.10.2.el7.x86_64 (hostname)     03/31/2017      _x86_64_        (8 CPU)
    
    07:46:03 AM       LINUX RESTART
    
    07:48:12 AM       LINUX RESTART
    
    07:50:01 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
    07:55:01 AM     all     35.03      0.00      5.23      0.81      0.00     58.94
    Average:        all     35.03      0.00      5.23      0.81      0.00     58.94