Impostor wrote: ↑Wed Dec 13, 2023 9:55 pm
You don't need to set rt priority for applications afaik. Set it for Jack only, so only audio processing gets priority. Otherwise you may end up giving GUIs rt priority, which may not be that great an idea.
Well, I'd like to! haha. I just don't know how. running:
but still get a priority of 5.
Been asking ChatGPT, it suggested a /etc/systemd/system/reaper.service idea that, after some prodding, still didn't work. Ended up with variations on:
Code: Select all
[Unit]
Description=Reaper Digital Audio Workstation
[Service]
ExecStartPre=/usr/bin/chrt -f 90 $(pgrep -o reaper)
ExecStart=/full/path/to/reaper
[Install]
WantedBy=default.target
but chrt would fail every time:
Code: Select all
× reaper.service - Reaper Digital Audio Workstation
Loaded: loaded (/etc/systemd/system/reaper.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-12-13 14:22:01 EST; 10s ago
Process: 15706 ExecStartPre=/usr/bin/chrt -f 90 $(pgrep -o reaper) (code=exited, status=127)
CPU: 1ms
Dec 13 14:22:01 Madlad systemd[1]: Starting Reaper Digital Audio Workstation...
Dec 13 14:22:01 Madlad chrt[15706]: chrt: failed to execute -o: No such file or directory
Dec 13 14:22:01 Madlad systemd[1]: reaper.service: Control process exited, code=exited, status=127/n/a
Dec 13 14:22:01 Madlad systemd[1]: reaper.service: Failed with result 'exit-code'.
Dec 13 14:22:01 Madlad systemd[1]: Failed to start Reaper Digital Audio Workstation.
ChatGPT couldn't figure out why, so now I'm asking ChatIRL
sunrat wrote: ↑Thu Dec 14, 2023 12:05 am
Liquorix is not an RT kernel so won't have CONFIG_PREEMPT_RT=y
does that mean rtprio has no meaning?
Code: Select all
I never set rtprio for applications, only for audio group which is set up automatically by install of jackd. /etc/security/limits.d/audio.conf:
[code]@audio - rtprio 95
@audio - memlock unlimited
@audio group is already set up and high priority.
It could possibly be a storage i/o problem if your disk access is too slow. Are you recording on the same disk as system?
2.8Gb/sec benchmark just now, ext4 noatime
I just set up a new Debian Bookworm with Liquorix 6.6.6 on my old i5-6500 system and got over 97% in xruncounter, an amazing result. Pretty much only set it with rtcqs showing OK for everything except swappiness. Haven't tried audio applications yet so jury is still out.
ahh xruncounter sounds like exactly what I was looking for earlier.
yeah, swappiness seems irrelevant, have 24 gigs of ram, 8th gen i5-8250U, Lenovo T480s. I do wonder if the U series CPU is why the DMA latency step immediately brought my core temp into the 90s.
and the third one I don't do is mitigations.. this is my daily driver.
This is why I'm so interested in changing the rtprio of reaper directly, so it asks more, but not too much. I've seen people say 50 is a good number for it, and I can tell by all the
JackEngine::XRun: client = REAPER was not finished, state = Running
JackAudioDriver::ProcessGraphAsyncMaster: Process error
xruns I get that 5 is not high enough, and from I just don't know how to set it. Anyone know?