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.

2 Responses to “MPD: Fix sudden high cpu usage”

  1. Hans Muster Says:

    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.

  2. mathew Says:

    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.


Leave a Reply