ubuntuappmanager polls at 2Hz in one of it's threads

Bug #1207389 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libhybris
Fix Released
Undecided
Unassigned

Bug Description

I observed that on an idle Samsung Galaxy Nexus ubuntuappmanager is producing 2 wakeups a second in one of the threads:

Wakeups:
  PID Process Wake/Sec Kernel Functions
   673 ubuntuappmanager 1.99 (hrtimer_start_range_ns, hrtimer_wakeup) (moderate)
   670 ubuntuappmanager 0.21 (hrtimer_start_range_ns, hrtimer_wakeup) (very low)
 Total 2.20

gdb shows:

#0 0x4015edf8 in epoll_wait () from /system/lib/libc.so
#1 0x4003f978 in android::Looper::pollInner(int) () from /system/lib/libutils.so
#2 0x4003fba0 in android::Looper::pollOnce(int, int*, int*, void**) () from /system/lib/libutils.so
#3 0x4003fbf4 in android::Looper::pollAll(int, int*, int*, void**) () from /system/lib/libutils.so
#4 0x40072f22 in ?? ()
#5 0x4003c416 in android::Thread::_threadLoop(void*) () from /system/lib/libutils.so
#6 0x4003bf6e in ?? () from /system/lib/libutils.so
#7 0x40155470 in __thread_entry () from /system/lib/libc.so
#8 0x40154b54 in pthread_create () from /system/lib/libc.so
#9 0x00000000 in ?? ()

strace shows:

sudo strace -p 673
Process 673 attached
clock_gettime(CLOCK_MONOTONIC, {254, 102372559}) = 0
epoll_wait(5, {}, 16, 500) = 0
clock_gettime(CLOCK_MONOTONIC, {254, 604508789}) = 0
epoll_wait(5, {}, 16, 500) = 0
clock_gettime(CLOCK_MONOTONIC, {255, 106400880}) = 0
epoll_wait(5, {}, 16, 500) = 0
clock_gettime(CLOCK_MONOTONIC, {255, 608506592}) = 0
epoll_wait(5, {}, 16, 500) = 0
clock_gettime(CLOCK_MONOTONIC, {256, 110886963}) = 0
epoll_wait(5, {}, 16, 500) = 0
clock_gettime(CLOCK_MONOTONIC, {256, 613236817}) = 0
epoll_wait(5, {}, 16, 500) = 0

so we're seeing epoll_wait() polling at 2Hz and timing out.

tags: added: mobile-power-consumption
tags: added: rls-s-incoming
Revision history for this message
Colin Ian King (colin-king) wrote :

Any update on this bug? It seems to be gettting no attention.

Revision history for this message
Colin Ian King (colin-king) wrote :

I think this is an issue in libhybris doing a 2Hz epoll

Revision history for this message
Colin Ian King (colin-king) wrote :

This has been fixed with the latest version of libhybris

Changed in touch-preview-images:
status: New → Fix Released
affects: touch-preview-images → libhybris
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.