Firefox OS/Performance/Boot Sequence Optimization: Difference between revisions

Update based on findings
(Update based on findings)
Line 89: Line 89:
* B2G starts after roughly 8s of mysterious "stuff", impenetrable to bootchart
* B2G starts after roughly 8s of mysterious "stuff", impenetrable to bootchart
* Based on kmsg, it is likely that time between 5s and 8s is init script execution up until <code>|class_start main|</code> in the init.rc (which launches B2G service)
* Based on kmsg, it is likely that time between 5s and 8s is init script execution up until <code>|class_start main|</code> in the init.rc (which launches B2G service)
* Vertical comes up around 16s, however it does not seem to actually do anything until many seconds after that.
* Vertical is shown as coming up around 16s, however it is actually just the preallocated process at this point, which later becomes vertical (around 22s-23s).
<!-- although I feel like some time as been lost... (by stopwatch it seems longer than that) | is what i thought earlier, but it could just be idle
      I should stopwatch time beginning of vertical again -->
* As well it seems we are only at the init entry point around 4 seconds in anyway (based on inserted kernel log output)
* As well it seems we are only at the init entry point around 4 seconds in anyway (based on inserted kernel log output)


Line 101: Line 99:
**  &nbsp;7-8s = B2G
**  &nbsp;7-8s = B2G
**  &nbsp;~14s = (Nuwa)
**  &nbsp;~14s = (Nuwa)
**  &nbsp;~16s = Vertical
**  &nbsp;~16s = Preallocated
**  &nbsp;~22s = Homescreen app?
**  &nbsp;~25s = UI presented to user
**  &nbsp;~25s = UI presented to user
</code>
</code>
Line 108: Line 107:


Of course, there is more concrete data, but that is the general trend of things.
Of course, there is more concrete data, but that is the general trend of things.
Note the discrepancy between the vertical process coming up and actual availability, this will be the focus of a future investigation.


[http://people.mozilla.org/~jbailey/v121-2-premainb2g/ Experiment #1]
[http://people.mozilla.org/~jbailey/v121-2-premainb2g/ Experiment #1]
Confirmed users
125

edits