sudoku app when idle is actually quite busy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sudoku App |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I ran some analyis on the Sudoku app when it was "idle". I just gathered 60 seconds worth of samples to see what was going on in the "idle" state:
CPU usage:
PID Process USR% SYS% TOTAL%
1274 qmlscene 0.20 0.72 0.92
Wakeups:
PID Process Wake/Sec Kernel Functions
1278 qmlscene 1.00 (hrtimer_
1274 qmlscene 0.97 (hrtimer_
1283 qmlscene 0.20 (hrtimer_
File I/O Operations:
No file I/O operations detected
System Calls Traced:
PID Process Syscall Count Rate/Sec
1274 qmlscene clock_gettime 2111 35.1820
1274 qmlscene poll 996 16.5994
1274 qmlscene read 938 15.6327
1274 qmlscene futex 114 1.8999
1274 qmlscene SYS_NR_0 1 0.0167
Top Polling System Calls:
PID Process Syscall Rate/Sec Infinite Zero Minimum Maximum Average
1274 qmlscene poll 16.5994 0 1 0.0 sec 999.0 msec 555.6 msec
Distribution of poll timeout times:
PID Process Syscall sec usec usec usec msec msec msec sec sec sec Wait
1274 qmlscene poll 1 - - - 8 80 907 - - - 0
[ one needs a proportional font to see this data nicely tabulated :-( ]
Is it expected to see 35 clock_gettime() calls a second when idle? Or ~16 poll()/reads() a second? In idle, it is consuming nearly 1% of the CPU. I'd expect idle to really to suck less power.
tags: | added: mobile-power-consumption |
Hmm, there is a Timer component that triggers an event every second. It's used for calculating score. Do you have a suggestion? Maybe to increase interval of the Timer component?