Closed Bug 1100512 Opened 10 years ago Closed 9 years ago

[e10s] HTML5 audio uses lots of CPU

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
e10s ? ---

People

(Reporter: mossop, Unassigned)

References

Details

(Keywords: steps-wanted)

A friend reported that Rdio was using a lot of CPU when in e10s mode, to the point that opening a new private window made the audio stutter.
Hi Dave, can we get better STR? Could this be MSE being turned on?
Flags: needinfo?(dtownsend+bugmail)
Keywords: steps-wanted
Hey, I'm the original reporter. I'm running Nightly from 12/06 on 10.9 and I've got only two tabs open: the one for this bug, and Rdio. After waiting for the page to load, all I need to do is start playing music in Rdio to see the content process chewing up 25% in Activity Monitor; it doesn't seem to matter if I start a song at the beginning or in the middle.

I don't know how to check for MSE being enabled but I have profile snapshots from the tab. When the tab is focused, it seems to be repainting a lot according to the profiler. When the tab isn't focused, the profiler still shows lots of CPU usage but few painting events (which is expected I think). The call stack isn't particular useful as most of the time seems to be spent between Startup::XRE_InitChildProcess (99.52% self) and Events::ProcessGeckoEvents (0.47% total, 0.17% self).
Flags: needinfo?(dtownsend+bugmail)
Hey Mossop - can you get a profile when you experience the CPU spike?
Flags: needinfo?(dtownsend+bugmail)
Flags: needinfo?(dtownsend+bugmail) → needinfo?(tellrob)
See Also: → 1128056
I haven't been able reproduce the problem where it uses lots of CPU, however I notice there's a difference when you use Flash. When you use Flash the nightly web content process uses half as much %CPU, from say %18 to %10 or less.

In non-e10s mode the nightly process uses up to 25% CPU, and it's about the same with or without Flash.

I have yet to experience the stutter described in the first comment.

I also tried the scenario in bug 1128056; there I could hear stuttering with a sample .mp3 song, but my browser never froze.
Should this block e10s-perf - bug 1063169?
Flags: needinfo?(tellrob)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.