1 |
>> When I use the medium quality libsamplerate resampler with mpd, my CPU |
2 |
>> is around 15% and all is well. When I try to use the best quality |
3 |
>> resampler, the CPU stays around 99% and the sound frequently falls |
4 |
>> apart. Can I give mpd CPU priority? |
5 |
> |
6 |
> Yes, it's usually done via nice/renice commands: |
7 |
> |
8 |
> renice -n -10 -p `pgrep mpd` |
9 |
> |
10 |
> You can tune it's priority up to -20 (most real-time priority). |
11 |
> |
12 |
> I'd suggest looking at load-average it generates ("top" shows it, at the |
13 |
> top)) first. |
14 |
> After running mpd for 15 minutes or so, if any of the three (5/10/15) |
15 |
> will go above number of physical CPU cores you have (and that's |
16 |
> probably the case if you see full load at any given time), tuning it's |
17 |
> priority up will make the rest of the system extremely sluggish, since |
18 |
> mpd won't let any other process to execute and just doing "ls" may take |
19 |
> ages, not to mention whole X operation... |
20 |
|
21 |
Thanks Mike. I tried: |
22 |
|
23 |
renice -20 -p `pgrep mpd` |
24 |
|
25 |
but my Athlon 2.2Ghz still can't handle it for more than a few |
26 |
seconds. I don't have SMP enabled because of a bug in madwifi, and |
27 |
I'm hoping when I get that fixed I'll be able to run the best |
28 |
libsamplerate resampler. Any other ideas for making this work? |
29 |
|
30 |
- Grant |