This repository has been archived by the owner on Dec 25, 2024. It is now read-only.
generated from blue-build/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: realtime preparations for pipewire + realtime-setup and tests a…
…nd fsync kernel
- Loading branch information
1 parent
4c7879e
commit 62ceb41
Showing
40 changed files
with
120 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ install: | |
- ffmpeg | ||
- fish | ||
- switcheroo-control | ||
- realtime-setup | ||
- realtime-tests | ||
- pulseaudio-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ scripts: | |
- ptyxis.nu | ||
- extra-packages.nu | ||
- tuned.nu | ||
#- rt-kernel.nu | ||
- fsync-kernel.nu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: systemd | ||
system: | ||
enabled: | ||
- realtime-entsk | ||
- realtime-setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Default limits for users of pipewire | ||
@pipewire - rtprio 95 | ||
@pipewire - nice -19 | ||
@pipewire - memlock 4194304 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
RTKIT_ARGS="--scheduling-policy=FIFO | ||
--our-realtime-priority=89 | ||
--max-realtime-priority=88 | ||
--min-nice-level=-19 | ||
--rttime-usec-max=2000000 | ||
--users-max=100 | ||
--processes-per-user-max=1000 | ||
--threads-per-user-max=10000 | ||
--actions-burst-sec=10 | ||
--actions-per-burst-max=1000 | ||
--canary-cheep-msec=30000 | ||
--canary-watchdog-msec=60000 | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
vm.swappiness = 10 | ||
fs.inotify.max_user_watches = 524288 | ||
#if you are gonna use midi modify this in your custom overlay | ||
#dev.hpet.max-user-freq=3072 | ||
fs.inotify.max_user_watches = 600000 | ||
dev.hpet.max-user-freq=3072 |
4 changes: 4 additions & 0 deletions
4
config/files/shared/lib/systemd/system/rtkit-daemon.service.d/limits.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
EnvironmentFile=/etc/sysconfig/rtkit | ||
ExecStart= | ||
ExecStart=/usr/libexec/rtkit-daemon $RTKIT_ARGS |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
export use add.nu * | ||
export use jackd.nu * | ||
export use davinci.nu * | ||
export use motd.nu * | ||
export use reporter.nu * | ||
export use speaker-test.nu * | ||
export use update.nu * | ||
export use pwjack.nu * | ||
export use pw.nu * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env -S nu | ||
|
||
const TARGET_CONFIG_PATH = "/etc/profile.d/atomic-pwjack.sh" | ||
const VALID_BFSIZES = [8,16,32,64,128,256,512,1024,2048,4096] | ||
|
||
# Set specific buffersize for PIPEWIRE_QUANTUM variable (fixes ardour and carla crashes) | ||
export def "main pw set quantum-buffersize" [--buffersize (-b): int] { | ||
mut is_valid_thing: bool = false | ||
mut iter = 0 | ||
let max_iter = ($VALID_BFSIZES | length) | ||
loop { | ||
if $iter == $max_iter { | ||
break | ||
} | ||
if VALID_BFSIZES.$iter == $buffersize { | ||
$is_valid_thing = true | ||
} | ||
} | ||
|
||
if not is_valid_thing { | ||
echo "Invalid Value" | ||
exit 2 | ||
} | ||
|
||
$"export PIPEWIRE_QUANTUM=\"($buffersize)/48000\"" | save -f /etc/profile.d/atomic-pwjack.sh | ||
pw-metadata -n settings 0 clock.force-quantum $buffersize | ||
|
||
echo "Log out and in for changes to take effect." | ||
exit 0 | ||
} | ||
|
||
# Enables realtime in linux kernel arguments | ||
export def "main pw enable realtime" [] { | ||
rpm-ostree kargs --append-if-missing="preempt=full" | ||
} | ||
|
||
# Disables realtime from linux kernel arguments | ||
export def "main pw disable realtime" [] { | ||
rpm-ostree kargs --delete-if-present="preempt=full" | ||
} | ||
|
||
# Manage pipewire configurations | ||
export def "main pw" [] { | ||
echo "Usage pw <subcommand>." | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.