My MoOde Sound Tweaks - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: Audiophile (https://moodeaudio.org/forum/forumdisplay.php?fid=32) +--- Forum: Sound quality (https://moodeaudio.org/forum/forumdisplay.php?fid=34) +--- Thread: My MoOde Sound Tweaks (/showthread.php?tid=749) |
RE: My MoOde Sound Tweaks - mactolinux - 12-10-2018 Just a note: #Reduce MPD and OS latency chrt -f -p 81 $(pidof mpd) taskset -c -p 1 $(pidof mpd) These strings doesn't work on startup, until you set pid of MPD correctly. RE: My MoOde Sound Tweaks - TheOldPresbyope - 12-10-2018 (12-10-2018, 04:14 PM)mactolinux Wrote: Just a note: You don't "set pid", at least not without an awful low-level hack that I won't mention. The system assigns the pid (process id) to mpd when it starts, after which this tweak could be applied. If mpd dies for some reason and is restarted by the watchdog, the assigned pid likely will be different, requiring the tweak to be reapplied. Regards, Kent RE: My MoOde Sound Tweaks - mactolinux - 12-10-2018 Sure, I meant set pid in the bash. Which you should get before it run. Currently the string does nothing. RE: My MoOde Sound Tweaks - Edward - 12-10-2018 (12-10-2018, 09:58 PM)mactolinux Wrote: Sure, I meant set pid in the bash. Which you should get before it run. Currently the string does nothing. Very interesting....when I run the command via command line with a sudo in front it works without a hitch. Before MPD process MPD command After command CPU affinity You are saying this does not work for you? That sucks. Don't know why it doesn't work for you, I've been using it for probably over 10 years ie since before the Squeezebox Touch was out, strange. RE: My MoOde Sound Tweaks - Edward - 12-11-2018 (12-10-2018, 04:14 PM)mactolinux Wrote: Just a note: Also to get them to work on "Start up" just put the path to the .sh file in the rc.local file located in /etc Change the priority to 755 via sudo chmod 755 ****.sh and done. Can you copy/paste a screen shot when you try the command via command line? RE: My MoOde Sound Tweaks - mactolinux - 12-11-2018 Simple and look obvious: when you run it manually AFTER mpd has started it’s okay. But you set up this script into startup sequence. It doesn’t run these strings from there - because mpd has not started yet. you may try and will see that mpd still has initial attributes. That’s why those setting were mentioned in mpd config file before, this apply settings on every launch of mpd. instead of bash. RE: My MoOde Sound Tweaks - mactolinux - 12-11-2018 nano /lib/systemd/system/mpd.service [Service] # Real-time / Low latency params # ps -e -o class,rtprio,pri,nice,cmd # for real-time scheduling policies the "nice" param is ignored and the pri column is not relevant ExecStart=/usr/bin/taskset -c 3 /usr/local/bin/mpd --no-daemon $MPDCONF Restart=always # I use core 3 here, it was isolated in cmdline # Launch params EnvironmentFile=/etc/default/mpd #ExecStart=/usr/local/bin/mpd --no-daemon $MPDCONF #CPUSchedulingPolicy=other CPUSchedulingPolicy=fifo #CPUSchedulingPriority=43 CPUSchedulingPriority=70 Nice=-18 RE: My MoOde Sound Tweaks - mactolinux - 12-11-2018 Could you please try to play out 192/24 with FIFO setting on mpd? RE: My MoOde Sound Tweaks - Edward - 12-11-2018 (12-11-2018, 05:28 AM)mactolinux Wrote: Simple and look obvious: when you run it manually AFTER mpd has started it’s okay. Easy fix, just tell it to sleep for a bit sleep 25 ; sudo chrt -f -p 81 $(pidof mpd) sleep 35 ; taskset -c -p 1 $(pidof mpd) RE: My MoOde Sound Tweaks - Edward - 12-11-2018 (12-11-2018, 05:44 AM)mactolinux Wrote: Could you please try to play out 192/24 with FIFO setting on mpd? Sure, works no problem....my Dac supports 32/384, that works too |