Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#10203 - mpd high cpu load (at random)

Attached to Project: Arch Linux
Opened by Maximilian Müller (kakTuZ) - Tuesday, 15 April 2008, 21:13 GMT
Last edited by Aaron Griffin (phrakture) - Tuesday, 09 December 2008, 00:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Damir Perisa (damir.perisa)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No


For the duration of one song, mpc produces high cpu load by chance. Up to 15% cpu utilization (on a dual core 2GHz system -> equals 30% for a single core).
Probability is about 10-20% for a hight cpu load. In the other cases mpd uses only few cpu power (<2%) or moderate 5-8%.
Independent of mp3 file. If the same song is started severeal times, some passes go smooth, while other have the hight cpu load.
Observed with 128kbit to 320kbit files.

Additional info:
* mpd 0.13.1-2
* (files are on an ntfs-3g mounted partition, but i don't think that thats the problem, becuase mplayer and totem behave normal)

Steps to reproduce:
skip to next song, occurs by chance
This task depends upon

Closed by  Aaron Griffin (phrakture)
Tuesday, 09 December 2008, 00:08 GMT
Reason for closing:  Deferred
Additional comments about closing:  Apparently this is ALSA specific. Not sure we can fix it
Comment by Ramses de Norre (Ramses_de_Norre) - Wednesday, 16 April 2008, 16:39 GMT Comment by J.R (nGerrit) - Friday, 18 April 2008, 21:29 GMT
i can confirm this bug. i have it on two (recently installed) machines. an athlon xp 2600+ and an thinkpad R 51.
mpd takes ~20-30% cpu

restarting solves this problem temporarily but after a while it is back
Comment by bob (puggers2) - Monday, 21 April 2008, 09:35 GMT
Just like to confirm this is a problem with ALSA.

MPD was using 30-40% of one core, but now i have changed to using OSS instead of ALSA it never goes above 1%.

Instructions to install OSS on arch are here:
Comment by henno (henno) - Friday, 23 May 2008, 11:39 GMT
temporary solutions in mpd.conf


driver_options "period_size=50000"
Comment by Erlend (qweac) - Tuesday, 03 June 2008, 20:08 GMT
I can also confirm this bug. The earlier mentioned temporary solution do not work for me.
Comment by Ramses de Norre (Ramses_de_Norre) - Tuesday, 03 June 2008, 20:16 GMT
The temporary solutions does not work here neither.
Comment by Gavin Bisesi (Daenyth) - Wednesday, 04 June 2008, 18:54 GMT
Still present in 3.2.033-2
Comment by Gavin Bisesi (Daenyth) - Sunday, 07 December 2008, 03:42 GMT
From my understanding, this issue is unavoidable as long as you use ALSA output. As such, I think there's no way Arch can fix it, so we should close this.