Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT applications occupy CPU resources have been very high
Forum Updated to NodeBB v4.3 + New Features

QT applications occupy CPU resources have been very high

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 6 Posters 3.0k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrdebug
    wrote on 26 Sept 2017, 15:59 last edited by
    #6

    dvrui maybe it is a gui program that display a video stream.
    Really is there someone that writes a daemon software for embedded devices in Java?

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0
    • R Roy.Wang
      26 Sept 2017, 12:13

      In the Linuxs system ,Start a simple QT application without doing anything.CPU resources occupy almost 0 .
      However, after the system sleep wakeup, the QT application CPU resources occupy a high, has been maintained at around 25%, can not go down !

      As shown in the following figure

      0_1506427798694_cputest.png

      DvrUI is the QT application.
      Don't let it CPU up so high ,How to deal with such problems?.

      A Offline
      A Offline
      ambershark
      wrote on 27 Sept 2017, 02:47 last edited by
      #7

      @Roy.Wang Does any other Qt application exhibit this same behavior? That would probably be more application based rather than a Qt thing.

      I'm betting dvrui uses some type of hardware (just guessing based on it's name). So when the pc sleeps and shuts down that hardware, then comes back up, the application isn't deal with that loss and reacquire properly.

      Totally guessing though. That's why you should test with any other Qt application to find out if it's dvrui or Qt.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      R 1 Reply Last reply 27 Sept 2017, 07:02
      0
      • A ambershark
        27 Sept 2017, 02:47

        @Roy.Wang Does any other Qt application exhibit this same behavior? That would probably be more application based rather than a Qt thing.

        I'm betting dvrui uses some type of hardware (just guessing based on it's name). So when the pc sleeps and shuts down that hardware, then comes back up, the application isn't deal with that loss and reacquire properly.

        Totally guessing though. That's why you should test with any other Qt application to find out if it's dvrui or Qt.

        R Offline
        R Offline
        Roy.Wang
        wrote on 27 Sept 2017, 07:02 last edited by
        #8

        @ambershark

        DvrUI is a simple QT application without doing anything.

        This happens in all QT applications

        A 1 Reply Last reply 28 Sept 2017, 03:54
        0
        • J jsulm
          26 Sept 2017, 13:49

          @Roy.Wang What is VideoPro? It is consuming 183% of your memory!
          The high CPU usage of your app could be caused by your app constantly swapping memory RAM <-> disk, because all your RAM is occupied by VideoPro!

          R Offline
          R Offline
          Roy.Wang
          wrote on 27 Sept 2017, 07:06 last edited by
          #9

          @jsulm VideoPro is a video program, I do not start it, DvrUI sleep back, will also have to occupy such a high CPU resources

          DvrUI is a simple QT application without doing anything.No interfaces are called.

          This happens in all QT applications

          J 1 Reply Last reply 27 Sept 2017, 07:09
          0
          • R Roy.Wang
            27 Sept 2017, 07:06

            @jsulm VideoPro is a video program, I do not start it, DvrUI sleep back, will also have to occupy such a high CPU resources

            DvrUI is a simple QT application without doing anything.No interfaces are called.

            This happens in all QT applications

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 27 Sept 2017, 07:09 last edited by
            #10

            @Roy.Wang Is it the same if VideoPro is not running?
            "I do not start it" - it is running as you can see in your screen-shot.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 2 Replies Last reply 27 Sept 2017, 07:43
            0
            • J jsulm
              27 Sept 2017, 07:09

              @Roy.Wang Is it the same if VideoPro is not running?
              "I do not start it" - it is running as you can see in your screen-shot.

              R Offline
              R Offline
              Roy.Wang
              wrote on 27 Sept 2017, 07:43 last edited by
              #11

              @jsulm Yes

              1 Reply Last reply
              0
              • J jsulm
                27 Sept 2017, 07:09

                @Roy.Wang Is it the same if VideoPro is not running?
                "I do not start it" - it is running as you can see in your screen-shot.

                R Offline
                R Offline
                Roy.Wang
                wrote on 27 Sept 2017, 07:53 last edited by
                #12

                @jsulm it is the same if VideoPro is not running,
                The DvrUI app, CPU resources occupy a high (25%).

                J 1 Reply Last reply 27 Sept 2017, 07:56
                0
                • R Roy.Wang
                  27 Sept 2017, 07:53

                  @jsulm it is the same if VideoPro is not running,
                  The DvrUI app, CPU resources occupy a high (25%).

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 27 Sept 2017, 07:56 last edited by
                  #13

                  @Roy.Wang What is the device where you have this issue?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  R 1 Reply Last reply 27 Sept 2017, 08:00
                  0
                  • J jsulm
                    27 Sept 2017, 07:56

                    @Roy.Wang What is the device where you have this issue?

                    R Offline
                    R Offline
                    Roy.Wang
                    wrote on 27 Sept 2017, 08:00 last edited by
                    #14

                    @jsulm a linux system device

                    J 1 Reply Last reply 27 Sept 2017, 08:06
                    0
                    • R Roy.Wang
                      27 Sept 2017, 08:00

                      @jsulm a linux system device

                      J Offline
                      J Offline
                      J.Hilk
                      Moderators
                      wrote on 27 Sept 2017, 08:06 last edited by mrjj
                      #15

                      @Roy.Wang Thats as detailed of an Answer as "A blue one" is to the question "What car do you drive?"


                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                      Q: What's that?
                      A: It's blue light.
                      Q: What does it do?
                      A: It turns blue.

                      1 Reply Last reply
                      2
                      • R Roy.Wang
                        27 Sept 2017, 07:02

                        @ambershark

                        DvrUI is a simple QT application without doing anything.

                        This happens in all QT applications

                        A Offline
                        A Offline
                        ambershark
                        wrote on 28 Sept 2017, 03:54 last edited by
                        #16

                        @Roy.Wang said in QT applications occupy CPU resources have been very high:

                        @ambershark

                        DvrUI is a simple QT application without doing anything.

                        This happens in all QT applications

                        What other Qt applications have displayed that behavior? Are you sure it's all of them, or just the dvr related ones that you have tried?

                        Also can you run an strace and see what they are doing that is using the high amount of cpu? That should help in tracking it down.

                        Qt obviously isn't designed to do that and it seems specific to your machine, so maybe strace can give us an idea of what is causing the cpu to spin like that.

                        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                        1 Reply Last reply
                        1

                        15/16

                        27 Sept 2017, 08:06

                        • Login

                        • Login or register to search.
                        15 out of 16
                        • First post
                          15/16
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved