gwled using high amounts of CPU on APU2



  • I'm having a problem with the gwled package. It seems that after a while, the CPU just keeps increasing.

    I noticed that it’s using massive amounts of CPU, pushing the load average well above 20. Even disabling doesn’t fix it, only removing the package helps. Below is only a snippet of "px auxw", there are still many more processes of the same.

    USER      PID  %CPU %MEM    VSZ    RSS TT  STAT STARTED        TIME COMMAND
    root       11 156.5  0.0      0     64  -  RNL  Wed17   16794:28.46 [idle]
    root    55074   4.6  0.9  96292  35144  -  R    12:28       0:00.59 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    57431   4.5  0.9  96292  35144  -  R    12:28       0:00.60 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    58665   4.5  0.9  96292  35144  -  R    12:28       0:00.58 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    56863   4.4  0.8  96420  34636  -  R    12:28       0:00.56 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    58037   4.4  0.9  96292  35144  -  R    12:28       0:00.59 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    51369   4.3  0.9  96304  35948  -  R    12:28       0:00.65 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    52694   4.3  0.9  96292  35144  -  R    12:28       0:00.60 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    53220   4.3  0.9  96292  35144  -  R    12:28       0:00.59 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    56211   4.3  0.9  96292  35144  -  R    12:28       0:00.58 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    57826   4.3  0.9  98468  35212  -  R    12:28       0:00.56 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    58322   4.3  0.9  96292  35144  -  R    12:28       0:00.58 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    58337   4.3  0.9  98468  35212  -  R    12:28       0:00.56 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    51633   4.1  0.8  96420  34584  -  R    12:28       0:00.56 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    52119   4.1  0.9  96420  35268  -  R    12:28       0:00.57 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    55153   4.1  0.9  98468  35212  -  R    12:28       0:00.55 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    56521   4.1  0.8  98468  35036  -  R    12:28       0:00.54 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    58153   4.1  0.9  98468  35212  -  R    12:28       0:00.54 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    39184   4.0  7.5 339404 308808  -  Ss   22:56      48:49.73 /usr/local/bin/suricata -i igb1 -D -c /usr/local/etc/suricata/s
    root    51525   4.0  0.9  96292  35160  -  R    12:28       0:00.58 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    57568   4.0  0.9  98468  35200  -  R    12:28       0:00.54 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    

    See here the difference in CPU after removing the package:
    0_1552823095743_Capture.PNG

    After this, I installed the package again. You can see from the below, that on the Tue around 09:00 the package was installed. It uses a bit more CPU, but nothing scary. Then at around 12:00 it jumps up quite a bit. Then at the end of the graph it's jumped up again, so it looks like it's on it's way out.

    4fed1485-c813-4de7-b1ff-ccf05a673a8d-image.png

    TOP:

      PID USERNAME      THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
    49722 root            1  73    0 96308K 34376K CPU0    0   0:01  39.21% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    47168 root            1  52    0 96212K 35624K piperd  0   0:01  39.00% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    46284 root            1  74    0 96284K 35108K RUN     3   0:01  28.67% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    47983 root            1  73    0 96304K 34796K RUN     3   0:01  28.41% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    47106 root            1  73    0 96304K 34804K CPU2    2   0:01  26.72% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    45966 root            1  73    0 96308K 34372K RUN     1   0:01  26.23% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    46202 root            1  73    0 96292K 34352K RUN     2   0:01  24.72% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    45315 root            1  73    0 96292K 34060K RUN     1   0:01  23.53% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    47882 root            1  73    0 96304K 34796K RUN     3   0:01  22.89% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    45225 root            1  73    0 96304K 34804K RUN     2   0:01  22.89% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    46416 root            1  73    0 96292K 34056K RUN     1   0:01  22.43% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    45909 root            1  73    0 96308K 34372K RUN     2   0:01  20.85% /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    

    ps auxw | grep gwled

    USER      PID  %CPU %MEM    VSZ    RSS TT  STAT STARTED        TIME COMMAND
    root    95436   7.8  0.9  96212  35624  -  S    15:23     0:00.88 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    95141   5.3  0.8  96308  34372  -  R    15:23     0:00.59 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    95000   5.2  0.8  96308  34372  -  R    15:23     0:00.58 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    95297   3.8  0.8  96420  32320  -  R    15:23     0:00.44 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    95683   3.0  0.7  94236  30860  -  R    15:23     0:00.34 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    95691   3.0  0.7  94236  30568  -  R    15:23     0:00.34 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root     1386   0.0  0.0   6192   2016  -  Is   15:04     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root     1791   0.0  0.0   6192   2016  -  Is   15:08     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root     2074   0.0  0.0   6192   2028  -  S    15:04     0:00.02 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root     2149   0.0  0.0   6192   2028  -  S    15:08     0:00.01 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    22709   0.0  0.0   6192   2016  -  Is   14:29     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    22748   0.0  0.0   6192   2028  -  S    14:29     0:00.05 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    25384   0.0  0.0   6192   2016  -  Is   15:05     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    25757   0.0  0.0   6192   2028  -  S    15:05     0:00.01 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    26512   0.0  0.0   6192   2016  -  Is   14:29     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    27077   0.0  0.0   6192   2028  -  S    14:29     0:00.05 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    44678   0.0  0.0   6192   2016  -  Is   14:28     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    44831   0.0  0.0   6192   2028  -  S    14:28     0:00.05 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    62079   0.0  0.0   6192   2016  -  Is   14:26     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    62483   0.0  0.0   6192   2028  -  S    14:26     0:00.05 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    62777   0.0  0.0   6192   2016  -  Is   14:28     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    63067   0.0  0.0   6192   2028  -  S    14:28     0:00.05 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    66091   0.0  0.0   6192   2016  -  Is   15:20     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    66471   0.0  0.0   6192   2028  -  S    15:20     0:00.00 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    76296   0.0  0.0   6192   2016  -  Is   15:20     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    77364   0.0  0.0   6192   2028  -  S    15:20     0:00.00 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    92361   0.0  0.0   6192   2016  -  Is   15:07     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    92548   0.0  0.0   6192   2016  -  Is   14:28     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    92643   0.0  0.0   6192   2016  -  Is   15:07     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    92716   0.0  0.0   6192   2028  -  S    14:28     0:00.05 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    93251   0.0  0.0   6192   2016  -  Is   14:28     0:00.00 /usr/local/bin/minicron 15 /var/run/gwled.pid /usr/local/bin/gwled.php
    root    93266   0.0  0.0   6192   2028  -  S    15:07     0:00.01 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    93578   0.0  0.0   6192   2028  -  S    14:28     0:00.05 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    93633   0.0  0.0   6192   2028  -  S    15:07     0:00.01 minicron: helper /usr/local/bin/gwled.php  (minicron)
    root    95819   0.0  0.8  96236  31328  -  R    15:23     0:00.39 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    96035   0.0  0.8  96284  31044  -  R    15:23     0:00.36 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    96052   0.0  0.8  96252  31216  -  R    15:23     0:00.36 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    96176   0.0  0.8  96420  32320  -  R    15:23     0:00.45 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    96189   0.0  0.8  96284  31072  -  R    15:23     0:00.35 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    97188   0.0  0.6  38312  23760  -  R    15:23     0:00.16 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    97259   0.0  0.6  38548  23940  -  R    15:23     0:00.17 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    root    97748   0.0  0.5  34164  21340  -  R    15:23     0:00.13 /usr/local/bin/php-cgi -q /usr/local/bin/gwled.php
    

Log in to reply