Closed
Bug 868521
Opened 12 years ago
Closed 12 years ago
Don't create a new preallocated process so soon after a process is started
Categories
(Firefox OS Graveyard :: General, defect)
Firefox OS Graveyard
General
Tracking
(blocking-b2g:tef+, firefox21 wontfix, firefox22 wontfix, firefox23 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
RESOLVED
FIXED
blocking-b2g | tef+ |
People
(Reporter: justin.lebar+bug, Assigned: justin.lebar+bug, NeedInfo)
References
Details
Attachments
(1 file)
1.12 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
I don't know if I regressed this or we were always so bad, but I observe that right after we receive a call, almost the first thing we do is launch a new preallocated process!
That's quite bad; we're just wasting CPU time.
This is easy enough to fix, I think.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #747223 -
Flags: review?(bent.mozilla)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → justin.lebar+bug
Assignee | ||
Updated•12 years ago
|
blocking-b2g: --- → tef+
Updated•12 years ago
|
Whiteboard: [status: awaiting review]
Comment 2•12 years ago
|
||
Hmm. So when I originally coded this, the first idle didn't occur until several seconds after launching a new app.
Maybe the dialer is different, in that it actually blocks and waits for something right away.
What we discovered with other apps, was that the timeout (which was 5 seconds I think) was occuring before the app had reached idle, so the preallocated process was slowing down the app initialization.
Perhaps we need something like first idle after some delay.
Assignee | ||
Comment 3•12 years ago
|
||
> Maybe the dialer is different, in that it actually blocks and waits for something right away.
Or perhaps idle happens sooner when we're under CPU stress.
> Perhaps we need something like first idle after some delay.
This is basically delay-after-first-idle instead of first-idle-after-delay. I hope it's close enough; it's certainly much easier to do.
Comment 4•12 years ago
|
||
(In reply to Justin Lebar [:jlebar] from comment #3)
> > Maybe the dialer is different, in that it actually blocks and waits for something right away.
>
> Or perhaps idle happens sooner when we're under CPU stress.
IIRC The idle is that the child is idle, which means that it has no messages to process. This typically would happen when it's waiting for async I/O to complete (or the user to press a mouse or something).
Maybe the idle stuff has regressed from moving stuff off the main thread to other threads, and the idle isn't "good enough" any more.
Assignee | ||
Comment 5•12 years ago
|
||
> IIRC The idle is that the child is idle, which means that it has no messages to process.
Right, but the child could become idle if, for example, it's not being pumped as quickly with messages from the main process. Which could happen under certain types of stress.
Assignee | ||
Updated•12 years ago
|
Attachment #747223 -
Flags: review?(bent.mozilla) → review?(dhylands)
Comment 6•12 years ago
|
||
Comment on attachment 747223 [details] [diff] [review]
Patch, v1
Review of attachment 747223 [details] [diff] [review]:
-----------------------------------------------------------------
This seems like a reasonable compromise for the time being.
Attachment #747223 -
Flags: review?(dhylands) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Updated•12 years ago
|
Whiteboard: [status: awaiting review] → [status: needs uplift]
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 9•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/d1b25094d1fd
https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/072e642ad2b7
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → fixed
status-firefox21:
--- → wontfix
status-firefox22:
--- → wontfix
status-firefox23:
--- → fixed
Whiteboard: [status: needs uplift]
Comment 10•12 years ago
|
||
Can you please provide steps to verify this fix - as we will blackbox test from the UI?
Comment 11•12 years ago
|
||
Can you please provide steps to verify this fix - as we will blackbox test from the UI?
Flags: needinfo?
You need to log in
before you can comment on or make changes to this bug.
Description
•