The NetworkStatsService wakelock is only held while collecting and
recording statistics from the kernel, and it should only be held for a
short period of time. Here's a typical example from a maguro device
on battery for a few hours:
Wake lock NetworkStats: 1s 57ms partial (27 times) realtime
Since all wakelock usage in NetworkStatsService is wrapped in
try/finally blocks, I'm wondering if one of the /proc files is
hanging.
To help investigate, could you pull stack traces when in this state by
running "systemstack" (defined in envsetup.sh). If those traces
confirm it's blocked on a read() for a long time, reboot and turn on
logging on the kernel side to investigate further:
adb shell "echo 8 > /sys/module/xt_qtaguid/parameters/debug_mask"
adb shell cat /proc/kmsg | grep "qtaguid"
j
> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/android-platform/-/5biDGZyuSCsJ.
> To post to this group, send email to
android-...@googlegroups.com.
> To unsubscribe from this group, send email to
>
android-platfo...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/android-platform?hl=en.
--
Jeff Sharkey
jsha...@android.com