Welcome to Centmin Mod Community
Register Now

Beta Branch update tools/cminfo.sh in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 27, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    40,634
    9,023
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,891
    Local Time:
    5:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    update tools/cminfo.sh in 123.09beta01

    - fix cminfo top command sar cpu load filter output for 1 min and 5 min interval
    - add smem output
    - add top 10 processes' VmSwap and VmSize/VSZ memory outputs

    cminfo command is updated every 4hrs on centmin mod servers via a cronjob. You can manually update it to use updated cminfo code via manually running cronjob updating script
    Code (Text):
    /usr/bin/cminfo_updater


    Continue reading...

    123.09beta01 branch

     
  2. eva2000

    eva2000 Administrator Staff Member

    40,634
    9,023
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,891
    Local Time:
    5:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    example for VmSwap/VmSize/VSZ and smem output added to cminfo top command

    Code (Text):
    ------------------------------------------------------------------
    free -mtl
                  total        used        free      shared  buff/cache   available
    Mem:            990         302         155          83         533         357
    Low:            990         835         155
    High:             0           0           0
    Swap:          1023          36         987
    Total:         2014         338        1143
    
    ------------------------------------------------------------------
    top 10 processes using swap (VmSwap)
    
          2887 tuned                                      12404 kB
          2179 polkitd                                     5104 kB
          2151 haveged                                     3352 kB
          2950 memcached                                   2772 kB
          1362 systemd-udevd                               2204 kB
          2317 NetworkManager                              1452 kB
         27528 pure-ftpd                                   1164 kB
         15619 sshd                                         928 kB
          3414 qmgr                                         872 kB
          3386 master                                       836 kB
    

    Code (Text):
    ------------------------------------------------------------------
    top 10 processes' virtual memory size (VmSize/VSZ)
    RSS vs VSZ https://stackoverflow.com/a/21049737/272648
    
         32723 php-fpm                                   665764 kB
          2179 polkitd                                   612516 kB
          2887 tuned                                     574088 kB
          2317 NetworkManager                            489572 kB
          4592 mysqld                                    484856 kB
          2950 memcached                                 449820 kB
         32712 nginx                                     381532 kB
         32711 nginx                                     381532 kB
         32710 nginx                                     332372 kB
          2890 rsyslogd                                  259132 kB
    

    Code (Text):
    ------------------------------------------------------------------
    smem process memory info (sorted by RSS)
    
      PID User     Command                         Swap      USS      PSS      RSS
    32711 nginx    nginx: worker process              0    37220    51902    81428
    32712 nginx    nginx: worker process              0    36996    51666    81180
     4592 mysql    /usr/sbin/mysqld                   0    73092    73572    75316
    32710 root     nginx: master process /usr/        0     1836    15753    43960
    13377 root     lfd - sleepin                      0    22392    22448    23172
    28157 root     python /usr/bin/smem -rt -s        0     6960     7174     8124
    32723 root     php-fpm: master process (/u        0     6748     6809     7424
        1 root     /usr/lib/systemd/systemd --      656     4204     4273     4864
     2890 root     /usr/sbin/rsyslogd -n            492     4112     4224     4824
    17885 root     sshd: [email protected]/0                   0     1936     2587     4480
    26664 postfix  pickup -l -t unix -u               0     1968     2521     4192
    17889 root     -bash                              0     2076     2342     3480
     2179 polkitd  /usr/lib/polkit-1/polkitd -     5104      932     1225     2016
     2317 root     /usr/sbin/NetworkManager --     1448      968     1228     1924
    27785 root     /bin/bash /usr/bin/cminfo t        0      272      651     1752
     2887 root     /usr/bin/python2 -Es /usr/s    12404      836     1005     1612
     2202 dbus     /usr/bin/dbus-daemon --syst      340      680      773     1356
     1338 root     /usr/lib/systemd/systemd-jo      164      664      766     1316
    27825 root     /bin/bash /usr/bin/cminfo t        0      308      586     1280
     2318 root     /usr/lib/systemd/systemd-lo      132      560      593     1064
     3414 postfix  qmgr -l -t unix -u               872      344      367      840
     2225 ntp      /usr/sbin/ntpd -u ntp:ntp -      456      312      352      824
     2950 memcached /usr/local/bin/memcached -d     2772      528      535      784
     2180 avahi    avahi-daemon: running [ritm      348      132      208      708
    27826 root     tee /root/centminlogs/cminf        0      124      180      696
     1738 root     /usr/sbin/sedispatch             272      156      221      684
     3386 root     /usr/libexec/postfix/master      836      340      350      680
    15619 root     /usr/sbin/sshd -D                928       96      165      652
    27528 root     pure-ftpd (SERVER)              1164      256      269      600
     2411 root     /usr/sbin/crond -n               560      160      176      584
     1711 root     /sbin/audispd                     68      224      238      568
     2201 root     /usr/sbin/irqbalance --fore      112      156      176      532
     1707 root     /sbin/auditd                     324      176      193      528
     2166 root     /sbin/rngd -f                    800      140      148      464
     1362 root     /usr/lib/systemd/systemd-ud     2204        4       14      364
     2151 root     /usr/sbin/haveged -w 4067 -     3312      124      130      356
     2935 root     /sbin/agetty --noclear tty1      128        4       11      276
     2243 avahi    avahi-daemon: chroot helpe       348        8       20      136
    -------------------------------------------------------------------------------
       38 9                                       36244   208044   255851   365040
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    40,634
    9,023
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,891
    Local Time:
    5:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x