Re: Pulseaudio 40% of CPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 25, 2010 at 10:36:54PM -0700, JD wrote:
>   On 10/25/2010 10:26 PM, Marcel J.E. Mol wrote:
> > On Mon, Oct 25, 2010 at 09:45:03AM -0700, JD wrote:
> >>    On 10/25/2010 04:11 AM, Marko Vojinovic wrote:
> >>> On Monday, October 25, 2010 04:39:53 JD wrote:
> >>>>     On 10/24/2010 08:28 PM, JD wrote:
> >>>>> --- snip ---
> >>>>> No matter what we think of flash, pulseaudio is not a product
> >>>>> of the flash plugin. It is a free and opensource linux product.
> >>>>> I just created output of strace of the pulseaudio process
> >>>>> and posted it at
> >>>>> http://pastebin.com/VbgCXwc3
> >>>>> It shows clearly that it is in a tight loop polling and finding
> >>>>> nothing to process. As I had stated earlier, there is no youtube
> >>>>> video playing at all. It seems once you play any browser based
> >>>>> flash video, pulseaudio will continue to run even after you kill the
> >>>>> tab where it was playing, and chew up 40% of cpu (at least, this
> >>>>> is on my laptop with the old athlon64 3700+ unicore cpu).
> >>>>> I do not know how much it consumes on much faster cpu's.
> >>>>>
> >>>>> Are there audio engineers on this list?
> >>>>> Is this the way to handle an audio stream by an audio daemon?
> >>>> I would like to add that this behavior is only evident when playing
> >>>> a flash video via the browser.
> >>>> But if I play a video via ffplayer, then after the end of the video,
> >>>> pulseaudio goes back to consuming almost 0% of cpu.
> >>>> So, is it possible that the flash plugin is not closing the audio
> >>>> file descriptor, so pulseaudio keeps polling and finding nothing?
> >>> Probably. Either way, the fact that there is a problem only after flash
> >>> playback indicates that flash and/or the browser are at fault here, not
> >>> pulseaudio.
> >>>
> >>> Best, :-)
> >>> Marko
> >> Thanks Marko -
> >> I will look into finding a way to ask
> >> adobe about it, since it is their plugin.
> >>
> > To add to this, I have simialr problems with pulseaudio. Everytime I start
> > my laptop and log in to KDE pulseaudio does not work properly. Playing
> > mp3 just gives no sound (using mplayer). Playing movies on youtube or
> > other sites gives no sound with the movie and the movie plays at very fast
> > speed.
> >
> > But when I just do a 'killall pulseaudio' from a Konsole session everything
> > suddenly starts to work. Automatiacally a new pulsseaduio process is started,
> > mp3 plays fine and web video play smoothly with sound!
> >
> > Hope this may help.
> >
> > -Marcel
> Before you kill pulseaudio, see what it is doing by
> issuing the command
> strace -p PIDofPulseaudioProcess | tee /tmp/pulseaudio.strace
> 
> You will probably find that it is stuck in an infinite loop poling
> a file descriptor and finding there is no data to read.
> 
> If that is the case, your problem is still related to what I have
> reported in this thread.

Initially pulseaudio does not hog the cpu. But I did see situations
in the past where pulseaudio casuses high cpu load after trying to
play audio/video (e.g. that is why I found out that the killall
got me a new pulseaudio proecess that 'solved' the problem).

I'll checkout strace later.

-Marcel 
-- 
     ======--------         Marcel J.E. Mol                MESA Consulting B.V.
    =======---------        ph. +31-(0)6-54724868          P.O. Box 112
    =======---------        marcel@xxxxxxx                 2630 AC  Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
 They couldn't think of a number,           Linux user 1148  --  counter.li.org
    so they gave me a name!  -- Rupert Hine  --  www.ruperthine.com
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux