Snakeoil Forums

Full Version: [split] Real Time Kernels discussion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Finally I've successfully installed the RT kernel in SO.  It only takes few steps and they are simple, fast, and straight forward as described in #6 https://www.snakeoil-os.net/forums/Threa...21#pid6321

After manually updating the OS (in the System tab of OS webui), and choosing the RT kernel in "Linux Kernel" of "SnakeOil" tab and saved, the RT kernel is not listed in the boot up grub menu and the previous using kernel is used instead.  


[Image: image.png][Image: image.png]

After using "update-grub2", "grub-install" and etc (I'm sorry that I was a bit confused here and need some senior user to clarify for me), then after reboot it works. The max latency is roughly 10 times less than lowlatency kernel, the rest are similar.

[Image: image.png][Image: image.png]

And for the sound, please allow me some more time.
(16-Feb-2023, 10:30 PM)hkphantomgtr Wrote: [ -> ]After manually updating the OS (in the System tab of OS webui), and choosing the RT kernel in "Linux Kernel" of "SnakeOil" tab and saved, the RT kernel is not listed in the boot up grub menu and the previous using kernel is used install.  
You are way, way ahead of me. Not sure whether these instructions apply here?

When I built my own kernel, I used these set of instructions.
https://docs.ros.org/en/foxy/Tutorials/M...ROS-2.html
Scroll to end of article, I can see the *.deb files in my folder and use the following command to install the kernel.
sudo dpkg -i ../*.deb

Otherwise, need AK to help....
 
(16-Feb-2023, 10:30 PM)hkphantomgtr Wrote: [ -> ]The max latency is roughly 10 times less than lowlatency kernel, the rest are similar.
The only latency that matters is Max latency and the smaller the better = better SQ.
(17-Feb-2023, 10:33 AM)Snoopy8 Wrote: [ -> ]
(16-Feb-2023, 10:30 PM)hkphantomgtr Wrote: [ -> ]After manually updating the OS (in the System tab of OS webui), and choosing the RT kernel in "Linux Kernel" of "SnakeOil" tab and saved, the RT kernel is not listed in the boot up grub menu and the previous using kernel is used install.  
You are way, way ahead of me. Not sure whether these instructions apply here?

When I built my own kernel, I used these set of instructions.
https://docs.ros.org/en/foxy/Tutorials/M...ROS-2.html
Scroll to end of article, I can see the *.deb files in my folder and use the following command to install the kernel.
sudo dpkg -i ../*.deb

Otherwise, need AK to help....
 
(16-Feb-2023, 10:30 PM)hkphantomgtr Wrote: [ -> ]The max latency is roughly 10 times less than lowlatency kernel, the rest are similar.
The only latency that matters is Max latency and the smaller the better = better SQ.

Sir, from your set of instructions, I think you are the one way, way ahead of me.

Yesterday I didn't use any of these commands to install RT kernel, ie. only "PRO".  And only obstacle I've hit was the grub2.  As being a layman to Linux, I just went thru trial and errors.  In my memory "update-grub2" will be enough, if not, run" grub-install" before "update-grub2" will do.

As it's already late at night after I've solved the grub2 issue, after I found mpd still can sing in every few more reboot, then I went to bed. Tongue
Any real time kernel for raspbian based Snakeoil OS?
(17-Feb-2023, 10:33 AM)Snoopy8 Wrote: [ -> ]When I built my own kernel, I used these set of instructions.
https://docs.ros.org/en/foxy/Tutorials/M...ROS-2.html
Funnily enough ROS2 is the kind of thing I'm doing right now. Not ROS2 exactly as that's done by my other colleagues, but I'm in that space still.
 
(17-Feb-2023, 06:05 PM)vinaymoturi Wrote: [ -> ]Any real time kernel for raspbian based Snakeoil OS?
Not as far as I know. But you can indeed do a RT kernel for Raspbian.

Will still do a RT kernel builder, but at least now there's less of a priority. I've been very busy lately (work and private wise) so hardly have time to look at things Snakeoil. Hopefully things will settle down sooner rather than later then I can get back into the development groove.
(16-Feb-2023, 10:30 PM)hkphantomgtr Wrote: [ -> ]Finally I've successfully installed the RT kernel in SO.  It only takes few steps and they are simple, fast, and straight forward as described in #6 https://www.snakeoil-os.net/forums/Threa...21#pid6321

After manually updating the OS (in the System tab of OS webui), and choosing the RT kernel in "Linux Kernel" of "SnakeOil" tab and saved, the RT kernel is not listed in the boot up grub menu and the previous using kernel is used instead.  


[Image: image.png][Image: image.png]

After using "update-grub2", "grub-install" and etc (I'm sorry that I was a bit confused here and need some senior user to clarify for me), then after reboot it works. The max latency is roughly 10 times less than lowlatency kernel, the rest are similar.

[Image: image.png][Image: image.png]

And for the sound, please allow me some more time.

Look, I still neither got enough time nor energy for few listening hours.  Please let me get back to you guys later, hopefully will be this weekend.
(15-Feb-2023, 12:57 PM)Snoopy8 Wrote: [ -> ]Step 1 : sign up to Ubuntu Pro, if required, and login
https://ubuntu.com/pro 

Step 2 : Enable Ubuntu Pro on instance. This link shows the steps
https://www.techrepublic.com/article/ena...u-pro/amp/
The TOKEN to use is in your Ubuntu Pro Dashboard

Step 3: Install RT kernel following steps in link previously mentioned
https://9to5linux.com/canonical-announce...ntu-kernel
I managed to go through whole process using the links above and these are the steps I used.

Sign up to Ubuntu Pro, if required, and login
https://ubuntu.com/pro 

On your instance, install Ubuntu Pro
sudo apt-get install ubuntu-advantage-tools

Next, verify the installation
pro status

The command will report back that the machine is not attached to a Ubuntu Pro subscription. Fix that with:
sudo pro attach TOKEN
The TOKEN to use is in Ubuntu Pro, Your subscriptions.  You should have up to 5 free tokens.

With the machine attached, you should then enable the Extended Security Maintenance updates (which is currently in beta) with:
sudo pro enable esm-apps --beta

You can then check for any available security patches with the command:
apt list --upgradable | grep apps-security

Install RT kernel
sudo pro enable realtime-kernel

Use browser to bring up Snakeoil, SnakeOil/Linux kernel tab, select the Real time kernel and reboot machine.

----
Have yet to configure my 2nd SnakeOil instance to match my first, so no listening comparisons for a while.
(21-Feb-2023, 12:45 PM)Snoopy8 Wrote: [ -> ]
(15-Feb-2023, 12:57 PM)Snoopy8 Wrote: [ -> ]Step 1 : sign up to Ubuntu Pro, if required, and login
https://ubuntu.com/pro 

Step 2 : Enable Ubuntu Pro on instance. This link shows the steps
https://www.techrepublic.com/article/ena...u-pro/amp/
The TOKEN to use is in your Ubuntu Pro Dashboard

Step 3: Install RT kernel following steps in link previously mentioned
https://9to5linux.com/canonical-announce...ntu-kernel
I managed to go through whole process using the links above and these are the steps I used.

Sign up to Ubuntu Pro, if required, and login
https://ubuntu.com/pro 

On your instance, install Ubuntu Pro
sudo apt-get install ubuntu-advantage-tools

Next, verify the installation
pro status

The command will report back that the machine is not attached to a Ubuntu Pro subscription. Fix that with:
sudo pro attach TOKEN
The TOKEN to use is in Ubuntu Pro, Your subscriptions.  You should have up to 5 free tokens.

With the machine attached, you should then enable the Extended Security Maintenance updates (which is currently in beta) with:
sudo pro enable esm-apps --beta

You can then check for any available security patches with the command:
apt list --upgradable | grep apps-security

Install RT kernel
sudo pro enable realtime-kernel

Use browser to bring up Snakeoil, SnakeOil/Linux kernel tab, select the Real time kernel and reboot machine.

----
Have yet to configure my 2nd SnakeOil instance to match my first, so no listening comparisons for a while.

Thanks, pal.  

Look, maybe as I install from the ubuntu installer, in my memory, this line is not needed.
 
>> sudo apt-get install ubuntu-advantage-tools

Please correct me if I'm wrong. 

BTW, how is the sound?
(21-Feb-2023, 09:19 PM)hkphantomgtr Wrote: [ -> ]Look, maybe as I install from the ubuntu installer, in my memory, this line is not needed.
 
>> sudo apt-get install ubuntu-advantage-tools

Please correct me if I'm wrong. 
Installing Ubuntu Pro and attaching the machine can be done within the 22.04 installation process.

However, I still had to use this command, even after I installed Ubuntu Pro
 
(21-Feb-2023, 09:19 PM)hkphantomgtr Wrote: [ -> ]BTW, how is the sound?
I think the real time 22.04 kernel sounds better than generic.

I am running 22.04 on a different box to my 20.04 SnakeOil which has my own kernel and tweaks (CamillaDSP, my own CPUsets). Until I make them as close as possible, I cannot compare 22.04 to 20.04
(22-Feb-2023, 07:40 AM)Snoopy8 Wrote: [ -> ]
(21-Feb-2023, 09:19 PM)hkphantomgtr Wrote: [ -> ]Look, maybe as I install from the ubuntu installer, in my memory, this line is not needed.
 
>> sudo apt-get install ubuntu-advantage-tools

Please correct me if I'm wrong. 
Installing Ubuntu Pro and attaching the machine can be done within the 22.04 installation process.

However, I still had to use this command, even after I installed Ubuntu Pro
 
(21-Feb-2023, 09:19 PM)hkphantomgtr Wrote: [ -> ]BTW, how is the sound?
I think the real time 22.04 kernel sounds better than generic.

I am running 22.04 on a different box to my 20.04 SnakeOil which has my own kernel and tweaks (CamillaDSP, my own CPUsets). Until I make them as close as possible, I cannot compare 22.04 to 20.04

Alright.  Thanks for your sharing again. Shy
Pages: 1 2 3 4 5