MantisBT - MPD
View Issue Details
0001661MPDpublic2008-03-16 11:152008-10-25 12:39
hungerburg 
shank 
normaltweakalways
closednot fixable 
 
 
0001661: cpu usage on sample rate conversion
What happened: I play sauerbraten, listen to music all the while, suddenly the game gets jerky, top shows mpd using 30% cpu on a 1.5GHz machine. Why: the track currently playing is encoded 64bit 22kHz.

TWEAK: set a format on the audio device! Possibly mpd then does the conversion instead of alsa lib?

audio_output {
        type "alsa"
        format 44100:16:2
}
the mpd user does not have an .asoundrc. linux kernel is 2.6.24. the system is a recent debian unstable. selecting a specific rate converter does not make a difference.
No tags attached.
Issue History
2008-03-16 11:15hungerburgNew Issue
2008-03-16 11:15hungerburgStatusnew => assigned
2008-03-16 11:15hungerburgAssigned To => shank
2008-05-06 12:36firmitNote Added: 0001921
2008-05-06 13:10firmitIssue Monitored: firmit
2008-10-15 04:22cirrusStatusassigned => resolved
2008-10-15 04:22cirrusResolutionopen => not fixable
2008-10-15 04:22cirrusNote Added: 0002155
2008-10-25 12:39Avuton OlrichStatusresolved => closed

Notes
(0001921)
firmit   
2008-05-06 12:36   
I can confirm the jump in cpu usage. I can easily reproduce this by skipping back and forward in the playlist. (mpd has the same cpu usage, using either mpc and sonata when reproducing). Variable bitrate on the file, but also happens on constant bit-rated files.

Normally the daemons is about 3-4 MB - but suddenly (after song-shift) the cpu usage can go as high as 30% on my 1.8 GHz.
(0002155)
cirrus   
2008-10-15 04:22   
see http://mpd.wikia.com/wiki/Tuning [^]