Your message dated Mon, 5 Jan 2015 01:45:29 +0100
with message-id <[email protected]>
and subject line Re: mpd: high cpu usage when using ALSA output
has caused the Debian Bug report #491572,
regarding mpd: high cpu usage when using ALSA output
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
491572: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491572
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mpd
Version: 0.13.2-1
Severity: normal
Hi!
Sometimes, mpd wastes 25% CPU on my Core 2 Duo. This seems a known bug
due to libao. There is a workaround on MPD wiki:
http://mpd.wikia.com/wiki/Troubleshooting_Libao
However, this just reduces CPU usage to 5% on my machine. Another work
around is to pause/unpause. The CPU will stay at 0 for one hour or more.
Other refs:
http://bugs.archlinux.org/task/10203
http://musicpd.org/mantis/view.php?id=485
In the second link, upstream says this is a problem in libao. I know
that ALSA can suck but other players do not seem to use as much as CPU
than mpd does.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
Versions of packages mpd depends on:
ii adduser 3.108 add and remove users and groups
ii libao2 0.8.8-4 Cross Platform Audio Output Librar
ii libasound2 1.0.16-2 ALSA library
ii libaudiofile0 0.2.6-7 Open-source version of SGI's audio
ii libavahi-client3 0.6.23-2 Avahi client library
ii libavahi-common3 0.6.23-2 Avahi common library
ii libc6 2.7-12 GNU C Library: Shared libraries
ii libfaad0 2.6.1-3 freeware Advanced Audio Decoder -
ii libflac8 1.2.1-1.2 Free Lossless Audio Codec - runtim
ii libid3tag0 0.15.1b-10 ID3 tag reading library from the M
ii libjack0 0.109.2-3 JACK Audio Connection Kit (librari
ii libmad0 0.15.1b-3 MPEG audio decoder library
ii libmikmod2 3.1.11-a-6 A portable sound library
ii libmpcdec3 1.2.2-1 Musepack (MPC) format library
ii libogg0 1.1.3-4 Ogg Bitstream Library
ii libpulse0 0.9.10-2 PulseAudio client libraries
ii libsamplerate0 0.1.4-1 audio rate conversion library
ii libshout3 2.2.2-5 MP3/Ogg Vorbis broadcast streaming
ii libvorbis0a 1.2.0.dfsg-3.1 The Vorbis General Audio Compressi
ii libvorbisenc2 1.2.0.dfsg-3.1 The Vorbis General Audio Compressi
ii libvorbisfile3 1.2.0.dfsg-3.1 The Vorbis General Audio Compressi
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
mpd recommends no packages.
Versions of packages mpd suggests:
ii ario [mpd-client] 1.1-1 GTK+ client for the Music Player D
pn icecast2 <none> (no description available)
ii mpc [mpd-client] 0.12.1-1 A command-line tool to interface M
pn pulseaudio <none> (no description available)
-- no debconf information
--- End Message ---
--- Begin Message ---
Forwarded 491572 http://musicpd.org/mantis/view.php?id=485
thanks
Hi Vincent,
the upstream bug you referenced says:
in short: it's due to different resampling algorithms in MPD, MPD
with libsamplerate, ALSA with dmix, ALSA without dmix, ALSA-OSS
emulation and OSS. The algorithms vary in CPU usage and quality. If
you want good quality and good performance, buy a sound card which
does resampling in hardware (like all cards used to do before cheap
on-board chips went mainstream).
and points to http://mpd.wikia.com/wiki/Tuning for an explanation of
sample rate conversion, dmix and how to configure that.
As those issues are beyond mpd (and in part, unavoidable), I'm doing
like the Arch people did six years ago with the bug you also referenced,
and close #491572.
Florian
--- End Message ---