"Thinker K.F. Li" <[email protected]> writes:

> From: Gabriele Svelto <[email protected]>
> Subject: Re: [b2g] Terrible battery life on my Flame, possibly due to ksmd
> Date: Wed, 04 Jun 2014 08:46:29 +0200
>
>> On 04/06/2014 04:01, Nicholas Nethercote wrote:
>>> AFAIK "ksm" stands for "kernel samepage merging" but I bet we're
>>> talking about the same thing.
>> 
>> Sounds like it. That thing runs every minute by default and scans all
>> memory to merge identical pages. It's really something meant for servers
>> running lots of identical apps that do not share memory by default (such
>> as VMs) so it's got no business on a phone (especially after Nuwa landed).
>
> So, it sounds like why my flame ate half of battry over night.  I find
> my flame does not go to sleep too.  I don't see any wake lock held,
> /sys/power/wake_lock, but the following command is never stopped even
> after unplugging the usb socket.
>
>       while sleep 3; do echo 1 >> /data/test; done&

I found autosleep is turned off by default. Try

    echo mem > /sys/power/autosleep

Kanru
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to