4.2xx series memory usage, mail latency and battery drain

125 views
Skip to first unread message

Richard

unread,
Nov 8, 2012, 4:42:55 PM11/8/12
to k-9-...@googlegroups.com
Hi,

it seems this series is using impressive amounts of memory which is
probably responsible for most of my problems and could possibly explain
the battery drain that other people have reported.

On my system k9 starts with around 15-17MB and after some hours it
grows to 34MB (20MB resident). I am a bit surprised how that can happen
as I thought the heap is limitted to 24MB so dalvik would kill it much
sooner.

Anyway, sooner or later k9 gets killed or dies of resource starvation,
also seen a few of the
"activity manager: low memory no more background processes"
messages in the logs.

This results in frequent attempts of K9 to respawn itself, polling
and resyncing of accounts every times. Depending on how memory tight
the system is this may happen once in a few hours or several times
per minute.

Apparently when that happens often enough k9 dies completely, not
checking mail 2 periods like 2 hours or more.

Am I doing something wrong that my k9 has such terrible memory
requirements? On an identical phone a 4.118 version of k9 seems
to be running with 15-16MB (5MB resident) for days.

What kind of memory usage do other users see?


Richard

---
Name and OpenPGP keys available from pgp key servers

111000

unread,
Nov 9, 2012, 4:26:58 AM11/9/12
to k-9-...@googlegroups.com
I do not think this specific to 4.2 as I have what seems like the same promblen running Android
4.1.2. This on CM10/i91000
/Dorimanx kernel 7.11


Cheers

ai

111000

unread,
Nov 9, 2012, 4:28:03 AM11/9/12
to k-9-...@googlegroups.com
I omitted k9 version: 4.311

Jan Ludb

unread,
Nov 9, 2012, 6:09:29 AM11/9/12
to k-9-...@googlegroups.com, r...@linux-m68k.org
on android 2.3.6 samsung galaxy y, no problems, after two days stil just 5,6 mb of memmory used.
have 4.311 installed.
Greetz Jan
Op donderdag 8 november 2012 22:43:35 UTC+1 schreef Richard het volgende:

Richard

unread,
Nov 9, 2012, 8:38:30 AM11/9/12
to k-9-...@googlegroups.com
On Fri, Nov 09, 2012 at 03:09:29AM -0800, Jan Ludb wrote:
> on android 2.3.6 samsung galaxy y, no problems, after two days stil just
> 5,6 mb of memmory used.
> have 4.311 installed.

are you looking at what settings/applications/manage apps/k9 is showing?
Thats some kind of "disk usage", my problem is RAM (main memory) usage that
the running process consumes.

I use "osmonitor" (http://code.google.com/p/android-os-monitor/,
http://f-droid.org/repository/browse/?fdfilter=osmonitor&fdid=com.eolwral.osmonitor )
to watch memory usage.. I am always thankful for suggestions of good
system monitoring tools.

Dennis Rockwell

unread,
Nov 9, 2012, 10:58:03 AM11/9/12
to k-9-...@googlegroups.com
On 11/09/2012 08:38 AM, Richard wrote:
> are you looking at what settings/applications/manage apps/k9 is showing?
> Thats some kind of "disk usage", my problem is RAM (main memory) usage that
> the running process consumes.

It looks like settings/apps/running shows RAM usage (CM10 aka JB),
although its numbers differ greatly from osmonitor's for some apps.

> I use "osmonitor" (http://code.google.com/p/android-os-monitor/,
> http://f-droid.org/repository/browse/?fdfilter=osmonitor&fdid=com.eolwral.osmonitor )
> to watch memory usage.. I am always thankful for suggestions of good
> system monitoring tools.

Me, too. I was absurdly disappointed when vmstat delivered nonsense values.

Thanks for the osmonitor pointer! Know of anything else like it?

Oddly, osmonitor for tablet crashes on my JB tablet.

Dennis

111000

unread,
Nov 9, 2012, 11:02:05 AM11/9/12
to k-9-...@googlegroups.com
Just checked with OS Monitor and it shows. 38Mb (12Mb). This is after k9 has been running for about 4 mins.

111000

unread,
Nov 9, 2012, 11:02:06 AM11/9/12
to k-9-...@googlegroups.com

Richard

unread,
Nov 9, 2012, 4:09:00 PM11/9/12
to k-9-...@googlegroups.com
On Fri, Nov 09, 2012 at 08:02:06AM -0800, 111000 wrote:
> Just checked with OS Monitor and it shows. 38Mb (12Mb). This is after k9 has been running for about 4 mins.

I have just upgraded to 4.311, shows 29/16MB after some work. So the good
news is it did not get worse, possibly even somewhat better.

Still way too much considering that I have not looked at any attachments
or done other fancy stuff like that.

Richard

unread,
Nov 9, 2012, 4:13:08 PM11/9/12
to k-9-...@googlegroups.com
On Fri, Nov 09, 2012 at 10:58:03AM -0500, Dennis Rockwell wrote:

> Thanks for the osmonitor pointer! Know of anything else like it?
>
> Oddly, osmonitor for tablet crashes on my JB tablet.

I have been using Elixir for some time and worked nicely for me.
Dumped it because os-monitor is open source, much smaller and
does everything I need.
Perhaps you are lucky and os-monitor can be fixed for your hardware,
should not be such a big problem.

Dennis Rockwell

unread,
Nov 10, 2012, 9:23:49 AM11/10/12
to k-9-...@googlegroups.com
The regular version works fine, so I'm OK, but thanks!
Dennis

Sent from my Nook Color with K-9 Mail. Please excuse my brevity.

Richard

unread,
Nov 10, 2012, 3:16:12 PM11/10/12
to k-9-...@googlegroups.com
found another interesting field of the process list to watch,
"start time". Tells you how long k9mail survived without
a crash - and makes it much easier to search the logs to figure
out what happened around that time.

On my systems both k9mail versions mostly work for around an
hour even when not in use, somehow restart after that. The device
show 25MB of free RAM when k9mail runs.. must be some unusual
memory spike.
Adding memory pressure makes k9mail crash much earlier.
Reply all
Reply to author
Forward
0 new messages