[ARM] Pulse Audio eating up to much CPU

Bug #358831 reported by Jerone Young
6
Affects Status Importance Assigned to Milestone
OEM Priority Project
Invalid
Medium
Unassigned
pulseaudio (Ubuntu)
Invalid
High
Unassigned

Bug Description

On the Freescale MX51 platform it has been noticed that Pulse Audio eats up a signficant amount of CPU that is unacceptable. This is using the now offical images being produced for the Freescale platform here:
https://wiki.ubuntu.com/BabbageJauntyBetaInstall

I did some findings:

When playing the ogg theora video of big buck bunny. Pulse Audio eats up 15 - 30 % CPU.
http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.ogg

Pulse audio is eating only 1 - 2% CPU when playing ogg files such as
http://www.vorbis.com/music/The_Abyss-4T.ogg

Also playing mp3s within the software codecs in packages:
gstreamer0.10-ffmpeg
gstreamer0.10-plugins-ugly
When playing through totem pulse audio will then eat up
a bit more averaging 2 - 6 % CPU.

Tags: armel
Jerone Young (jerone)
tags: added: arm
Revision history for this message
Jerone Young (jerone) wrote :

Freescale engineer is reporting pulse audio consumes 30%-40% CPU during video playback with latest build as of april 12 09.

They have now removed pulse audio using aptitude, and are no longer using it.

Revision history for this message
Jerone Young (jerone) wrote :

For ARM the reason this is important is that Pulse Audio eating significant CPU means less battery life for ARM based devices. So we need to minimize the CPU utilization of Pulse Audio on ARM.

Changed in pulseaudio (Ubuntu):
assignee: nobody → canonical-qa
Changed in oem-priority:
importance: Undecided → Medium
Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 358831] Re: [ARM] Pulse Audio eating up to much CPU

Pending mainloop and threading rework in upstream git HEAD (i.e., won't be
resolved in 0.9.1[45])

On Apr 13, 2009 4:05 PM, "Jerone Young" <email address hidden> wrote:

For ARM the reason this is important is that Pulse Audio eating
significant CPU means less battery life for ARM based devices. So we
need to minimize the CPU utilization of Pulse Audio on ARM.

-- [ARM] Pulse Audio eating up to much CPU
https://bugs.launchpad.net/bugs/358831 You received thi...

Changed in pulseaudio (Ubuntu):
assignee: Canonical Ubuntu QA Team (canonical-qa) → Ubuntu Foundations Team (ubuntu-foundations)
importance: Undecided → High
status: New → Triaged
Changed in pulseaudio (Ubuntu):
assignee: Canonical Foundations Team (canonical-foundations) → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
Martin Pitt (pitti) wrote :

Nobody in the desktop team has an ARM device for debugging this. David, can someone from your team attach strace/gdb to this to check where it is burning so much CPU power?

Changed in pulseaudio (Ubuntu):
assignee: Canonical Desktop Team (canonical-desktop-team) → Canonical Mobile Team (canonical-mobile)
Paul Larson (pwlars)
tags: added: string-fix
Paul Larson (pwlars)
tags: removed: string-fix
Paul Larson (pwlars)
tags: added: armel
removed: arm
Revision history for this message
Oliver Grawert (ogra) wrote :

there are no audio drivers on the babbage1, here it defaults to /dev/null output, pulse doesnt show such a behavior. what kernel version was used for the above test ?

Revision history for this message
Jerone Young (jerone) wrote :

Testing was done with SoC vendor provided kernels. Both at version 2.6.26 & 2.6.28. Also same problems are being seen on babbage 2.

Since babbage 1 has now been end of lifed and is no longer used, nor will be shipped to any users or customers.

Revision history for this message
Oliver Grawert (ogra) wrote :

please make sure to test with the distro provided kernels, we can't do anything about misconfiguration in kernels we do not maintain. also let me point out again that the build-babbage-rootfs script is not a valid way of building images beyond a basic test state, there were various issues with audio handling in jaunty for quite a while due to missing group membership of the default user. the only images we can take bugs on are the officially released ones, babbage2 support will be added with the alpha3 milestone (according to the kernel team) in karmic, feel free to re-open the bug if the problem presists with one of the official images using the officially released kernel.

Changed in pulseaudio (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Jerone Young (jerone) wrote :

This is still very much a valid bug. We need to add audio support to our supported kernel. I have been in deep descussion with David Chen (of pulse audio fame) over this issue.

When we have audio support in our kernel and we can't see the problem, then we should close the bug.

Otherwise this is very much a valid problem we need to solve.

Changed in pulseaudio (Ubuntu):
status: Invalid → New
Revision history for this message
Oliver Grawert (ogra) wrote :

please leave the bug state until you can test against a valid audio stack, kernel and image we support

Changed in pulseaudio (Ubuntu):
status: New → Invalid
Jerone Young (jerone)
Changed in oem-priority:
status: New → Invalid
Curtis Hovey (sinzui)
Changed in pulseaudio (Ubuntu):
assignee: Registry Administrators (registry) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.