Page 1 of 1

dzVents.lua has been running for more than 10 seconds

Posted: Thursday 23 April 2020 18:37
by Gravityz
Hello,

everybody working with domoticz knows this message. it is send out if dzvents aparently is running to long to finish it's job.
I hardly get this message but lately i noticed how to trigger it.
whenever i copy large backup files from/to my synology(quadcore) i get this message.
synology cpu at that time is only 20% occupied so i suspect the copy job is using 100% utillization to the discs so when domoticz is kicking off it's auto backup job it does not have the bandwidth needed to finish it in time(10 seconds)

is there a way to avoid this message when the synology is in these circumstances(copying large files consuming disc bandwidth)
can the 10 seconds perhaps be expanded to 20 seconds

would be nice to know how much time it will take then(if longer then 20 seconds then a change is useless)

hopefully i can test this by changing something i a domoticz file

Re: dzVents.lua has been running for more than 10 seconds

Posted: Thursday 23 April 2020 19:33
by waaren
Gravityz wrote: Thursday 23 April 2020 18:37 is there a way to avoid this message when the synology is in these circumstances(copying large files consuming disc bandwidth)
can the 10 seconds perhaps be expanded to 20 seconds
Not without compiling
would be nice to know how much time it will take then(if longer then 20 seconds then a change is useless)
Less then 20 seconds because if > 20 seconds you would see the error more then once.

Reason for this message is that it warns you that the eventSystem is blocked so no other events can take place and some might even be skipped.
I also have a Synology NAS (916 DX with 4 discs on btrfs, SHR ) but luckily I never experienced a process blocking all other disc IO

It might be worthwhile to search for alternative copy methods / solutions in a Synology forum ?

Re: dzVents.lua has been running for more than 10 seconds

Posted: Thursday 23 April 2020 20:11
by Gravityz
ok thanks.

will see if i somehow can do some QOS on that copy command

UPDATE:
when copying through windows file explorer (from D: to Synology) get the synology overloaded and domoticz gets slow.

using file station on the synology and upload seems to go a lot better.
somehow this goes smooth, maybe some hw acceleration and throttling is involved

good to know