

好消息!现可申请 Ubuntu 22.04 LTS 实时内核使用及测试
source link: https://os.51cto.com/article/710019.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

好消息!现可申请 Ubuntu 22.04 LTS 实时内核使用及测试-51CTO.COM

测试版实时内核基于上游 v5.15,22.04 LTS 内核集成了针对 x86_64 和 AArch64 架构的树外 PREEMPT_RT 补丁。一旦进入 GA (通用可用性),新的实时内核将为下一代机器人、物联网和电信创新提供确定性的响应时间,以满足其极低的延迟要求。
确定性的响应时间
实时 Ubuntu 测试版的调度程序可以抢占内核中的线程,包括关键部分、中断处理程序和中断禁用代码序列,保证有界的响应。通过最小化内核代码中不可抢占的关键部分,PREEMPT_RT 补丁(尚未完全上游)使测试内核比主线更具抢占性。
为生产做好准备
由于这是一个 beta 版本内核,它不提供任何支持,同时也建议不要将其用于生产工作负载。我们致力于将实时内核带入生产级别,而您的反馈将帮助我们实现此目标。请考虑通过此处报告您可能遇到的任何错误来测试并积极影响 Ubuntu 社区。此外,请考虑加入我们的免费测试计划,与我们的团队建立一个开放的沟通渠道,提供反馈并分享建议。作为实时 Ubuntu beta 测试人员,一旦内核准备好用于生产,我们将首先通知您。
获得测试版实时内核
测试内核可通过Ubuntu订阅个人版(UA-I) 获得且免费供个人使用,这是最全面的 Linux 企业订阅,涵盖开放基础架构的所有方面。要将您的个人计算机添加到 UA 订阅,请运行:
ua attach <免费的TOEKN>

确保你在使用至少27.8版本的ubuntu-advantage-tools软件包,可通过此命令查看当前版本:
linuxmi@linuxmi:~/www.linuxmi.com$ ua version

要在 Ubuntu 22.04(Jammy Jellyfish) 中升级 ubuntu-advantage-tools 到 27.8,请运行命令:
linuxmi@linuxmi:~/www.linuxmi.com$ sudo apt install ubuntu-advantage-tools=27.8~22.04.1

要启用测试版实时内核,可运行:
linuxmi@linuxmi:~/www.linuxmi.com$ sudo ua enable realtime-kernel --beta
输出如下:
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) y
Disabling incompatible service: Livepatch
The real-time kernel is a beta version of the 22.04 Ubuntu kernel with the
PREEMPT_RT patchset integrated for x86_64 and ARM64.
You will not be able to revert to your original kernel after enabling real-time.
Do you want to continue? [ default = Yes ]: (Y/n) y
Updating package lists
Installing Real-Time Kernel packages
Real-Time Kernel enabled
A reboot is required to complete install.

重启看看效果:

请注意,在启用实时内核后您需要手动配置 grub 以恢复到原始内核。更多内容请参考:
linuxmi@linuxmi:~/www.linuxmi.com$ sudo ua help realtime-kernel
本博文由Edoardo Barbieri 所写。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK