我想在我的系统上测试 Ubuntu Advantage/Pro 选项:
~$ ▶ 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: [email protected]
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.
看起来 livepatch 和 realtime-kernel 这两个选项是互斥的。realtime-kernel 选项到底是什么?手册中没有提到:https://manpages.ubuntu.com/manpages/focal/man1/ua.1.html 那么这两个选项有何不同?使用其中任何一个都有优势吗?
答案1
这是完全两码事。
实时内核是一个带有低延迟补丁的内核。
实时补丁是一项无需重启系统即可修补内核的服务。
当延迟至关重要时,例如在处理音频时,使用实时内核。https://ubuntu.com/blog/real-time-ubuntu-is-now-generally-available
服务器使用 Livepatch 服务来避免重启。 https://ubuntu.com/security/livepatch