QT applications occupy CPU resources have been very high
-
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
DvrUI is the QT application.
Don't let it CPU up so high ,How to deal with such problems?. -
I don't remember having problems with resources in Qt Implementation.
Did you developed the "Qt application" or where did you get it?
BTW, being based in C++, Qt is intended to not take too much resources... Compared with Java and similars.
Kind Regards,
Carlos
-
-
@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.
-
DvrUI is a simple QT application without doing anything.
This happens in all QT applications
-
-
@Roy.Wang said in QT applications occupy CPU resources have been very high:
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.