[arch-proaudio] 'proaudio-settings' package

bill-auger bill-auger at peers.community
Tue Jul 31 05:44:32 UTC 2018


aside from the new 'realtime' package, i would like to propose an audio-specific optimizations package of the sort that other av-centric distros commonly have - a package that contains goodies such as the 'realTimeConfigQuickScan' and 'rtirq' scripts that will inform the user how best to optimize their hardware IRQ and PCI latency and such; and other suggestions from the linuxaudio wiki[1] that can be automated, such as selectively disabling and re-enabling unnecessary services (screensaver, printing, *ehem* pulse), a .jackdrc with smaller buffers than the default config, etc

i did a side-by-side comparison with the analogous proaudio-settings optimization packages from each of parabola, kxstudio, and ubuntustudio - they are all nearly identical in what they accomplish; but AFAIK currently arch does not have an analogous package - here are some examples of what they do:

--------

using 'parabola-proaudio-settings'[2] as a reference:

# custom kernel parameters to sysctl.d folder
/etc/sysctl.d/99-sysctl.conf
  # By default, swap frequency defined by "swappiness" is set to 60. By reducing this number to 10, the system will wait much longer before trying to write to disk
  vm.swappiness = 10

  # inotify watches for changes to files and reports them to applications requesting this information. When working with lots of audio data, a lot of watches will need to be kept track of, so they will need to be increased.
  fs.inotify.max_user_watches = 524288

--------

# ensure the ALSA MIDI driver is loaded
/etc/modules-load.d//alsamidi.conf
  # If you want to use any MIDI hardware you need to ensure the ALSA MIDI driver is loaded
  snd_seq_midi

--------

# recommended initial settings for jack
/etc/jackdrc
  /usr/bin/jackd -P89 -t2000 -dalsa -dhw:0 -r44100 -p256 -n2 -Xseq

--------

# systemd service
# increase the highest requested RTC interrupt frequency (default is 64 Hz)
/etc/systemd/system/parabola-proaudio-settings.service
/etc/parabola-proaudio-settings.sh
  #!/bin/sh

  echo 2048 > /sys/class/rtc/rtc0/max_user_freq
  echo 2048 > /proc/sys/dev/hpet/max-user-freq
  cpupower frequency-set -g performance
  echo noop > /sys/block/sda/queue/scheduler

--------

# extra virtual midi ports
/etc/modprobe.d/snd-seq-dummy_16.conf
  #Creates extra virtual midi ports
  options snd-seq-dummy ports=8

--------

kxstudio 'kxstudio-default-settings'[3] has the following also:
/etc/sysctl.d/10-kxstudio-sysctl-rules.conf
  dev.hpet.max-user-freq = 2048

--------

ubuntustudio 'ubuntustudio-default-settings'[4] suggests that 3072 is a better value for dev.hpet.max-user-freq (although they have it commented out)
#dev.hpet.max-user-freq=3072

--------

both kxstudio and ubuntustudio have the following also (this is the only concern that is specified in the new 'realtime' package):
/lib/udev/rules.d/99-kxstudio-udev.rules
/lib/udev/rules.d/40-timer-permissions.rules
  KERNEL=="rtc0", GROUP="audio"
  KERNEL=="hpet", GROUP="audio"

--------


[1]: https://wiki.linuxaudio.org/wiki/system_configuration
[2]: https://git.parabola.nu/abslibre.git/tree/pcr/parabola-proaudio-settings?id=118a4df3e9af77664a701624e862ad8055fda98b
[3]: https://github.com/KXStudio/KXStudio/tree/master/default-settings
[4]: https://git.launchpad.net/ubuntustudio-default-settings/tree/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-proaudio/attachments/20180731/a0145bcf/attachment.sig>


More information about the arch-proaudio mailing list