Slow tab startup time with new content process




DOM: Content Processes
2 years ago
7 months ago


(Reporter: jkerim, Unassigned)


(Blocks: 1 bug)

50 Branch
Mac OS X

Firefox Tracking Flags

(firefox50 affected)


(Whiteboard: [e10s-multi:+])



2 years ago
I am running Firefox Nightly 50.0a1 (2016-07-25) with dom.ipc.processCount set to a large number (100 in this case).  When I open a new tab, it starts a new content process and attaches it to the tab.  However this startup time introduces a noticeable lag to the new tab open flow.  

If I reduce the number of content processes so that it is equal to or lower than the number of tabs I have open, such that opening a new tab will reuse an existing content process, then the new tab open flow is extremely smooth. Is it possible to improve the performance of opening a new tab and starting a new content process, possibly by pre-creating a dormant background content process which is then brought to the front when a new tab is created?
Blocks: 1207306

Comment 1

2 years ago
Yup, there is a really noticeable slowdown, but the advantages for me so far outweigh that. 

The pre-creating a dormant sounds great for a new tab, but I am wondering how handling of several new tabs would work. 

I frequently open something like 10+ tabs at the same time, but I am probably an edge case.
Whiteboard: [e10s-multi:?]
Whiteboard: [e10s-multi:?] → [e10s-multi:M3]
There is preallocated process mechanism that seems like it works at least a little if you set the boolean pref "dom.ipc.processPrelaunch.enabled" to true.  You probably need to manually create it in about:config.  (Disclaimer: I think it's largely from Firefox OS, maybe there are scary things that break if you turn it on?  But it seemed to not explode too badly for me, and other than being intertwined with some "app" code paths, the code seems like it should work at least some of the time.)

Anyways, it's probably worth trying.

Comment 3

2 years ago
Thanks for the heads up! I'll try to enable it and see how it goes.

Comment 4

2 years ago
After having it on for a few days, it really does make loading up new tabs a lot better, just wish there was a preference for how many idle processes to pre-launch.
Whiteboard: [e10s-multi:M3] → [e10s-multi:+]
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.