View previous topic :: View next topic |
Author |
Message |
crocket Guru

Joined: 29 Apr 2017 Posts: 449
|
Posted: Wed Sep 11, 2019 12:35 pm Post subject: I realized some of gentoo's potential on Raspberry Pi 3 B+. |
|
|
1. I throttled "all" unnecessary writes by having tmpfs on specific locations in /etc/fstab.
Code: | UUID="F77B-87EC" /boot vfat noatime,noauto 1 2
tmpfs /tmp tmpfs mode=1777,noatime 0 0
tmpfs /var/tmp tmpfs mode=1777,noatime 0 0
tmpfs /var/log tmpfs mode=0755,noatime 0 0
tmpfs /var/cache tmpfs mode=0755,noatime 0 0
tmpfs /var/lib/dhcpcd tmpfs mode=0755,noatime 0 0
tmpfs /var/lib/ntp tmpfs mode=0755,uid=ntp,gid=ntp,noatime 0 0
tmpfs /var/lib/misc tmpfs mode=0755,noatime 0 0
tmpfs /var/lib/run tmpfs mode=0755,noatime 0 0
tmpfs /var/lib/syslog-ng tmpfs mode=0700,noatime 0 0
tmpfs /lib/rc/console tmpfs mode=0755,noatime 0 0
tmpfs /lib/rc/tmp tmpfs mode=0755,noatime 0 0
# /lib/rc/cache is going to be written during boot
# because /etc/init.d/localmount is executed
# after /lib/rc/cache is calculated.
# Fortunately, /lib/rc/cache is written
# only when /etc/init.d is modified.
# tmpfs /lib/rc/cache tmpfs mode=0755,noatime 0 0 |
2. Gentoo helps me customize kernel.
2-1. I tweaked kernel preemption on Raspberry Pi 3 B+ and my workstation to eliminate xruns from JACK audio connection kit.
Enabling PREEMPT and RT_GROUP_SCHED on Raspberry Pi 3 B+ and PREEMPT_RT_FULL on my workstation eliminates xruns.
This setup withstands heavy file system operations on ZFS without xruns.
2-2. I chose powersave CPU governor in order to keep Raspberry Pi cool and disable CPU frequency scaling which can cause xruns in JACK audio connection kit.
Conclusion: Gentoo helps you turn Raspberry Pi into an audio server with ZFS root file system. It also helps you eliminate unnecessary writes on microSD cards. |
|
Back to top |
|
 |
spork_kitty Tux's lil' helper

Joined: 05 Jul 2019 Posts: 124
|
Posted: Sat Sep 14, 2019 2:23 am Post subject: |
|
|
Noice.
You've backed all of this up somewhere, right? Sounds like a lot of work, would suck if you lost it. |
|
Back to top |
|
 |
crocket Guru

Joined: 29 Apr 2017 Posts: 449
|
Posted: Sat Sep 14, 2019 2:47 am Post subject: |
|
|
spork_kitty wrote: | Noice.
You've backed all of this up somewhere, right? Sounds like a lot of work, would suck if you lost it. |
It's all backed up. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|