Comment 10 for bug 503174

Revision history for this message
Alistair Buxton (a-j-buxton) wrote : Re: PulseAudio ALSA plugin opens and closes the PulseAudio sink several times per second for no reason

It is extremely interesting that the buffer is so large on Lucid. When the buffer is 33791 and the playback is 44100 this causes nearly a second delay between audio being buffered and being played. With a 1048576 buffer that will be 23 seconds.

Also, while the underrunning may well be hardware dependent, PulseAudio closing and reopening the audio sink when a buffer underrun happens is not, and means that a program such as the example I posted can do a denial of service attack on Pulse just by intentionally underrunning the buffer repeatedly - which causes Pulse to eat 100% CPU opening and closing the sink.