Discovery wrote:Hi Rune Frost,
I'd like to try your changes however there are a few questions I'd like to ask first.
1. SOX Resampler Changes
You suggest changes to the active source in /etc/mpd.conf. I couldn't see any 'active source' in this file. It appears to specify outputs only. Can you clarify this please, perhaps with an extract of your file to show how the changes are entered?
2. Changes to /boot/bootcfg.txt
This filename doesn't exist in this subdirectory. I do recognise some of these values as present in /boot/cmdline.txt. Is this the file you mean?
3. Changes to /var/www/command/orion_optimize.sh
For your text starting * Common startup * it's unclear if your content replaces or appends to the existing content in this file. Please explain.
For the second text panel, starting 'ifconfig eth0 mtu 9000', does this also go in orion_optimize.sh? If so, at the end of the file?
Thanks in advance for your clarifications.
Hi Discovery.
1. Here is the bottom part of my mpd.conf: Notice that one of the output "devices" has a line : enabled "yes". That is the active output.
- Code: Select all
audio_output {
name "bcm2835 ALSA_1"
type "alsa"
device "hw:1,0"
dsd_usb "yes"
auto_resample "no"
auto_format "no"
}
audio_output {
name "USB Audio DAC"
type "alsa"
device "hw:0,0"
dsd_usb "yes"
auto_resample "no"
auto_format "no"
format "192000:16:2"
samplerate_converter "soxr very high"
enabled "yes"
}
audio_output {
name "bcm2835 ALSA_2"
type "alsa"
device "hw:1,0"
dsd_usb "yes"
auto_resample "no"
auto_format "no"
Please remember that it is not always better to upscale. it depends on your DAC
2. You are quite right.. It is indeed cmdline.txt that must be changed.
3. Yes all the changes go into Orion_optimize.
This is my complete #common startup# section :
- Code: Select all
##################
# common startup #
##################
#if [ "$PID" != null ]; then
#echo "Set priority for: cifsd"
#renice -20 $PID
#fi
cifsprio pid=$(pidof cifsd)
echo "Set normal priority for: rune_SY_wrk"
renice 20 $(pgrep rune_SY_wrk)
echo "Set normal priority for: rune_PL_wrk"
renice 20 $(pgrep rune_PL_wrk)
echo "Set normal priority for: smbd"
renice 19 $(pidof smbd)
echo "Set normal priority for: nmbd"
renice 19 $(pidof nmbd)
#runeFrost
renice -10 -p 3
renice -10 -p 12
renice -10 -p 16
renice -10 -p 20
and the second change goes into an existing kernel optimization setting. I will recommend to put into the section for Orion_V2 profile. It is called MOD3 in the file
Here is my complete section for Orion_V2.
- Code: Select all
# mod3
if [ "$1" == "OrionV2" ]; then
ifconfig eth0 mtu 9000
ifconfig wlan0 mtu 9000
ifconfig eth0 txqueuelen 4000
ifconfig wlan0 txqueuelen 4000
echo 0 > /proc/sys/vm/swappiness
modKschedLatency hw=$2 s01=120000 s02=2000000 s03=2000000 s04=2000000 s05=2000000 s06=2000000 s07=2000000 s08=2000000 s09=2000000 s10=2000000 u01=2 u02=2 u03=2 u04=2 u05=2 u06=2 u07=2 u08=2 u09=2 u10=2
#runeFrost
echo -n performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo -n performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo -n performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo 1000000 > /proc/sys/kernel/sched_latency_ns
echo 100000 > /proc/sys/kernel/sched_min_granularity_ns
echo 25000 > /proc/sys/kernel/sched_wakeup_granularity_ns
echo 1 > /proc/sys/kernel/hung_task_check_count
echo 20 > /proc/sys/vm/stat_interval
echo -1 > /proc/sys/kernel/sched_rt_runtime_us
echo 5 > /proc/sys/vm/dirty_background_ratio
sleep 2
mpdprio_nice
echo "(OrionV2) sound signature profile"
fi
Please remember to activate the Orion_V2 kernel profile under the settings page.
Here is a link to how to isolate a single core :
http://www.runeaudio.com/forum/the-new-4-core-raspberry-pi-t862-40.htmland this is how to enable nightly builds:
http://www.runeaudio.com/documentation/troubleshooting/updating/As mentioned before.. The nightly builds has to be enabled and updated to enable the kernel optimizations.
I hope this clarifies it a bit
..Im not used to write "guides" and especially not in English
Kind regards,
Rune Frost