Closed
Bug 811210
Opened 12 years ago
Closed 12 years ago
Jank in RPCChannel::WaitForNotify while panning in Google Streetview
Categories
(Core :: IPC, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jaws, Unassigned)
Details
(Whiteboard: [Snappy][sps])
http://people.mozilla.com/~bgirard/cleopatra/#report=cc4cd7fc25a8e9ddc8c5c5d5b83e5d362e0564ae Looking at the profile, 67.8% of the jank is spent in RPCChannel::WaitForNotify. Further, this appears to come from the call to MsgWaitForMultipleObjects (http://hg.mozilla.org/mozilla-central/annotate/b857905d82b4/ipc/glue/WindowsMessageLoop.cpp#l904). The fourth parameter to MsgWaitForMultipleObjects is the time-out interval, which is currently being set to INFINITE. I think we should be able to replace this line with a loop that has a shorter timeout and then spins the event loop before trying again.
Reporter | ||
Comment 1•12 years ago
|
||
I saw this while using Google Streetview with Flash 11.4.402.287 on Nightly 11-10-2012.
Reporter | ||
Comment 2•12 years ago
|
||
Or maybe reduce QS_ALLINPUT to remove QS_TIMER if it isn't needed, http://picklemouse.wordpress.com/2008/09/09/msgwaitformultipleobjects-when-5-seconds-becomes-infinite/
Comment 3•12 years ago
|
||
This profile basically says "the plugin process is responding slowly". This is a blocking wait on purpose, because we are waiting for the plugin process to reply to the NPAPI call. We must not spin the event loop here. You really need to understand why the plugin (is this Flash or a streetview plugin?) is not responding quickly.
Reporter | ||
Comment 4•12 years ago
|
||
This was using Flash. I don't have a streetview plugin installed. Is there nothing that we can do in the instance where the plugin is slow to respond?
Comment 5•12 years ago
|
||
In general, that's correct. We can possibly try profiling the Flash processes to see what they are doing and whether we can repriorize our requests above that activity. I'd love to try that, but it's basically profiling black magic to get useful data out of that, especially without Flash sources.
Reporter | ||
Comment 6•12 years ago
|
||
Is this bug INVALID or WONTFIX then? I admit to not knowing much about this area of the codebase, but it seems like we should specify a reasonable timeout here instead of infinity.
Comment 7•12 years ago
|
||
We have a 45-second timeout.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•