Tips for using lowlatency/realtime kernels

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: MattKingUSA, khz

Post Reply
User avatar
odonnell
Established Member
Posts: 48
Joined: Mon Apr 16, 2012 12:27 am
Location: Greater Chicago, IL

Tips for using lowlatency/realtime kernels

Post by odonnell »

Low priority for falkTX, unless a lot of people are getting confused about kernels.

I wrote some instructions for a typical user (? or at least one with my sort of Grub loader configuration) who wants a lowlatency or realtime kernel. I suggest that these get added to the documentation of Step 5 (http://kxstudio.sourceforge.net/Documen ... tu:Upgrade), and perhaps that Steps 5 & 6 get interchanged. But that's not at all urgent.

THE INSTRUCTIONS (coming after the existing instructions for installing kernels):
Reboot, and check which kernel is running by executing "cat /proc/version".

If the desired kernel is not running, it is probably due to the Grub bootloader making an unfortunate choice of default. Grub normally selects the highest numbered kernel (you may view the list of kernels with "ls /boot/vmlinuz*").

You may select a nondefault kernel by holding down the SHIFT key at the beginning of a reboot, until a Grub menu appears. Most of the choices are usually hidden within a submenu "Previous Linux Versions".

To avoid using the Grub menu in every reboot, edit /etc/default/grub, changing the single line

Code: Select all

GRUB_DEFAULT=0
to the 2 lines

Code: Select all

GRUB_DEFAULT="saved"
GRUB_SAVEDEFAULT="true"
Then, execute "sudo update-grub" to configure Grub with your changes. If you are curious, you may look at /boot/grub/grub.cfg to see the result of the update.
The longer discussion of my trials & tribulations to discover this technique is found at http://www.linuxmusicians.com/viewtopic ... =15#p26067
alexoest
Established Member
Posts: 17
Joined: Sun Jun 27, 2010 6:32 pm

Re: Tips for using lowlatency/realtime kernels

Post by alexoest »

[quote="falkTX"]...
I really appreciate your posts, it helps me understand how users see KXStudio (most of them only talk when it's time to report or complain :lol:)..../quote]

That's right, so please let me mention that I just installed Ubuntu Studio and KXstudio and I'm happily playing around with a lot of things that work well. Everything is stable and latency is low. Thanks for the great software.
Post Reply