Closed Bug 860114 Opened 11 years ago Closed 6 years ago

[meta] slow content process startup when parent is busy

Categories

(Firefox OS Graveyard :: Performance, defect, P4)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gwagner, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [c=progress p= u= s=])

If the parent process is busy and we get an incoming call we end up spending a ton of time requesting required information in sync calls from the parent during child startup.
We should avoid this and send all required info when we launch the process or try to not block on these calls.

This bug tracks findings.
Depends on: 860097
What is the parent process busy doing?

At some level we rely on the parent process to do lots of setup for a call; if it's busy, the call will take longer to connect than it should, regardless of whether the child blocks on the parent or not.
Keywords: perf
Whiteboard: [c= p= u= s=]
Is this still a bug?  Is this a class bug with Bug 860097 just one example of how to fix this?  Can you give us some more information on this?
Flags: needinfo?(anygregor)
(In reply to Dave Huseby [:huseby] from comment #2)
> Is this still a bug?  Is this a class bug with Bug 860097 just one example
> of how to fix this?  Can you give us some more information on this?

Our current process launching procedure is not optimal. When we create a child process, we are requesting values from the parent. Some of those calls are sync calls and if the parent is busy with other stuff that initialization can take some time.

The solution is to package all information that is needed for initialization with the start-up call so we don't need any additional information from the parent.
Flags: needinfo?(anygregor)
Component: General → Performance
Priority: -- → P4
Whiteboard: [c= p= u= s=] → [c=progress p= u= s=]
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.