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

Jump to navigation Jump to search
Line 114: Line 114:
In this simple experiment a simple change to "init.rc" was made. By default b2g was started along with a host of other services in the same class "main". For this experiment B2G was moved into its own class that was run just before main. As expected this did not have significant effect in when B2G was launched however, since these were all launched in fairly quick order. Quantitatively one does notice a difference in the bootchart images reflecting B2G being started slightly earlier. Of note is that as a result of this change, there is a more pronounced black screen between the T2mobile and the "Mozilla Developer Network" logos. Dave Huseby has noted in the past that such a noticeable black screen exists in other devices.
In this simple experiment a simple change to "init.rc" was made. By default b2g was started along with a host of other services in the same class "main". For this experiment B2G was moved into its own class that was run just before main. As expected this did not have significant effect in when B2G was launched however, since these were all launched in fairly quick order. Quantitatively one does notice a difference in the bootchart images reflecting B2G being started slightly earlier. Of note is that as a result of this change, there is a more pronounced black screen between the T2mobile and the "Mozilla Developer Network" logos. Dave Huseby has noted in the past that such a noticeable black screen exists in other devices.


[[File:baseline-bootchart.16.png|Baseline, B2G is launched along with other services]]
[[File:baseline-bootchart.16.png|800px|Baseline, B2G is launched along with other services]]
[[File:premainb2g-bootchart.16.png|Launch B2G just prior to other services in main]]
[[File:premainb2g-bootchart.16.png|800px|Launch B2G just prior to other services in main]]


In these images, each horizontal bar represents the lifetime of a process. A processes children are below it, and parent child relationships are indicated by a dotted line from the parent going into the beginning of the child's bar. The process bars are in order of launch time (earliest first).
In these images, each horizontal bar represents the lifetime of a process. A processes children are below it, and parent child relationships are indicated by a dotted line from the parent going into the beginning of the child's bar. The process bars are in order of launch time (earliest first).
Line 124: Line 124:
One will note that in the first 13 trials B2G tries to launch, crashes, and then relaunches at around 12s, whereas it starts fine for the last 3. Seen below is a sample of a run in which B2G crashes vs. not
One will note that in the first 13 trials B2G tries to launch, crashes, and then relaunches at around 12s, whereas it starts fine for the last 3. Seen below is a sample of a run in which B2G crashes vs. not


[[File:lesswl-bootchart.12.png|left|framed|Crashing]]
[[File:lesswl-bootchart.12.png|Crashing]]
 
[[File:lesswl-bootchart.13.png|Not Crashing]]
[[File:lesswl-bootchart.13.png|left|framed|Not Crashing]]




Confirmed users
125

edits

Navigation menu