by s.k. » 22 Jan 2017, 14:06
Hi
I would to tweaking the audio performance of my RPI2 according to the suggestions made on the topic.
So I intent to:
• To isolate cpu core No 3 (isolcpus=3) and assign it to mpd though mpd.service (taskset -c 3 )
• Modify the cmdline by adding :“dwc_otg.nak_holdoff_enable=1”, “dwc_otg.fiq_fix_enable=0” and “dwc_otg.microframe_schedule=1” (everything else is already there)
• Modify the config by adding Overclocking options for Pi2 :
force_turbo=1
boot_delay=1
arm_freq=1000
sdram_freq=500
core_freq=250
over_voltage=2
temp_limit=80
gpu_mem=16
hdmi_blanking=2
• Modify the “orion_optimize.sh” by adding in “common startup” the :
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)
renice -10 -p 3
renice -10 -p 12
renice -10 -p 16
renice -10 -p 20
AND in OrionV2 the :
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
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
Does the above make sense ?
Is there something missing or need modification?
My Raspberry Pi2 is connected with a HiFiBerry Digi+.
Do I need to use SOXR tweak ?
Thanks in advance!
Regards
Stavros
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio