Using Ubuntu low latency & real time kernels
#1
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-tuni...ency/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.
[-] The following 2 users Like Snoopy8's post:
  • Valery, agent_kith
Reply

#2
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/Threa...-processes
https://www.snakeoil-os.net/forums/Threa...untu-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: 
  • enable RT kernel (using Ubuntu Pro)
  • Dedicate CPU(s) to music player
[-] The following 1 user Likes Snoopy8's post:
  • alex87
Reply

#3
Just a note for those trying to install the Ubuntu real time kernel yourself.  I just used this on my Pi5.
  1. Login to Ubuntu Pro, and go "Your Subscriptions" tab
  2. In free personal token, copy the command "sudo pro attach xxxxxx" where xxxxx is a token
  3. On Pi5/Pi4, run the above command
  4. Then run "sudo pro enable realtime-kernel --variant=raspi"
  5. Reboot
In SnakeOil/Linux Kernel tab, you should see the real time kernel and can swap back to original kernel.
Reply

#4
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.

[Image: code-changed.jpg]

This means 116 files have been modified. Of which 10,610 lines have been added, wihel 4372 have been removed
Snakeoil Operating System - Music, your way!
[-] The following 2 users Like agent_kith's post:
  • Snoopy8, hkphantomgtr
Reply

#5
(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. 

My CPUset journey has been posted here
https://www.snakeoil-os.net/forums/Threa...-processes
https://www.snakeoil-os.net/forums/Threa...untu-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: [/font]
  • enable RT kernel (using Ubuntu Pro)
  • Dedicate CPU(s) to music player

[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]
Reply

#6
(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.
Reply

#7
(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
Reply

#8
(28-Jan-2025, 11:58 PM)wxrbbs Wrote: pi cm4
Thank 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.
Reply

#9
Thumbs Up 
(29-Jan-2025, 07:58 PM)Snoopy8 Wrote:
(28-Jan-2025, 11:58 PM)wxrbbs Wrote: pi cm4
Thank 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.

en nice work,in pi cm4 is /boot/firmware,not GRUB !!! 

so @
agent_kith  fix it 
[-] The following 1 user Likes wxrbbs's post:
  • Snoopy8
Reply

#10
(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.. Sad

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 Sad

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.
Snakeoil Operating System - Music, your way!
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVEDRoon+ Hqplayer at the same time Mivera 5 4,404 24-Jun-2018, 05:13 PM
Last Post: agent_kith



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Progress update on High End U1
Last Post: agent_kith
17-Feb-2025 05:32 PM
» Replies: 7
» Views: 455
Snakeoil OS 1.4 problem with Squeezelite...
Last Post: mloutfie
14-Feb-2025 07:00 AM
» Replies: 14
» Views: 567
Snakeoil 1.4.0 (High End)
Last Post: hkphantomgtr
11-Feb-2025 09:07 AM
» Replies: 60
» Views: 3468
fw: a letter to request Album Player(gen...
Last Post: clark8888
08-Feb-2025 03:44 PM
» Replies: 3
» Views: 489
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
06-Feb-2025 08:46 AM
» Replies: 13
» Views: 622
Using Ubuntu low latency & real time ker...
Last Post: agent_kith
05-Feb-2025 02:19 PM
» Replies: 9
» Views: 328
Can't get Roon bridge or UPNP renderer t...
Last Post: agent_kith
05-Feb-2025 02:12 PM
» Replies: 8
» Views: 179
Music Players missing
Last Post: justme
31-Jan-2025 01:07 PM
» Replies: 2
» Views: 95
My Snakeoil-powered system
Last Post: petemac110
29-Jan-2025 03:46 AM
» Replies: 4
» Views: 473
Question about RAM Disk
Last Post: agent_kith
28-Jan-2025 10:01 AM
» Replies: 6
» Views: 156

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2025. Theme © Melroy van den Berg.