Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:system_configuration [2023/10/15 13:17] – [TODO] autostatic | wiki:system_configuration [2025/04/13 18:42] (current) – [rtcqs] autostatic | ||
---|---|---|---|
Line 12: | Line 12: | ||
After adjusting your system using the recommendations of [[system_configuration# | After adjusting your system using the recommendations of [[system_configuration# | ||
+ | |||
+ | This wiki also contains a manual on installing a Linux audio system here: [[wiki: | ||
==== Preliminary ==== | ==== Preliminary ==== | ||
Line 73: | Line 75: | ||
=== Disabling Spectre and Meltdown mitigations === | === Disabling Spectre and Meltdown mitigations === | ||
- | :!: Warning: | + | :!: Warning: |
To work around the Spectre and Meltdown vulnerabilities several mitigations were built into the kernel. These mitigations can have a negative impact on the performance of your machine. To disable those mitigations and get the most out of your CPU's again you can add the following kernel parameter to your Grub configuration, | To work around the Spectre and Meltdown vulnerabilities several mitigations were built into the kernel. These mitigations can have a negative impact on the performance of your machine. To disable those mitigations and get the most out of your CPU's again you can add the following kernel parameter to your Grub configuration, | ||
Line 121: | Line 123: | ||
You should check if the following daemons, services or processes are running, and if so, consider stopping them and/or resort to alternatives: | You should check if the following daemons, services or processes are running, and if so, consider stopping them and/or resort to alternatives: | ||
- | * CPU frequency scaling | + | * CPU frequency scaling that scales |
* Desktop Environments (DE): especially on less powerful machines it is recommended to use a lighter DE than Gnome, KDE or Unity. Possible alternatives include LXDE, XFCE or IceWM. Another option is to only use a lightweight Window Manager (WM) like Openbox or Fluxbox. | * Desktop Environments (DE): especially on less powerful machines it is recommended to use a lighter DE than Gnome, KDE or Unity. Possible alternatives include LXDE, XFCE or IceWM. Another option is to only use a lightweight Window Manager (WM) like Openbox or Fluxbox. | ||
* Compositing: | * Compositing: | ||
Line 214: | Line 216: | ||
The modules and processes differ of course on a per machine basis so first figure out which modules are loaded with '' | The modules and processes differ of course on a per machine basis so first figure out which modules are loaded with '' | ||
+ | ==== Simultaneous Multithreading ==== | ||
+ | Simultaneous Multithreading (SMT) or hyper-threading can cause spikes in DSP load at higher DSP loads. In such cases it might be beneficial to disable SMT. This can be done by setting the SMT '' | ||
+ | |||
+ | echo off | sudo tee / | ||
+ | | ||
+ | See also https:// | ||
+ | |||
+ | More information on SMT/ | ||
==== Solve IRQ conflicts by unbinding devices ==== | ==== Solve IRQ conflicts by unbinding devices ==== | ||
Line 303: | Line 313: | ||
=== ext3/ext4 tuning options === | === ext3/ext4 tuning options === | ||
+ | |||
+ | Tuning shouldn' | ||
== noatime == | == noatime == | ||
Line 364: | Line 376: | ||
==== audio group ==== | ==== audio group ==== | ||
- | It is generally good practice to have an '' | + | It is generally good practice to have an '' |
+ | sudo usermod -a -G audio < | ||
+ | |||
+ | Where ''< | ||
+ | |||
+ | Be careful when adding an '' | ||
==== Timers ==== | ==== Timers ==== | ||
Line 376: | Line 393: | ||
$ ps axHo user, | $ ps axHo user, | ||
- | $ ps -eLo pid, | + | $ ps -eLo user,pid, |
Or if you have [[system_configuration# | Or if you have [[system_configuration# | ||
Line 538: | Line 555: | ||
When using FireWire audio interfaces it is generally advised to use a real-time kernel. Of course this is not necessary, there are also users reporting success with generic kernels, but when you have trouble getting your system stable regarding xruns one of the first things besides installing [[system_configuration# | When using FireWire audio interfaces it is generally advised to use a real-time kernel. Of course this is not necessary, there are also users reporting success with generic kernels, but when you have trouble getting your system stable regarding xruns one of the first things besides installing [[system_configuration# | ||
+ | FireWire devices can be used with FFADO or ALSA, if supported. | ||
- | ==== JuJu FireWire stack ==== | ||
- | As of kernel 2.6.37 the legacy FireWire stack has been removed from the kernel sources in favor of the [[https:// | ||
- | To use JACK with your FireWire device(s), set the driver to ' | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 553: | Line 568: | ||
The [[https:// | The [[https:// | ||
- | rtcqs - version 0.5.0 | + | rtcqs - version 0.6.6 |
| | ||
Root User | Root User | ||
Line 559: | Line 574: | ||
[ OK ] Not running as root. | [ OK ] Not running as root. | ||
| | ||
- | | + | Group Limits |
- | =========== | + | |
- | [ OK ] User music is in the audio group. | + | [ OK ] User music is member of a group that has sufficient rtprio (95) and memlock (unlimited) limits set. |
| | ||
CPU Frequency Scaling | CPU Frequency Scaling | ||
===================== | ===================== | ||
- | [ OK ] The scaling governor of all CPU' | + | [ OK ] The scaling governor of all CPUs is set to performance. |
+ | |||
+ | Simultaneous Multithreading | ||
+ | =========================== | ||
+ | [ OK ] Simultaneous Multithreading (SMT, also called hyper-threading) is disabled. | ||
| | ||
Kernel Configuration | Kernel Configuration | ||
Line 581: | Line 600: | ||
Preempt RT | Preempt RT | ||
========== | ========== | ||
- | [ OK ] Kernel | + | [ OK ] Kernel |
| | ||
Spectre/ | Spectre/ | ||
Line 593: | Line 612: | ||
Swappiness | Swappiness | ||
========== | ========== | ||
- | [ OK ] Swappiness | + | [ OK ] Your system |
| | ||
Filesystems | Filesystems | ||
=========== | =========== | ||
- | [ OK ] The following mounts can be used for audio purposes: /, /mnt/data | + | [ OK ] The following mounts can be used for audio purposes: / |
- | [ WARNING ] The following mounts should be avoided for audio purposes: / | + | |
| | ||
IRQs | IRQs | ||
==== | ==== | ||
- | [ OK ] USB port ehci_hcd: | + | [ OK ] USB port xhci_hcd |
- | | + | |
- | USB port xhci_hcd with IRQ 25 does not share its IRQ. | + | |
- | Soundcard snd_hda_intel: | + | |
+ | [ OK ] USB port xhci_hcd with IRQ 49 does not share its IRQ. | ||
+ | [ OK ] USB port xhci_hcd | ||
| | ||
Power Management | Power Management | ||
================ | ================ | ||
- | [ OK ] Power management can be controlled from user space. This enables | + | [ OK ] Power management can be controlled from user space. This enables |
Discuss this script at the [[https:// | Discuss this script at the [[https:// |