Originally posted by bsobel
View Post
Announcement
Collapse
No announcement yet.
Imperihome crashing at startup
Collapse
X
-
Originally posted by spud View Post
I could implement all kind of optimizations and workarounds, but the bottom line is that nothing is going to work well if a single call to get controls for a device takes 500ms.
Comment
-
Ok I rebooted, now seeing a better response time from Hs. Appears to be an Hs bug that causes one of the HSConsole threads to get into a tight loop (reported to Rich with what data I could find), that starves everyone else of CPU time. That said, still hoping you will optimize out this call pattern where possible as it just eats CPU at startup when other plugins are struggling to get some. I found that with Autelis and TankUtil disabled this plugin runs pretty well (the GetDeviceEnumerator is a real killer and both those do it so much the CPU grinds and then other plugins see long call times)
Timing: HSPI_ImperiHome.IHSApplication.CAPIGetSingleControlByUse Total Calls: 15030 Invoke: 1,390,500ms Deserialization: 6,628ms Total: 1,397,129ms Average: 92ms
Comment
-
Try 3.0.0.36: http://homeseer.com/updates3rd3/Impe...x_3-0-0-36.zip
In this version there should be only one call to CAPIGetControlEx per device instead of five calls to CAPIGetSingleControlByUse.
Comment
-
Ok after installing and running for about 20 minutes I see:
2438 calls to CAPIGetControlEx
870 calls to CAPIGetSingleControlByUse
So much lower numbers (so far) than prior. The previous version had hit 130,678 calls to CAPIGetSingleControlByUse (over a day or so). I will check in a few hours and update, but certainly at startup this seems much lower load on the system.
Comment
-
Originally posted by bsobel View PostOk after installing and running for about 20 minutes I see:
2438 calls to CAPIGetControlEx
870 calls to CAPIGetSingleControlByUse
So much lower numbers (so far) than prior. The previous version had hit 130,678 calls to CAPIGetSingleControlByUse (over a day or so). I will check in a few hours and update, but certainly at startup this seems much lower load on the system.
http://homeseer.com/updates3rd3/Impe...x_3-0-0-37.zip
Comment
Comment