Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-36100

Optimize the M2 Python GUI System Performance

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_main_telescope
    • Labels:
    • Story Points:
      1
    • Sprint:
      TSSW Sprint - Sep 26 - Oct 10
    • Team:
      Telescope and Site
    • Urgent?:
      No

      Description

      Optimize the M2 Python GUI system performance. The CPU usage is high at this moment and needs to optimize the GUI to have a reasonable CPU usage.

        Attachments

          Issue Links

            Activity

            Hide
            ttsai Te-Wei Tsai added a comment -

            I realized the MockModel in ts_m2com takes a lot of resource in the matrix inversion.

            Show
            ttsai Te-Wei Tsai added a comment - I realized the MockModel in ts_m2com takes a lot of resource in the matrix inversion.
            Hide
            ttsai Te-Wei Tsai added a comment - - edited

            Before the optimization, the CPU usage is 300-350% under the closed-loop control (the main CPU resource is used to do the inversion in the simulation. After the optimization, the CPU usage is 30-40% under the same condition. If the fresh frequency is 10 Hz, the CPU usage is 40%. If the fresh frequency is 1 Hz, the CPU usage is 30%.

            If the GUI is not using the simulation mode, the CPU usage should be decreased further.

            Show
            ttsai Te-Wei Tsai added a comment - - edited Before the optimization, the CPU usage is 300-350% under the closed-loop control (the main CPU resource is used to do the inversion in the simulation. After the optimization, the CPU usage is 30-40% under the same condition. If the fresh frequency is 10 Hz, the CPU usage is 40%. If the fresh frequency is 1 Hz, the CPU usage is 30%. If the GUI is not using the simulation mode, the CPU usage should be decreased further.
            Hide
            ttsai Te-Wei Tsai added a comment -
            Show
            ttsai Te-Wei Tsai added a comment - Please help to review the PRs: 1. https://github.com/lsst-ts/ts_m2com/pull/11 2. https://github.com/lsst-ts/ts_m2gui/pull/22 Thanks!
            Hide
            pkubanek Petr Kubanek added a comment -

            Reviewed in GitHub

            Show
            pkubanek Petr Kubanek added a comment - Reviewed in GitHub

              People

              Assignee:
              ttsai Te-Wei Tsai
              Reporter:
              ttsai Te-Wei Tsai
              Reviewers:
              Petr Kubanek
              Watchers:
              Petr Kubanek, Te-Wei Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.