4 ms·
FF doesn't use process per tab. It will use one process for chrome and one for all the content rendering for all tabs.
by sp332 10y ago
FF doesn't use process per tab. It will use one process for chrome and one for all the content rendering for all tabs.
- dkns 10y agoIt will in the future from what I understand. You can enable it right now in nightly.
- sp332 10y agoYou can set a certain max number of processes. I don't think there's a way to explicitly do process-per-tab or process-per-domain.
- johnp_ 10y agoThere isn't. It is planned to add an algorithm for grouping tabs into processes and dynamically adding/removing content processes, but that's low priority right now, because the current focus lies on getting the single content process e10s ready for the release channel. More info in the e10s-multi bug and its dependencies: https://bugzilla.mozilla.org/showdependencytree.cgi?id=e10s-multi&hide_resolved=1 https://bugzilla.mozilla.org/showdependencytree.cgi?id=e10s-... (also a nice way to look for known issues that might affect you if you're interested in trying out e10s-multi)
- ascagnel_ 10y agoWhat benefits does that provide over 1 process per tab?
- RussianCow 10y agoPresumably, you don't have the overhead of running a separate process for each tab, which adds up quickly when you have 50+ tabs open.
- sp332 10y agoEdit: I misread your comment. As RussianCow mentioned, it's to keep resource usage under control. The main advantage is that browser chrome is still responsive during rendering. You can switch tabs, open menus, resize windows etc. Also, rendering is a little faster since you don't have to interrupt it constantly to keep the UI responsive. And if the content process dies, all your tabs are still "open" and you can reload the content.
- RussianCow 10y agoI think the parent was asking about the advantage over Chrome's model of having one process per tab, not over the current single-process model.
- drzaiusapelord 10y agoShot in the dark here, but Chrome was developed back when it was common to have a single core CPU without any hyper-threading. An easy way to balance load is this scenario is just make a bunch of processes and have the OS do all the heavy lifting in regards to scheduling as everything has to share that one thread. You also get the benefit of bad processes dying without taking down the entire browser. At the time Chrome was coming around, browser stability was a larger issue than it is today. Now that everyone has a multi-core cpu, it makes more sense to not really worry too much about scheduling. The OS will just move stuff off a busy core and onto a less busy core dynamically. So why not just separate the UI front end from the rendering and call it a day? Why bother with so many processes when you have cpu cores to spare? The UI and renderer will run in their own cores when they get too cpu hungry. Also, if the renderer crashes, no biggie, the UI just re-renders everything.
- sp332 10y agoBut if you have a tab with heavy JS, that's going to slow down all the other content as well since they must share a CPU. If each tab got its own process, the heavy one could get its own core. Same if one crashes, it takes all the others down.
- mintplant 10y agoNone, really. Process per tab is the end goal - this is just a step along the way.
- hackuser 10y agoI've read many times that Chrome is a heavy resource consumer due to their one-process-per-tab architecture. Maybe others can say more ...
- agumonkey 10y agoI've heard the 1:1 mapping was only true at first, they tried to merge processes by domain IIRC.
- bzbarsky 10y agoSignificantly lower memory usage.