Tweaking the audio performance Rpi3

Raspberry Pi related support

Tweaking the audio performance Rpi3

Postby Frost_dk » 05 Jan 2017, 23:22

Last edited by Frost_dk on 30 Jan 2017, 16:53, edited 4 times in total.
Frost_dk
 
Posts: 44
Joined: 23 Nov 2015, 20:39
Location: Horsens, Denmark

Re: Tweaking the audio performance Rpi3

Postby dynobot » 06 Jan 2017, 02:33

Good info thanks!

Since graphics is not a priority you might want to turn gpu_mem down to 16 ie gpu_mem=16.
User avatar
dynobot
 
Posts: 114
Joined: 19 May 2014, 15:04
Location: GA-USA

Re: Tweaking the audio performance Rpi3

Postby dynobot » 06 Jan 2017, 17:05

BTW there are a few more kernel adjustments that should/could be made that are not included with the Rune sound profiles.

Usually I pick one of the profiles and comment out everything then put my own kernel mods in place.

For example here I used ACX's profile and put my tweaks in place
# mod1
if [ "$1" == "ACX" ]; then
echo -n performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ifconfig eth0 mtu 9000
echo noop > /sys/block/mmcblk0/queue/scheduler
echo 0 > /proc/sys/vm/swappiness
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

I also increased the priority of the audio threads in the same file as well as putting MPD on its own core, under the Common Start up section.

renice 19 $(pidof nmbd)
taskset -c -p 1 $(pidof mpd)
renice -10 -p 3
renice -10 -p 12
renice -10 -p 16
renice -10 -p 20

Recently I've been looking at more 'hardware' tweaks
User avatar
dynobot
 
Posts: 114
Joined: 19 May 2014, 15:04
Location: GA-USA

Re: Tweaking the audio performance Rpi3

Postby Frost_dk » 06 Jan 2017, 18:05

Hi Dynobot.
Thanks a lot for your tweaks.. I will try them right away :)
Does the pidof nmbd do anything if im not using a samba share?
is it too much to ask for a explanation of the kernel optimizations you made? Just so I kan play with it myself.
Thanks in advance :D


Kind regards,
Rune Frost
Frost_dk
 
Posts: 44
Joined: 23 Nov 2015, 20:39
Location: Horsens, Denmark

Re: Tweaking the audio performance Rpi3

Postby dynobot » 06 Jan 2017, 18:47

Hi Frost,

Not sure what you mean by pidof nmbd....

But these kernel adjustments came from IBM, RedHat and others, over the years I would read Performance Tuning Guides by companies who used Linux for different purposes....usually single purpose machines like a RedBox for example.

Here is a link for RedHat as an exmple.
https://access.redhat.com/documentation ... ing_Guide/
User avatar
dynobot
 
Posts: 114
Joined: 19 May 2014, 15:04
Location: GA-USA

Re: Tweaking the audio performance Rpi3

Postby Frost_dk » 06 Jan 2017, 21:58

Last edited by Frost_dk on 09 Jan 2017, 10:23, edited 1 time in total.
Frost_dk
 
Posts: 44
Joined: 23 Nov 2015, 20:39
Location: Horsens, Denmark

Re: Tweaking the audio performance Rpi3

Postby fboe » 06 Jan 2017, 22:05

Hi Frost and Dynobot

Great tweaks you got. I'm really impressed how much improvement in sound you can make with these tweaks. I have tried them, and that's defently the way to go. The sound is fantastic :-)

And Dynobot, you where asking for hardware tweaks, and I have done some, and I have put them in the forum:
3xpsu, and reclocking the rpi with a serious clock from Newclassd.

I'm still a newbie in Linux, so I'm still learning, and hopefully I can come back with some Linux tweaks in the future :-)

Fboe
fboe
 
Posts: 27
Joined: 11 Mar 2016, 17:41
Location: Odense, Denmark

Re: Tweaking the audio performance Rpi3

Postby Discovery » 09 Jan 2017, 10:10

Discovery
 
Posts: 110
Joined: 06 May 2015, 08:22
Location: Cambridgeshire, UK

Re: Tweaking the audio performance Rpi3

Postby Frost_dk » 09 Jan 2017, 10:20

Hi Discovery.

I have modified my config files with Dynobots suggestions, so you should be able to copy the info in my last post :)

i have added the file paths in the post, so it is easier to import :)

Please let us know if you can notice an improvement?

Kind regards,

Rune Frost
Frost_dk
 
Posts: 44
Joined: 23 Nov 2015, 20:39
Location: Horsens, Denmark

Re: Tweaking the audio performance Rpi3

Postby s.k. » 09 Jan 2017, 11:28

Hi ,
Thanks for sharing !

Are those tweaks suitable for the raspberry 2 ?
If yes, is it possible to describe them in a more simple/detail (noobproof :shock: ) way ?

regards
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests