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.
When I start my laptop, and login to kde pulseaudio seems to run fine
in blocked state apperantly wainting for something to do.
When I then start to play an mp3 file pulseaudio starts looping. See
attached pulseaudio_strace_loop.txt with a few seconds of traceoutput.
Then I kill pulsaudio after which it is restarted. Playing the same
file wokrs fine now. See pulseaudio_strace_ok.txt with again a
few seconds of strace output.
After that I logged out and verified from a tty session there was no
pulseaudio process running anymore. Logging in to kde again
gave me a looping pulseaudio directly from start...
Killing pulseadaudio again gives me e new one running fine.
Hope this helps a bit.
-Marcel