Skip to content
Update after install System configuration authored by Projekt:Root's avatar Projekt:Root
## Table of contents # Table of contents
* [Addind user to Audio and realtime group](url) * [Addind user to Audio and realtime group](url)
* [Changing swappiness default value](url) * [Changing swappiness default value](url)
* [Increasing the maximum watches on files](url) * [Increasing the maximum watches on files](url)
...@@ -11,96 +11,77 @@ ...@@ -11,96 +11,77 @@
* [Check if noatime is set](url) * [Check if noatime is set](url)
* [Setting up PulseAudio autospawn](url) * [Setting up PulseAudio autospawn](url)
1. Addind user to Audio and realtime group: ## Addind user to Audio and realtime group:
With Manjaro it's easy, just open manjaro-settings-manager (menu > Settings) and go to User Accounts. With Manjaro it's easy, just open manjaro-settings-manager (menu > Settings) and go to User Accounts.
## Changing swappiness default value:
2. Changing swappiness default value:
In default swappiness is set to 60, to change this value create 99-sysctl.conf and paste this: In default swappiness is set to 60, to change this value create 99-sysctl.conf and paste this:
```
sudo nano /etc/sysctl.d/99-sysctl.conf sudo nano /etc/sysctl.d/99-sysctl.conf
vm.swappiness=10 vm.swappiness=10
```
You can also change cache pressure: You can also change cache pressure:
```
vm.vfs_cache_pressure=50 vm.vfs_cache_pressure=5https://wiki.archlinux.org/index.php/Swap#Swappiness0
```
> Cache Pressure:
Cache Pressure:
This variable controls the tendency of the kernel to reclaim the memory which is used for caching of VFS caches, versus pagecache and swap. Increasing this value increases the rate at which VFS caches are reclaimed. This variable controls the tendency of the kernel to reclaim the memory which is used for caching of VFS caches, versus pagecache and swap. Increasing this value increases the rate at which VFS caches are reclaimed.
It is difficult to know when this should be changed, other than by experimentation. The slabtop command (part of the package procps) shows top memory objects used by the kernel. The vfs caches are the "dentry" and the "*_inode_cache" objects. If these are consuming a large amount of memory in relation to pagecache, it may be worth trying to increase pressure. Could also help to reduce swapping. The default value is 100. It is difficult to know when this should be changed, other than by experimentation. The slabtop command (part of the package procps) shows top memory objects used by the kernel. The vfs caches are the "dentry" and the "*_inode_cache" objects. If these are consuming a large amount of memory in relation to pagecache, it may be worth trying to increase pressure. Could also help to reduce swapping. The default value is 100.
Tuning the Memory Management | About Swap
3. Increasing the maximum watches on files:
Increasing the maximum watches on files (defaults to 524288) to e.g. 600000, that inotify keeps track of for your user, can help with applications, that require many file handles (such asDAWs). This again can be done on the fly with sysctl fs.inotify.max_user_watches=600000 or in a dedicated configuration file: [Tuning the Memory Management](https://doc.opensuse.org/documentation/leap/tuning/html/book.sle.tuning/cha.tuning.memory.html#cha.tuning.memory.vm.reclaim) | [About Swap](https://wiki.archlinux.org/index.php/Swap#Swappiness)
## Increasing the maximum watches on files:
Increasing the maximum watches on files (defaults to **524288**) to e.g. **600000**, that inotify keeps track of for your user, can help with applications, that require many file handles (such as [DAWs](https://wiki.archlinux.org/index.php/List_of_applications#Digital_audio_workstations)). This again can be done on the fly with `sysctl fs.inotify.max_user_watches=600000` or in a dedicated configuration file:
Check: Check:
```
sysctl fs.inotify sysctl fs.inotify
```
Create config file: Create config file:
sudo nano /etc/sysctl.d/90-max_user_watches.conf
`sudo nano /etc/sysctl.d/90-max_user_watches.conf`
and paste this: and paste this:
```
fs.inotify.max_user_watches = 600000 fs.inotify.max_user_watches = 600000
```
## CPU frequency scaling:
Set governor to performance:
First copy cpupower config to this files:
4. CPU frequency scaling: `sudo cp /etc/default/cpupower ~/.config/openbox/obconfigs/cpupower.default`
Set governor to performance: `sudo cp /etc/default/cpupower ~/.config/openbox/obconfigs/cpupower.daily`
`sudo cp /etc/default/cpupower ~/.config/openbox/obconfigs/cpupower.studio`
First copy cpupower config to this files:
sudo cp /etc/default/cpupower ~/.config/openbox/obconfigs/cpupower.default
sudo cp /etc/default/cpupower ~/.config/openbox/obconfigs/cpupower.daily
sudo cp /etc/default/cpupower ~/.config/openbox/obconfigs/cpupower.studio
(cpupower.default is backup just in case) (cpupower.default is backup just in case)
then then
sudo nano ~/.config/openbox/obconfigs/cpupower.studio `sudo nano ~/.config/openbox/obconfigs/cpupower.studio`
```
governor='performance' governor='performance'
```
Save changes with Ctrl+o and exit Ctrl+x Save changes with Ctrl+o and exit Ctrl+x
in cpupower.daily store your configuration for daily use. in cpupower.daily store your configuration for daily use.
Daily mode have separate config (cpupower.daily) file so you can use different settings for both modes. In default cpupower.service is disabled. If you want to change this go to rb-workflow.sh and change it in line 53. Daily mode have separate config (cpupower.daily) file so you can use different settings for both modes. In default cpupower.service is disabled. If you want to change this go to rb-workflow.sh and change it in line 53.
Now cpupower service can be enabled & disabled via obmenu Now cpupower service can be enabled & disabled via obmenu
RecBox Settings > CPU Power RecBox Settings > CPU Power
and by WorkFlow > Studio (enable) > Daily (disable)
## Setting threadirqs to kernel parameter:
and by WorkFlow > Studio (enable)
> Daily (disable)
5. Setting threadirqs to kernel parameter:
Add threadirqs to GRUB_CMDLINE_LINUX_DEFAULT: Add threadirqs to GRUB_CMDLINE_LINUX_DEFAULT:
...@@ -129,7 +110,7 @@ Usually we're making this changes in /etc/default/grub but in this case default ...@@ -129,7 +110,7 @@ Usually we're making this changes in /etc/default/grub but in this case default
6. Unlocking memory: ## Unlocking memory:
sudo nano /etc/security/limits.d/99-realtime-privileges.conf sudo nano /etc/security/limits.d/99-realtime-privileges.conf
...@@ -143,7 +124,7 @@ Usually we're making this changes in /etc/default/grub but in this case default ...@@ -143,7 +124,7 @@ Usually we're making this changes in /etc/default/grub but in this case default
7. Increasing Open Files Limit: ## Increasing Open Files Limit:
sudo nano /etc/security/limits.conf sudo nano /etc/security/limits.conf
...@@ -159,7 +140,7 @@ Usually we're making this changes in /etc/default/grub but in this case default ...@@ -159,7 +140,7 @@ Usually we're making this changes in /etc/default/grub but in this case default
Increase “Open Files Limit” Increase “Open Files Limit”
8. Increasing the highest requested RTC interrupt frequency ## Increasing the highest requested RTC interrupt frequency
That part is automated via recbox-install.sh script (recbox-dev) and package installation so no need to configure it manually. That part is automated via recbox-install.sh script (recbox-dev) and package installation so no need to configure it manually.
...@@ -184,7 +165,7 @@ Recbox Settings > Increas RTC ...@@ -184,7 +165,7 @@ Recbox Settings > Increas RTC
or change WorkFlow > Daily (disable) or change WorkFlow > Daily (disable)
> Studio (enable) > Studio (enable)
9. Setting up High Precision Event Timer ## Setting up High Precision Event Timer
sudo nano /etc/udev/rules.d/40-timer-permissions.rules sudo nano /etc/udev/rules.d/40-timer-permissions.rules
...@@ -205,7 +186,7 @@ noatime value should be set by default but always worth to check. ...@@ -205,7 +186,7 @@ noatime value should be set by default but always worth to check.
nano /etc/fstab nano /etc/fstab
11. Setting up PulseAudio autospawn ## Setting up PulseAudio autospawn
Setting up autospawn value to no is suggested by users if you want to bridge PulseAudio through JACK: Setting up autospawn value to no is suggested by users if you want to bridge PulseAudio through JACK:
... ...
......