10-08-2018, 04:46 PM
(This post was last modified: 10-09-2018, 07:42 AM by mactolinux.)
Mine, as a combination from different sources. Please note, I isolated one core for MPD, but didn't try more.
I would say now the power quality is more important.
1.
sudo nano /boot/cmdline.txt
net.ifnames=0 console=serial0,115200 console=tty1 root=PARTUUID=4d3ee428-02 rootfstype=ext4 fsck.repair=yes rootwait dwc_otg.microframe_schedule=0 dwc_otg.nak_holdoff_enable=1 dwc_otg.fiq_fix_enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 elevator=noop isolcpus=3
2.
sudo nano /boot/config.txt
disable_splash=1
hdmi_drive=2
dtparam=i2c_arm=off
dtparam=i2s=off
dtparam=audio=on
#dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
start_x=0
max_usb_current=1
# memory options
gpu_mem=16
# Overclocking options
force_turbo=1
initial_turbo=60
avoid_pwm_pll=1
arm_freq=666
over_voltage=-6
gpu_freq=333
# sdram overclock
sdram_freq=333
sdram_schmoo=0x02000020
over_voltage_sdram_p=-5
over_voltage_sdram_i=-14
over_voltage_sdram_c=-6
disable_pvt=1
# HDMI disable
hdmi_blanking=2
3.
sudo 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
-------------- (note) At the very end of original script add # once at ExecStart:
# Launch params
EnvironmentFile=/etc/default/mpd
#ExecStart=/usr/local/bin/mpd --no-daemon $MPDCONF
#CPUSchedulingPolicy=other
CPUSchedulingPolicy=fifo
#CPUSchedulingPriority=43
CPUSchedulingPriority=70
Nice=-18
Updated: forgot core isolation line here, just added. Sorry.
I would say now the power quality is more important.
1.
sudo nano /boot/cmdline.txt
net.ifnames=0 console=serial0,115200 console=tty1 root=PARTUUID=4d3ee428-02 rootfstype=ext4 fsck.repair=yes rootwait dwc_otg.microframe_schedule=0 dwc_otg.nak_holdoff_enable=1 dwc_otg.fiq_fix_enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 elevator=noop isolcpus=3
2.
sudo nano /boot/config.txt
disable_splash=1
hdmi_drive=2
dtparam=i2c_arm=off
dtparam=i2s=off
dtparam=audio=on
#dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
start_x=0
max_usb_current=1
# memory options
gpu_mem=16
# Overclocking options
force_turbo=1
initial_turbo=60
avoid_pwm_pll=1
arm_freq=666
over_voltage=-6
gpu_freq=333
# sdram overclock
sdram_freq=333
sdram_schmoo=0x02000020
over_voltage_sdram_p=-5
over_voltage_sdram_i=-14
over_voltage_sdram_c=-6
disable_pvt=1
# HDMI disable
hdmi_blanking=2
3.
sudo 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
-------------- (note) At the very end of original script add # once at ExecStart:
# Launch params
EnvironmentFile=/etc/default/mpd
#ExecStart=/usr/local/bin/mpd --no-daemon $MPDCONF
#CPUSchedulingPolicy=other
CPUSchedulingPolicy=fifo
#CPUSchedulingPriority=43
CPUSchedulingPriority=70
Nice=-18
Updated: forgot core isolation line here, just added. Sorry.