Re: MPD's ReplayGain causing 66% of CPU spent in `system'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 14 Dec 2008 22:52:53 -0500
Stefan Monnier <monnier@xxxxxxxxxxxxxxxx> wrote:

> I use a WL-700gE home router as jukebox, running `mpd'.
> Until recently the systems worked fine, using around 20-30% of CPU to
> play my Ogg files.  But recently, it started to skip while playing those
> same files.  After some investigation it turned out that `mpd' now
> uses 98% of CPU, and that `opt' says more than 60% is spent in `sys'
> rather than in `user'.  Investigating further I discovered that the
> problem is triggered by enabling ReplayGain in mpd.conf.
> 
> I.e. `mpd's ReplayGain causes the kernel to spend more than 60% of CPU
> time doing some extra work, apparently doing some kind of software
> volume control in the ALSA code (maybe because it uses floating
> point operations whereas my CPU doesn't have an FPU?).
> 
> Is there some way I can fix this problem (other than turning off mpd's
> ReplayGain)?
> 
> 
>         Stefan
> 
> 


I do not think MPD uses ALSA as such, it's a network thing, isn't it ?

I tend to agree that FPU is needed to perform SW volume control, so if
your CPU doesn't have an FPU, it'll work hard using emulation.

Regards,
  Sergei.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux