On Wed, Apr 30, 2014 at 12:00 AM, Gabriele Svelto <gsve...@mozilla.com> wrote: > On 30/04/2014 00:26, Jonas Sicking wrote: >> When we fork() a new process from the nuwa process, does it inherit >> the OOM priority from the nuwa process? > > Yes, but what we get is the preallocated process, we set it's OOM > adjustment to the highest possible class (so that it doesn't get killed) > and it's CPU priority to the lowest possible class (nice 18).
Ah, great, that means that we should just make sure to not drop that OOM adjustment to a lower class before gaia has had an opportunity to set the visibility of the app and that that has had a chance to take effect. >> What OOM priority does the nuwa process have? > > The Nuwa process has the same OOM adjustment and priority as the main > process. > >> Ideally we would give forked process a very high priority until we can >> check if setVisible was called with true or false. > > You mean we should immediately raise the priority of the preallocated > process? It sounds like we already are, right? / Jonas _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g