Discover Centmin Mod today
Register Now

Beta Branch update cminfo top stats display for cpu utilisation in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 9, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    45,192
    10,277
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,927
    Local Time:
    9:00 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    update cminfo top stats display for cpu utilisation in 123.09beta01

    Update the sar cpu utilisation stats so instead of just reporting each day's cpu utilisation averages, also report min, max and 95% percentile cpu utilisation percentages along with average via datamash tool. If datamash doesn't exist, fall back to standard sar cpu utilisation daily avaerages.

    Code (Text):
    ------------------------------------------------------------------
     CPU Utilisation % 7 Day Averages (8 CPU Threads):
    ------------------------------------------------------------------
    Jan 08 2020 %CPU
    %CPU  min:  %user:  0.09  %nice:  0.00  %system:  0.08  %iowait:  0.01  %steal:  0.00  %idle:  97.28
    %CPU  avg:  %user:  0.15  %nice:  0.00  %system:  0.10  %iowait:  0.34  %steal:  0.00  %idle:  99.41
    %CPU  max:  %user:  0.92  %nice:  0.03  %system:  0.42  %iowait:  2.54  %steal:  0.00  %idle:  99.81
    %CPU  95%:  %user:  0.37  %nice:  0.00  %system:  0.11  %iowait:  0.86  %steal:  0.00  %idle:  99.80
    Jan 07 2020 %CPU
    %CPU  min:  %user:  0.06  %nice:  0.00  %system:  0.04  %iowait:  0.02  %steal:  0.00  %idle:  96.07
    %CPU  avg:  %user:  0.11  %nice:  0.00  %system:  0.06  %iowait:  0.54  %steal:  0.00  %idle:  99.29
    %CPU  max:  %user:  1.05  %nice:  0.03  %system:  0.16  %iowait:  3.81  %steal:  0.00  %idle:  99.87
    %CPU  95%:  %user:  0.34  %nice:  0.00  %system:  0.07  %iowait:  1.70  %steal:  0.00  %idle:  99.87
    Jan 06 2020 %CPU
    %CPU  min:  %user:  0.06   %nice:  0.00  %system:  0.04  %iowait:  0.01  %steal:  0.00  %idle:  81.01
    %CPU  avg:  %user:  0.26   %nice:  0.00  %system:  0.13  %iowait:  0.55  %steal:  0.00  %idle:  99.06
    %CPU  max:  %user:  13.20  %nice:  0.03  %system:  4.93  %iowait:  2.54  %steal:  0.00  %idle:  99.88
    %CPU  95%:  %user:  0.35   %nice:  0.00  %system:  0.23  %iowait:  1.70  %steal:  0.00  %idle:  99.87
    Jan 05 2020 %CPU
    %CPU  min:  %user:  0.06  %nice:  0.00  %system:  0.05  %iowait:  0.01  %steal:  0.00  %idle:  91.16
    %CPU  avg:  %user:  0.27  %nice:  0.00  %system:  0.17  %iowait:  0.57  %steal:  0.00  %idle:  98.99
    %CPU  max:  %user:  6.41  %nice:  0.03  %system:  2.00  %iowait:  3.37  %steal:  0.00  %idle:  99.88
    %CPU  95%:  %user:  0.48  %nice:  0.00  %system:  0.27  %iowait:  1.70  %steal:  0.00  %idle:  99.87
    Jan 04 2020 %CPU
    %CPU  min:  %user:  0.05   %nice:  0.00  %system:  0.04   %iowait:  0.01  %steal:  0.00  %idle:  56.47
    %CPU  avg:  %user:  1.21   %nice:  0.00  %system:  0.84   %iowait:  0.55  %steal:  0.00  %idle:  97.39
    %CPU  max:  %user:  28.30  %nice:  0.03  %system:  16.24  %iowait:  3.37  %steal:  0.00  %idle:  99.90
    %CPU  95%:  %user:  6.85   %nice:  0.00  %system:  5.05   %iowait:  1.69  %steal:  0.00  %idle:  99.88
    Jan 03 2020 %CPU
    %CPU  min:  %user:  0.05  %nice:  0.00  %system:  0.04  %iowait:  0.01  %steal:  0.00  %idle:  96.53
    %CPU  avg:  %user:  0.18  %nice:  0.00  %system:  0.13  %iowait:  0.62  %steal:  0.00  %idle:  99.07
    %CPU  max:  %user:  1.30  %nice:  0.03  %system:  0.25  %iowait:  3.36  %steal:  0.00  %idle:  99.90
    %CPU  95%:  %user:  0.33  %nice:  0.00  %system:  0.19  %iowait:  1.70  %steal:  0.00  %idle:  99.88
    Jan 02 2020 %CPU
    %CPU  min:  %user:  0.12  %nice:  0.00  %system:  0.11  %iowait:  0.01  %steal:  0.00  %idle:  96.12
    %CPU  avg:  %user:  0.20  %nice:  0.00  %system:  0.18  %iowait:  0.55  %steal:  0.00  %idle:  99.07
    %CPU  max:  %user:  0.59  %nice:  0.03  %system:  0.25  %iowait:  3.53  %steal:  0.00  %idle:  99.77
    %CPU  95%:  %user:  0.32  %nice:  0.00  %system:  0.20  %iowait:  1.69  %steal:  0.00  %idle:  99.64


    Continue reading...

    123.09beta01 branch