Hi,<br>Thanks for the reply. I can confirm terminating firefox brought CPU usage of pulseaudio down to 0% in top. Also, playing an mp3 through amarok, brought CPU usage back to 6%. So it seems any playback brings the CPU usage up by that much!
<br>My sound card is Intel ICH6 chipset ALC861. Is resampling required ? Is it possible to play at the card's native sample rate to gain back the CPU cycles, since I almost always have the browser open with Flash in it :/
<br><br>Regards<br><br><div class="gmail_quote">On Nov 16, 2007 9:21 PM, Lennart Poettering <<a href="mailto:mzerqung@0pointer.de">mzerqung@0pointer.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 16.11.07 20:52, Ahmed Kamal (<a href="mailto:email.ahmedkamal@googlemail.com">email.ahmedkamal@googlemail.com</a>) wrote:<br><br>Hi!<br><div class="Ih2E3d"><br>> Hi, I'm enjoying the wonders of pulse audio. However, on my centrino
<br></div>> 2.0Ghzlaptop, when idle, almost always pulse audio is the most CPU<br><div class="Ih2E3d">> intensive task running, even when I am not playing any audio! It<br>> consumes around 6% of CPU competing with firefox! This seems a bit
<br>> too much to me ?  Also, any idea why the process name appears in top<br>> as "exe" rather than pulseaudio!  Regards<br><br></div>The process name issue has been fixed already, but I haven't uploaded
<br>a new version of PA into Rawhide yet. Also note that this issue is<br>alrady listed in rhbz as #345761.<br><br>PA closes all devices when idle for more than 1s. Then, CPU<br>consumption goes to 0%.<br><br>Now, there is a certain piece of software which happens to be
<br>horrendously broken and is called "Macromedia Flash". I would guess<br>that you are using it, aren't you? Now, Flash never closes any<br>playback streams until you terminate your browser. Due to that PA<br>
never considers the device idle and thus never closes the audio device<br>and continues to write audio data to it.<br><br>Due the closed source nature of Flash this issue is only fixable with<br>exceptionally ugly hacks in PA or 
libflashsupport.so, which I am not<br>willing to do.<br><br>If PA consumes 6% CPU this is probably because resampling is needed to<br>output audio on your device. Resampling is usually the only CPU<br>intensive code that is run in PA. While traditionally resampling is
<br>done in the various media players if you use PA it is done in<br>PA. Hence the CPU load will appear as if it was PA's fault, but we<br>just moved the resampling work from the app to PA, that's all.<br><br>Please terminate your browser, and pause/stop all media players and check
<br>the CPU load then.<br><br>(Some codepaths in PA are not optimized as much as they could of<br>course, but from the little information you posted I guessed what I<br>wrote above. If you feel that my guess is not correct, then please
<br>open a bug in rhbz)<br><br>Thanks,<br><br>Lennart<br><br>--<br>Lennart Poettering                        Red Hat, Inc.<br>lennart [at] poettering [dot] net         ICQ# 11060553<br><a href="http://0pointer.net/lennart/" target="_blank">
http://0pointer.net/lennart/</a>           GnuPG 0x1A015CC4<br><font color="#888888"><br>--<br>fedora-devel-list mailing list<br><a href="mailto:fedora-devel-list@redhat.com">fedora-devel-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-devel-list" target="_blank">
https://www.redhat.com/mailman/listinfo/fedora-devel-list</a><br></font></blockquote></div><br>