On 23/04/13 24:18 , Nicolas B. Pierron wrote:
On 04/22/2013 07:53 AM, Justin Lebar wrote:
This is the wifi worker.  I think "script-sources" is code.  Note that
fragmentation (unused-arenas) is way too high, but even despite this
the worker uses too much memory.

2.38 MB (05.13%) -- worker(resource://gre/modules/wifi_worker.js,
0x45584800)
├──1.77 MB (03.81%) -- gc-heap
│  ├──1.74 MB (03.74%) ── unused-arenas

We have a parameter which set a low limit which is used to prevent GC
during start-up, I don't think it is used for workers, but this might be
something to check that this preference[1] is only used for the main
thread. Currently this preference is set to 3 MB before the first GC.

[1] javascript.options.mem.gc_allocation_threshold_mb


Knowing nothing about the code, this sure looks suspicious:

http://mxr.mozilla.org/mozilla-central/source/b2g/app/b2g.js#550

I cannot find code where this pref is changed using MXR, but I am jetlagged and don't know my way around this code, so I could totally have missed it...


~ Gijs
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to