Decide how many prestarted processes should be fully ready to run for Fission
Categories
(Core :: DOM: Navigation, task, P3)
Tracking
()
| Fission Milestone | M7 |
People
(Reporter: jesup, Assigned: jesup)
References
Details
(Whiteboard: fission-perf)
When a process is started but hasn't done all of initialization, it uses less memory, but finishing initializing will speed up actually browsing. We need to decide how much of initialization should be done for prestarted processes, and if all prestarted processes should have the same initialization state. (For example, if a started-but-not-initialized process is 5MB, and 5MB more to initialize (both of those are probably too low), we could initialize one fully and have 3 more started but not fully initialized for a total of 25MB -- or we could initialize all of them for 40MB -- or start and initialize a total of 3 for 30MB).
On my fast Linux desktop it appears to take around 25-30ms to initialize, and the delta in memory was about 1.5MB. At that delta, I suspect the answer would always be "initialize", and so I imagine that will be the answer in general. There may be specific items we might want to defer, which are quick but use a lot of memory.
This is a time vs. memory tradeoff. (Or, if you prefer, a time vs. # of prestarted processes you can afford.)
| Assignee | ||
Comment 1•6 years ago
|
||
iframe process startup through beginning of loading, ~30-35ms:
https://perfht.ml/36qwlXl
Updated•6 years ago
|
Comment 2•6 years ago
|
||
M6b because we should figure out how many processes we want to preallocate soon.
| Assignee | ||
Comment 3•6 years ago
|
||
It appears 3 is a good number event for really bad sites that load 10-20 iframes/processes, both for high end and low end. We may be able to drop to 2, though with occasional small perf impacts on such sites. Probably only worth it on low-memory machines.
Updated•6 years ago
|
Updated•5 years ago
|
| Assignee | ||
Comment 4•5 years ago
|
||
Final decision was 3. If we need to reduce memory usage we'll file a new bug (perhaps only for low-memory machines)
Description
•