The actual power consumption of the device should lower if you do not hold the wakelock, what you call (power save mode).
The reason why you see a sudden spike in the /proc/cpuload is because when you wake up the device the cpuload timers are queued up so CALC_LOAD is called muitple times for the sleep duration but it calculates this with the current # of active tasks (when the device wakes up) which skews the results. What you really want is to calculate the load with number of active tasks for just 1 of the ticks not all of them. Its an error in now the kernel calculates load but shouldn't impact power. Hope you are enjoying your Android phone :) -- Mike On Sun, Nov 1, 2009 at 2:42 PM, sysmon <v...@ruleit.de> wrote: > Hi all, > > i wonder why loadavg (read out from /proc/loadavg) and cpu usage is > increasing and very high if android phone is not in use (power save > mode). > > > Actual device monitored is HTC Hero with Android 1.5. > > I measured this with wake lock aquired and without wake lock. > With > wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "rITa"); > wl.acquire(); > the values are in a "normal" range (besides the standard high loadavg > on android). > > Without it the power-consumption increases, but the mentioned values > increase. > > > You may see live-graphs at http://ms1.ruleIT.de > Use user/passwd: ane/ane. > > > You may instantly check this if your phone was not in use and you plug > it via usb and issue and > adb shell > cat /proc/loadavg > > You will see very high values there ... > > Is there an explanation for this phenomena ? > > Regards, > > sysmon > > PS: sorry for bad english, i am no native speaker > > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel > -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel