No luck with adding rule to set CPU DMA latency

Hi, I'm attempting to add this udev rule to /etc/udev/rules.d/, but it doesn't seem to be applying from what I can tell, even after running sudo udevadm control --reload-rules and sudo udevadm trigger. Is there a way to do this through tuned? For what it's worth, my main goal at the moment is to reduce buffer overruns, since I work with low-latency, realtime audio in Reaper. I'm not trying to fruitlessly improve game performance, or something. Does bazzite keep /dev/cpu_dma_latency from having rules applied to it, or am I doing something wrong? Should I do this through tuned instead, somehow?
GitHub
ardour/tools/udev/99-cpu-dma-latency.rules at master · Ardour/ardour
Mirror of Ardour Source Code. Contribute to Ardour/ardour development by creating an account on GitHub.
Solution:
you can probably then add a [cpu] section and add force_latency=99
Jump to solution
18 Replies
皇家海星
皇家海星3h ago
copy the balanced-bazzite profile from /usr/lib/tuned/profiles/ to /etc/tuned/profiles/
walllable
walllableOP3h ago
Copied
皇家海星
皇家海星3h ago
one sec
皇家海星
皇家海星3h ago
it should look something like this(I just have 4 custom profiles)
No description
皇家海星
皇家海星3h ago
and then edit /etc/tuned/ppd.conf
walllable
walllableOP3h ago
I ended up copying all the default profiles from there, is that cool or should it just be balanced-bazzite in there?
皇家海星
皇家海星3h ago
so that it points to your custom profile
No description
皇家海星
皇家海星3h ago
oh you can just copy one and edit that one no need to clutter up the folder after you did that you can go and edit /etc/tuned/profiles/bazzite-custom(or your preferred profile name)
Solution
皇家海星
皇家海星3h ago
you can probably then add a [cpu] section and add force_latency=99
walllable
walllableOP3h ago
Aight, I'll try that out
皇家海星
皇家海星3h ago
it should look something like this
No description
walllable
walllableOP3h ago
I did notice a latency-performance profile that seemed like it might be useful for me judging by its contents, so I might try that if making a custom profile doesn't work out for some reason
皇家海星
皇家海星3h ago
you can point to that instead in ppd.conf something like performance=latency-performance alright good luck
walllable
walllableOP3h ago
Thanks, I appreciate the help Any resources in particular that you'd point to if I wanna learn more about tuned/power profile config?
皇家海星
皇家海星3h ago
honestly not much besides rhel/fedora's own docs though if you have issues with audio you might want to take a look at pipewire stuff just don't ask an LLM
walllable
walllableOP3h ago
lmao yeah way ahead of you there I've got the profile specified in ppd.conf, how do I reload it (assuming it's needed) and how do I verify the currently selected profile?
皇家海星
皇家海星3h ago
technically you can restart tuned and tuned-ppd, but I'd recommend just rebooting verifying is tuned-adm active to debug any errors related to tuned, systemctl status tuned, and systemctl status tuned-ppd
walllable
walllableOP3h ago
I see, thanks again

Did you find this page helpful?