Score:6

What is the difference between realtime-kernel and livepatch in Ubuntu Advantage (Pro)?

cn flag

I wanted to test Ubuntu Advantage/Pro options on my system:

~$ ▶ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy
~$ ▶ sudo pro status
SERVICE          ENTITLED  STATUS    DESCRIPTION
esm-apps         yes       enabled   Expanded Security Maintenance for Applications
esm-infra        yes       enabled   Expanded Security Maintenance for Infrastructure
livepatch        yes       enabled   Canonical Livepatch service
realtime-kernel  yes       disabled  Ubuntu kernel with PREEMPT_RT patches integrated

Enable services with: pro enable <service>

     Account: xyz@zyx.com
Subscription: Ubuntu Pro - free personal subscription
~$ ▶ sudo pro enable realtime-kernel
One moment, checking your subscription first
Real-time kernel cannot be enabled with Livepatch.
Disable Livepatch and proceed to enable Real-time kernel? (y/N)
Cannot enable Real-time kernel when Livepatch is enabled.

It seems that the two option livepatch and realtime-kernel are mutually exclusive. What is realtime-kernel option anyway? It's not mentioned in the manual: https://manpages.ubuntu.com/manpages/focal/man1/ua.1.html So how do these two options differ then? Is there an advantage to using either?

Score:11
cn flag

These are completely two different things.

realtime-kernel is a kernel with low latency patches.

livepatch is a service that allows to patch a kernel without system reboot.

Real-time kernels are used in cases when latency is critical, e.g. in processing audio. https://ubuntu.com/blog/real-time-ubuntu-is-now-generally-available

Livepatch service is used for servers to avoid rebooting. https://ubuntu.com/security/livepatch

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.