If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

[meta] Reduce the amount of chrome JS we run in B2G

RESOLVED INCOMPLETE

Status

Firefox OS
General
RESOLVED INCOMPLETE
5 years ago
4 years ago

People

(Reporter: Justin Lebar (not reading bugmail), Unassigned)

Tracking

({perf})

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [c=memory p= s=2013.12.06 u=] [MemShrink:P2])

Attachments

(3 attachments)

(Reporter)

Description

5 years ago
Chrome JS is one of the largest consumers of memory in B2G.  Leaving aside B2G's worker threads (bug 864927, bug 864931, bug 864932), we spend about 8mb of memory on chrome JS in the B2G main process.

We ought to look at reducing the amount of JS we run in the main process, in an attempt to reign in our memory usage.  We can use this bug for investigation and then spin off concrete pieces of action into blocking bugs.
(Reporter)

Comment 1

5 years ago
Created attachment 740981 [details]
B2G memory report soon after reboot
(Reporter)

Comment 2

5 years ago
Created attachment 740985 [details]
Memory report from b2g18 with jsloader.reuseGlobal disabled

In this memory report, JS uses ~2x as much memory, but at least you can see where it's going.  I have no idea how representative this report is.

A better approach would be to try b2g on trunk with zones enabled and jsloader.reuseGlobal set to false.
Whiteboard: [MemShrink] → [MemShrink:P2]
Depends on: 870676
Created attachment 748986 [details]
Memory report from m-c trunk
Depends on: 913343
No longer depends on: 913343
Depends on: 924337

Updated

4 years ago
Keywords: perf
Whiteboard: [MemShrink:P2] → [c=memory p= s= u=] [MemShrink:P2]
Rolling dependencies up into Bug 797189 (Operation Slim-Fast), and closing this one out as it's very broad and doesn't look like it's caught on as an active meta. Resolving as INCOMPLETE for lack of a better option.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INCOMPLETE

Updated

4 years ago
Whiteboard: [c=memory p= s= u=] [MemShrink:P2] → [c=memory p= s=2013.12.06 u=] [MemShrink:P2]
You need to log in before you can comment on or make changes to this bug.