![]() |
[split] Real Time Kernels discussion - Printable Version +- Snakeoil Forums (https://forums.snakeoil-os.net) +-- Forum: Snakeoil Topics (https://forums.snakeoil-os.net/Forum-Snakeoil-Topics) +--- Forum: Discussions (https://forums.snakeoil-os.net/Forum-Discussions) +--- Thread: [split] Real Time Kernels discussion (/Thread-split-Real-Time-Kernels-discussion) |
RE: [split] Real Time Kernels discussion - hkphantomgtr - 25-Feb-2023 For the change in sound from low latency kernel to RT kernel, even the difference is not as significant as change from ordinary kernel to low latency kernel, it's still clear and enjoyable. In comparing with the sound of low latency kernel, RT kernel further refines the focus, positioning, and also the dimension of the sound stage. The sound stage is just bigger, wider and deeper. It simply make the sound more holographic. RT kernel also further enhances the details, texture, and dynamics. That makes the sound more vivid. It's more impacting and influencing, closer to the live sound. Is there any more feedback about the change in sound after using latest RT kernel in your OS system? ![]() RE: [split] Real Time Kernels discussion - Snoopy8 - 13-Dec-2023 @"uglymusic" let's continue the discussion on Real Time (RT) kernel for Pi here. Some history first. Prior to SO 1.2.x, AK delivered RT SO images but this was not sustainable. SO 1.2.x became Ubuntu based with standard kernel until the arrival of the Ubuntu RT kernel this year. However the RT kernel was for X86, not Pi. As an aside, AK had an ambitious project to customise RT kernels for individuals but it stalled. https://www.snakeoil-os.net/forums/Thread-Kernel-Builder-Updates?highlight=kernel+builder If the project is revived, I would like to see RT kernels sold for profit because it is resource intensive and SO could do with income. For the Pi, start with this https://forums.raspberrypi.com/viewtopic.php?t=344994 Then, use the info from here to look at the Make parameters https://docs.ros.org/en/foxy/Tutorials/Miscellaneous/Building-Realtime-rt_preempt-kernel-for-ROS-2.html Try removing the unnecessary parameters for wireless, GPU, crypto, foreign hardware etc. This edit is slow but it can reduce the Make process time by a lot. However, you can also cause the boot to hang if too much is removed. I have not tried with the Pi, but I did find problems with the ROS guide and other web resources. I will try to help but am illiterate in Linux. I can Google my way to to find potential fixes, but cannot guarantee that things will work. *** Forgot to add this important point. I backup my SO instance using Clonezilla before starting. Things will and do go wrong. Recommend cloning SD card before starting. *** A difference between the Intel NUC and Pi is the tweaking of the BIOS. In the NUC, can switch off unnecessary things like Hyperthreading, virtualisation, power savings, all of which can impact SQ. There are no BIOS tweaks for the Pi. May have to tweak things in Make? RE: [split] Real Time Kernels discussion - uglymusic - 13-Dec-2023 (13-Dec-2023, 08:40 AM)Snoopy8 Wrote: @"uglymusic" let's continue the discussion on Real Time (RT) kernel for Pi here. Some history first. Thank you, @"Snoopy8". This looks like the pointer I need, although I suspect it'll be Christmas reading and possibly another opportunity for indigestion ![]() RE: [split] Real Time Kernels discussion - Snoopy8 - 15-Dec-2023 (13-Dec-2023, 05:50 PM)uglymusic Wrote: Thank you, @"Snoopy8". This looks like the pointer I need, although I suspect it'll be Christmas reading and possibly another opportunity for indigestionBuilding an RT kernel is not for the faint hearted and very time consuming. I have built a new RT kernel for my NUC, using the latest stable 6.1 RT version. ![]() I have also tried doing for the Pi. The good news is the steps in the link I mentioned works https://forums.raspberrypi.com/viewtopic.php?t=344994 Just have to change to the correct versions, suggest using 6.1.67. The bad news is that it took 1.5 hours to compile on a CM4, and likely many, many hours for your Pi3. It is possible to use an external box to cross compile, but I have not gone there yet. And the instructions will generate a standalone kernel, which used to be the default way for the Pi. However, in bookworm for the CM4, it is using initramfs which should allow multiple kernels, but not working for me. I have posted this info in the 1.3 beta thread and hope AK can give me answer. If all of this is too much, suggest continuing your Christmas celebrations. Not only will this cause indigestion, but also headaches, frustration, stress ![]() RE: [split] Real Time Kernels discussion - uglymusic - 15-Dec-2023 (15-Dec-2023, 08:06 AM)Snoopy8 Wrote:(13-Dec-2023, 05:50 PM)uglymusic Wrote: Thank you, @"Snoopy8". This looks like the pointer I need, although I suspect it'll be Christmas reading and possibly another opportunity for indigestionBuilding an RT kernel is not for the faint hearted and very time consuming. But, on my RPi 5, compiling will be quicker! (When I get back to running SO on it, of course). I'll only know the full horror once I start to experience it! ![]() Happy holidays to me ![]() RE: [split] Real Time Kernels discussion - agent_kith - 16-Dec-2023 (13-Dec-2023, 08:40 AM)Snoopy8 Wrote: Then, use the info from here to look at the Make parametersSegway a bit. But that's my day job now. ROS ![]() Technically I'm not dealing with ROS, but have to past couple of months as I have to spend time to clean up poor quality code left by a parasite. RE: [split] Real Time Kernels discussion - Snoopy8 - 16-Dec-2023 (15-Dec-2023, 08:06 AM)Snoopy8 Wrote: I have also tried doing for the Pi. The good news is the steps in the link I mentioned works A note for those who may want to try building an RT kernel for Bookworm. I missed this critical point: Quote:Prior to Bookworm, Raspberry Pi OS stored the boot partition at /boot/. Since Bookworm, the boot partition is located at /boot/firmware/.https://www.raspberrypi.com/documentation/computers/config_txt.html#file-format Hence, it is likely that information on the web for the Pi boot process is pre Bookworm. For example, config.txt is used to configure the boot, but you should be changing /boot/firmware/config.txt, NOT /boot/config.txt (which is still there!). RE: [split] Real Time Kernels discussion - Snoopy8 - 18-Dec-2023 After a week of trial and error (and lots of errors including a failed boot!), I have a working version of a 6.1 RT kernel for the Pi. It is based on replacing the Pi 4 kernel8.img with the RT version. Still no success with getting the initramfs working, but I suspect it is a combination of editing /boot/firmware/config.txt and maybe change Grub??? No doubt that the RT kernel sounds better. And the cyclictest numbers prove it, with cpuset enabled (user running on last 2 CPUs), and mpd playing music. Code: Generic Kernel For people not familiar with using the Cyclictest, the only important number is max latency. All times are in microseconds. The lower the max latency, the better for SQ. With the generic kernel, it is all over the place and can be as long as 1,000 milliseconds (1 second). With the RT kernel, the times are more consistent, with max latency around 50 to 70 milliseconds. A good result. RE: [split] Real Time Kernels discussion - Snoopy8 - 22-Dec-2023 @"uglymusic", this my Xmas present which may or may not cause indigestion ? ![]() Code: # based on https://forums.raspberrypi.com/viewtopic.php?t=344994 It will take just over 2 hours to do the compile (make -j4...). @"hkphantomgtr", you have been testing various kernels for the Pi. Not sure whether you want to try building a RT kernel??? RE: [split] Real Time Kernels discussion - hkphantomgtr - 22-Dec-2023 (22-Dec-2023, 08:13 AM)Snoopy8 Wrote: @"uglymusic", this my Xmas present which may or may not cause indigestion ? I have played around building RT kernel for CAS 10 years ago. By that time there was a software, I just ticked, unticked, ticked, unticked thru a long menu, then press confirm for several times, after the compilation then the RT kernel is done. But I didn't do it for such long time that I've forgot everything about it. I'm afraid that, unless I found a similar software, I may not be able to follow those steps in the web. I'd rather leave this to you and AK. |