![]() |
Using Ubuntu low latency & real time kernels - Printable Version +- Snakeoil Forums (https://forums.snakeoil-os.net) +-- Forum: Snakeoil Topics (https://forums.snakeoil-os.net/Forum-Snakeoil-Topics) +--- Forum: Feature Requests (https://forums.snakeoil-os.net/Forum-Feature-Requests) +--- Thread: Using Ubuntu low latency & real time kernels (/Thread-Using-Ubuntu-low-latency-real-time-kernels) Pages:
1
2
|
Using Ubuntu low latency & real time kernels - Snoopy8 - 07-Jan-2025 Ubuntu 24.04 comes with both low latency and real time kernels, potentially improving SQ. Suggest adding an option within SnakeOil tab to set the low latency kernel to full preempt. https://discourse.ubuntu.com/t/fine-tuning-the-ubuntu-24-04-kernel-for-low-latency-throughput-and-power-efficiency/44834 Another option is to enable nohz_full for the CPU's dedicated to the music players using CPUset. The real time kernel is available for both AMD and ARM processors. https://ubuntu.com/real-time Have a SO option to simplify the process to login to Ubuntu Pro and get the Real time kernel. Just in case people are not aware, Ubuntu Pro is free and the RT kernel can be downloaded free for use on 5 instances. RE: Using Ubuntu low latency & real time kernels - Snoopy8 - 14-Jan-2025 Had an initial look at the tweaking options and they are not compatible with CPUset, and less friendly. My CPUset journey has been posted here https://www.snakeoil-os.net/forums/Thread-Extending-cpuset-to-include-user-processes https://www.snakeoil-os.net/forums/Thread-SOLVED-CPUset-not-working-in-Ubuntu-22-04 However, I have come back to using the SO simple version. Perhaps it is time to drop CPUset? Using pre-empt=full, nohz_full on CPUs dedicated to the music player and proper IRQ affinity settings (dedicate a CPU for the music output IRQ, shift other IRQS to other CPUs ) could potentially make SO sound even better. Ideally, SO should hide the complexity of setting this up, providing options to:
RE: Using Ubuntu low latency & real time kernels - Snoopy8 - 19-Jan-2025 Just a note for those trying to install the Ubuntu real time kernel yourself. I just used this on my Pi5.
RE: Using Ubuntu low latency & real time kernels - agent_kith - 28-Jan-2025 This will hopefully come in 1.4.2.... I've spent the past few days working on re-working the Snakeoil API server and it's really a lot more work than anticipated (and only 30% done). Good thing is when completed it will be even easier to add new features like this. ![]() This means 116 files have been modified. Of which 10,610 lines have been added, wihel 4372 have been removed RE: Using Ubuntu low latency & real time kernels - wxrbbs - 28-Jan-2025 (14-Jan-2025, 06:44 AM)Snoopy8 Wrote: [font]Had an initial look at the tweaking options and they are not compatible with CPUset, and less friendly. [font]Hello, it seems that switching kernels in the new version 1.4 still doesn't work, and it requires manual command operations to achieve it.[/font] RE: Using Ubuntu low latency & real time kernels - Snoopy8 - 28-Jan-2025 (28-Jan-2025, 12:50 PM)wxrbbs Wrote: Hello, it seems that switching kernels in the new version 1.4 still doesn't work, and it requires manual command operations to achieve it.Is this for the Pi or AMD? I have used both the Ubuntu and my own RT kernel and successfully changed them within SO 1.4. RE: Using Ubuntu low latency & real time kernels - wxrbbs - 28-Jan-2025 (28-Jan-2025, 01:37 PM)Snoopy8 Wrote:(28-Jan-2025, 12:50 PM)wxrbbs Wrote: Hello, it seems that switching kernels in the new version 1.4 still doesn't work, and it requires manual command operations to achieve it.[font]Is this for the Pi or AMD? I have used both the Ubuntu and my own RT kernel and successfully changed them within SO 1.4.[/font] pi cm4 RE: Using Ubuntu low latency & real time kernels - Snoopy8 - 29-Jan-2025 (28-Jan-2025, 11:58 PM)wxrbbs Wrote: pi cm4Thank you for identifying this problem for AK's issues list. Confirming that SO is unable to change the kernel for both CM4 and Pi5. In Amd version, SO can change kernel. RE: Using Ubuntu low latency & real time kernels - wxrbbs - 29-Jan-2025 (29-Jan-2025, 07:58 PM)Snoopy8 Wrote:(28-Jan-2025, 11:58 PM)wxrbbs Wrote: pi cm4Thank you for identifying this problem for AK's issues list. Confirming that SO is unable to change the kernel for both CM4 and Pi5. en nice work,in pi cm4 is /boot/firmware,not GRUB !!! so @agent_kith fix it RE: Using Ubuntu low latency & real time kernels - agent_kith - 05-Feb-2025 (29-Jan-2025, 09:43 PM)wxrbbs Wrote: so @[/color]agent_kith fix it [/b][/size]It's in the works. Until then, you can always switch the kernel outside the WebApp. As much as as I would love to get everything done, there's a huge backlog of work to catch up.. ![]() Look at the this work that I'm currently working on (Link): 135 files modified, 11290 lines added, 7194 lines remove. And it's only about 50-65% complete ![]() Realistically it will be a while before I can get working on this. Of course I will be motivated to focus on this earlier if I find a good Pi 5 board that gives out excellent sound quality. But yet to know of one. Until then I had to pick the battles I can fight. |