MPD: Fix sudden high cpu usage
May 6, 2008
Well, I have not actually posted that I have tried and installed MPD yet, but I found a bug. Suddenly the cpu usage jumps form around 2-5 % upto 25-30%! This is totally unacceptable!
Bug-report had already been filed, with a proposed tweak. I confirmed the bug, and that the tweak apparently works.
Tweak – fix sudden high cpu usage:
What you do, is add to /etc/mpd.conf
audio_output {
type “alsa”
name “My ALSA Device”
device “hw:0,0″ # optional
format “44100:16:2″ # optional
}audio_output_format “44100:16:2″
This worked for me.
October 18, 2008 at 18:36
format “44100:16:2″ # ~30% CPU
format “48000:16:2″ # ~10% CPU
downgrading mpd (debian) 0.13.2-1 -> 0.12.1-1.1: 0.0%-1.9% CPU.
April 28, 2009 at 20:39
https://bugs.launchpad.net/ubuntu/+source/mpd/+bug/368121
Something horrible happened to MPD CPU usage in recent Debian/Ubuntu, and 44.1->48 conversion isn’t the whole answer.