Announcement

Collapse
No announcement yet.

Performance - If you have an issue consider this review.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Performance - If you have an issue consider this review.

    Had HS2 running forever (latest version) and paused to move to HS3.
    With really high CPU loads after HS restarts and even higher, to the 90% level after 4-7 days, I was cautious about adding more automation.

    Saw a post on board that made me think about getting a tool to review what is happening at a more specific level and went the route of the application of Systeminternals on Microsoft site. I used 1 of the many -applications - process monitor.

    Selected the Homeseer process -> selected Tools -> process tree -> added to filter -> and to view auto scroll.

    Next I dove in for a review. For those that have not tried this; You get the detailed call that include file open, close, read, write in detail and ms / millisecond reporting.

    12:34:20.0099611 PM HomeSeer.exe 9468 CreateFile C:\Users\Richard\AppData\Local\Temp\JET406C.tmp SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
    12:34:20.0099887 PM HomeSeer.exe 9468 QueryBasicInformationFile C:\Users\Richard\AppData\Local\Temp\JET406C.tmp SUCCESS CreationTime: 12/15/2014 12:34:20 PM, LastAccessTime: 12/15/2014 12:34:20 PM, LastWriteTime: 12/15/2014 12:34:20 PM, ChangeTime: 12/15/2014 12:34:20 PM, FileAttributes: ATNCI
    12:34:20.0100058 PM HomeSeer.exe 9468 CloseFile C:\Users\Richard\AppData\Local\Temp\JET406C.tmp SUCCESS
    12:34:20.0101831 PM HomeSeer.exe 9468 CreateFile C:\Program Files (x86)\HomeSeer HS2\system.mdb NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    12:34:20.0102809 PM HomeSeer.exe 9468 CreateFile C:\Program Files (x86)\HomeSeer HS2 SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
    12:34:20.0103071 PM HomeSeer.exe 9468 QueryDirectory C:\Program Files (x86)\HomeSeer HS2\system.mdb NO SUCH FILE Filter: system.mdb
    12:34:20.0103294 PM HomeSeer.exe 9468 CloseFile C:\Program Files (x86)\HomeSeer HS2 SUCCESS
    12:34:20.0104230 PM HomeSeer.exe 9468 CreateFile C:\Program Files (x86)\HomeSeer HS2\system.mdb NAME NOT FOUND Desired Access: Generic Read/Write, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Random Access, Open No Recall, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a
    12:34:20.0106405 PM HomeSeer.exe 9468 CreateFile C:\Program Files (x86)\HomeSeer HS2\Data\mcsSprinklers\mcsSprinklers.mdb SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened


    I found that my HS loads were from scripts and processes that were looping, churning, doing lots of CPU activity that was not functional. If you weight the amount of activity in % of all activity, then I saw a dominant loads in HS. My loads were hundreds / thousands of activities of a script that did not end and produce a result. I might be poorly written. do not know yet.

    In my case I stopped a few scripts, and disabled a plugin to see the immediate changes.

    Really the largest difference I have seen in years?? Now my audio and response on PC are very good and I am seeing a good approach to handling potential loads issues in the future, for automation and PC applications. (it is one of those concepts that I already knew but did not apply it to the issue at hand)

    Hope this helps someone track down something that is running off track and bring it back to a better operation in automation.

    See attached pictures for examples.

    PC is running nicely now. HS responds much faster to events.
    Attached Files
    HS3 Standard Edition 3.0.0.258

    #2
    Thanks for the interesting post.

    Looks as though it keeps trying to access file system.mdb, and it's failing repeatedly. Is that part of the problem?

    Comment


      #3
      Richard,
      Great post.
      What scripts were you using and do you have a breakdown of the biggest offenders( least to worst)?

      Thanks


      Tom
      Tom
      baby steps...starting again with HS3
      HS3Pro: Z-NET & 80 Z wave Devices,
      HSTouch: 4 Joggler (Android Kitkat), 2 iPhone, 3 iPads
      Whole House Audio: 5 SqueezePlay Jogglers w Bose Speakers
      In The Works: 10 Cameras Geovision, new Adecmo/Envisalink Alarm, Arduinos
      System: XP on Fanless Mini-ITX w/ SSD

      Comment


        #4
        Performance - If you have an issue consider this review.

        NeverDie good catch, I think the system.mdb is the main HS Access / JET database. I see that I am getting "NAME NOT FOUND" repeating. C:\Program Files (x86)\HomeSeer HS2\system.mdb Is this a issue that could help HS with it's CPU loads, anyone?? it sure is busy work for HS.

        I have a few scripts that I am not sure they were written or configured correctly for my use?

        1- was a network check and reporting, this script triggered an event, and 2- was an email check and it triggered an event script.

        I am considering using the plugin unload script from Jon00 to unload my seasonal sprinkler plugin (McsSprinkler) The plugin works great but I learned it collects weather data year round and I do not need that. That was not a large load but nevertheless I am going toward managing what runs and so far
        the few I have adjusted give me big payback in low CPU loads.

        My other 2 scripts hogged CPU and grew over days. I will need to review how they work and see if I can still accomplish the processing with reasonable load.

        Was able to get a performance upgrade and now I will review how much I will ask the scripts to do and their loads to system. Thinking that when I put a script or a plugin on the HS server and fire it off.... that now I will see what it does and the overall use of the system for a time to better understand the "complete picture".

        Just an additional part too. I found that some files could not be found, read, that might also cause HS to unnecessarily labor and then load it down?? Will look into this issue. For a test - start process monitor and when it is watching real time, open a web page.... see attached screen shot. Looks to be file path issues.
        Attached Files
        HS3 Standard Edition 3.0.0.258

        Comment

        Working...
        X