Posts: 41
Threads: 3
Joined: Oct 2018
Reputation:
1
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.
Posts: 41
Threads: 3
Joined: Oct 2018
Reputation:
1
12-10-2018, 09:58 PM
(This post was last modified: 12-10-2018, 09:58 PM by mactolinux.)
Sure, I meant set pid in the bash. Which you should get before it run. Currently the string does nothing.
Posts: 41
Threads: 3
Joined: Oct 2018
Reputation:
1
12-11-2018, 05:28 AM
(This post was last modified: 12-11-2018, 05:43 AM by mactolinux.)
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.
Posts: 41
Threads: 3
Joined: Oct 2018
Reputation:
1
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
Posts: 41
Threads: 3
Joined: Oct 2018
Reputation:
1
Could you please try to play out 192/24 with FIFO setting on mpd?