10-15-2018, 02:49 PM
OK, I really didn't know how it works and IF I needed it... thank you!
Thank you for your donation!
System optimizations?
|
10-15-2018, 02:49 PM
OK, I really didn't know how it works and IF I needed it... thank you!
10-28-2018, 12:00 PM
(09-25-2018, 05:23 PM)hifix Wrote:No I didn't but as said I am using 3.8.4 (not 4.x) on a RPI 2B(09-24-2018, 12:54 PM)Vhond Wrote:(08-20-2018, 02:45 PM)hifix Wrote:(06-06-2018, 12:53 PM)moodenigo Wrote: The only tweaks I have applied are the following:
11-04-2018, 11:36 PM
Enjoy some new out-of-the-box MPD optimizations coming with moOde 4.4 courtesy of the newly released MPD 0.21 series :-) Kudos to Max Kellermann for his wonderful software engineering.
Code: Authenticated to rp3 ([192.168.1.157]:22).
11-06-2018, 03:31 PM
Intrigue! Awaiting for it... When do you plan to go?
11-07-2018, 02:10 PM
(11-04-2018, 11:36 PM)Tim Curtis Wrote: Enjoy some new out-of-the-box MPD optimizations coming with moOde 4.4 courtesy of the newly released MPD 0.21 series :-) Kudos to Max Kellermann for his wonderful software engineering. Woot! Real-time scheduling "for some threads that benefit from it" [a quote from the MPD manual], in this case the rtio and output threads. There's an important note about this in the MPD manual: Quote:Note Regards, Kent
11-09-2018, 10:00 PM
The other advantage of rt (or isolating cores as mentioned earlier in the thread, which accomplishes much the same thing) is it reduces the likelihood that other processes will interrupt the audio rendering thread which could increase jitter (a slightly time-misaligned audio frame). That doesn’t usually manifest as missing samples but as the music not sounding as accurate as it otherwise would (and lack of accuracy is usually expressed as it not sounding natural). MPD moving to some processes being rt is a welcome move and should have moode sounding better than ever even without config file hacking.
11-10-2018, 02:07 AM
Here's a bit of analysis :-)
Try the commands below to get a sense of the volume of context switches happening for just the MPD process and its associated threads. 1) Get the process (PID) and thread (TID) id's for MPD ps H -q `pidof -s mpd` -o 'pid,tid,cls,rtprio,comm' PID TID CLS RTPRIO COMMAND 961 961 TS - mpd 961 965 TS - io 961 966 FF 50 rtio 961 1222 TS - player 961 1223 TS - decoder:flac 961 1248 FF 50 output:ALSA def 2) Monitor the number of CPU context switches by PID/TID from above watch -n.5 grep ctxt /proc/961/status watch -n.5 grep ctxt /proc/965/status watch -n.5 grep ctxt /proc/966/status watch -n.5 grep ctxt /proc/1222/status watch -n.5 grep ctxt /proc/1223/status watch -n.5 grep ctxt /proc/1248/status What you will see in the command output is the number of voluntary vs involuntary context switches. Here is what that means. A context switch is voluntary if the process or thread gives up the CPU because it has nothing else to do for example while it is waiting for something external to happen like an I-O interrupt from the audio device requesting more data. A context switch is involuntary if the process or task would like to continue doing work but the OS decides it's time to switch to some other process or thread. In my example above the MPD process (961) has no CPU context switches shortly after music starts playing. The output:ALSA def thread (1248) will continuously context switch but all are voluntary which suggests its simply waiting for hardware interrupts from the audio device requesting more data, as opposed to being preempted by some other thread or giving up its CPU time slice. You should see something like below for the output:ALSA def thread where voluntary_ctxt_switches constantly increases while nonvoluntary_ctxt_switches remains 0. Every 0.5s: grep ctxt /proc/1248/status rp3: Fri Nov 9 20:44:32 2018 voluntary_ctxt_switches: 505754 nonvoluntary_ctxt_switches: 0 -Tim
11-15-2018, 03:12 PM
(10-08-2018, 04:46 PM)mactolinux Wrote: Mine, as a combination from different sources. Please note, I isolated one core for MPD, but didn't try more. My apologies for sounding a little dim, can the above changes be made by using Putty to SSH to the RPi? Kind regards, Mark
11-15-2018, 03:13 PM
ssh via terminal on Mac
|
« Next Oldest | Next Newest »
|