Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

[BUG REPORT] too high cpu usage: advanced_scenes_check3.php


Question

Posted

I figured out that after some hours fibaro gateway become unresponsive.

searching the cause of the problem I discovered this:

top - 21:29:16 up 1 day, 12:53, 1 user, load average: 4.01, 2.35, 1.81

Tasks: 113 total, 5 running, 105 sleeping, 0 stopped, 3 zombie

Cpu(s): 87.8%us, 12.2%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st

Mem: 1023800k total, 367572k used, 656228k free, 45724k buffers

Swap: 249848k total, 0k used, 249848k free, 99812k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

3466 www-data 20 0 42272 15m 5568 R 51 1.5 1:13.81 php

4086 www-data 20 0 42272 15m 5568 R 51 1.5 0:10.53 php

2974 www-data 20 0 42272 15m 5568 R 46 1.5 2:13.18 php

2236 www-data 20 0 44016 13m 3192 R 28 1.3 4:26.47 apache2

1232 mysql 20 0 139m 21m 6100 S 5 2.1 12:24.73 mysqld

13908 www-data 20 0 44532 13m 3192 S 5 1.4 4:21.11 apache2

root@fghc2:~# ps aux | grep php

www-data 2974 76.5 1.5 42272 15480 ? R 21:26 2:15 php /var/www/fibaro/advanced_scenes_check3.php 49

www-data 3466 70.2 1.5 42272 15480 ? R 21:27 1:15 php /var/www/fibaro/advanced_scenes_check3.php 49

www-data 4086 45.5 1.5 42272 15476 ? R 21:28 0:12 php /var/www/fibaro/advanced_scenes_check3.php 49

root@fghc2:~# strace -p 2974

Process 2974 attached - interrupt to quit

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

time(NULL) = 1332620935

and so many many other lines..................

This bug is caused by a scene like the attached screenshot.

Moreover the problem is accentuated by overlap of the triggered scene (each time the motion sensor become "safe" the scene timer start). In a future release would be great if I can enable a check into scene programming to make certain scenes to "run only once at a time".

Let's me know if do you want major details.

Thank you very much for the support.

Best Regards.

PS. please put online a bug tracking system like Mantis BT to manage the bug reporting of Fibaro System, so these bug reports doesn't get lost into forum posts.

Please login or register to see this attachment.

5 answers to this question

Recommended Posts

  • 0
Guest vayher
Posted

Thank you for detailed description of the problem. We already know about it and we are working on new engine of executing the scenes. For now I can't tell what's the deadline, but it will be a huge change. Scenes will work / devices will respond many times faster than they do now and cpu usage will be highly decreased.

  • 0
  • Inquirer
  • Posted
    Thank you for detailed description of the problem. We already know about it and we are working on new engine of executing the scenes. For now I can't tell what's the deadline, but it will be a huge change. Scenes will work / devices will respond many times faster than they do now and cpu usage will be highly decreased.

    Thank you very much, i'm waiting for the new version

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Best Regards

    • 0
  • Inquirer
  • Posted

    just for status report, this bug is still present in the 1.023 version.

    Best regards

    • 0
  • Inquirer
  • Posted

    upgraded to 1.026 and this problem is still present!

    Fibaro HC2 become pratically slow and unusable when this scenes are triggered:

    top - 20:47:13 up 1 day, 11:54, 1 user, load average: 4.25, 3.65, 3.16

    Tasks: 118 total, 5 running, 111 sleeping, 0 stopped, 2 zombie

    Cpu(s): 85.9%us, 4.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 9.8%hi, 0.0%si, 0.0%st

    Mem: 1023800k total, 387548k used, 636252k free, 47112k buffers

    Swap: 249848k total, 0k used, 249848k free, 110484k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

    13734 www-data 20 0 43032 15m 5568 R 48 1.6 1:41.88 php

    14233 www-data 20 0 43032 15m 5568 R 48 1.6 0:56.89 php

    14036 root 20 0 44524 15m 5604 R 43 1.6 1:04.43 php

    14961 root 20 0 44524 15m 5604 R 41 1.6 0:04.27 php

    when the famous update that rewrite the scene programming and will make fibaro run faster as promised will be released?

    Best regards

    • 0
    Guest Kuuno
    Posted

    im not sure if it is the same but seems so, when i use many scenes then HC2 becomes very slow. would be happy to provide more info for debugging!

    EDIT-turned off all scenes where timers where used and HC is fast again:)

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...