泰晓科技 -- 聚焦 Linux - 追本溯源,见微知著!
网站地址:https://tinylab.org

泰晓RISC-V实验箱,不会吃灰,开箱即用
请稍侯

泰晓资讯·9月 / 第四期 / 2021

unicornx 创作于 2021/09/23

“泰晓资讯”,广泛报道 “Linux/开源” 业界资讯。欢迎广大读者投递相关资讯来源和素材,本站将进一步收集整理后发布给大家。

Linux 内核最新消息

https://lkml.org/lkml/2021/9/19/298

在合并窗口期结束仅一周后,经过一周的努力工作,社区发布了 Linux 5.15-rc2。在这个 RC 版本中值得我们关注的项目包括:对最低编译器 GCC 版本的更改,Linux 5.15 现在对 DEC Alpha “Jensen” 系统兼容性进步,以及对 kernel 中内建的 SMB3 文件服务器(KSMBD)的重要修复。

Linus Torvalds 在 5.15-rc2 的发布公告中指出,他花了一周中的大部分时间来研究解决合并窗口期间将 Linux 内核的 -Werror 默认值恢复后所引发的问题。这些修复中也包括那个和 DEC Jensen 有关的修改,这个问题也是因为将编译器警告提升后连锁触发的。

此外,Linus 在 5.15-rc2 公告中谈道到,"Is it done? No. But on the whole I'm feeling fairly good about this all, even if it has meant that I've been looking at some really odd and grotty code. Who knew I'd still worry about some odd EISA driver on alpha, after all these years? A slight change of pace ;)"看起来仅仅是一些有关编译选项的小修改也会导致一些深藏很久的问题被暴露出来,但软件开发过程不就是这样子的吧,所以 Linus 老爷子一点都不担心,毕竟作为老司机,这些小风浪谁没见过呢。

5.15-rc2 的性能衰退的确存在,让我们耐心等待新的一周中的继续测试和修复,让我们对在 5.15 稳定版本发布之前解决这些问题继续保持谨慎而乐观的情绪。5.15 的稳定版本估计在 11 月初会发布。

https://www.kernel.org/

分支类型版本发布时间
mainline5.15-rc22021-09-20
stable5.14.72021-09-22
stable5.13.19 [EOL]2021-09-18
longterm5.10.682021-09-22
longterm5.4.1482021-09-22
longterm4.19.2072021-09-22
longterm4.14.2472021-09-22
longterm4.9.2832021-09-22
longterm4.4.2842021-09-22
linux-nextnext-202109222021-09-22

关键词: Linux

近期 Linux 内核的重要补丁(节选)

Architecture-specific

Core kernel

关键词: Linux

Linux 的调度子系统开始引入对 BPF 的支持

The latest area where BPF is looking to expand within the Linux kernel is its CFS scheduler.

来自 Facebook 的 Roman Gushchin 发布了一个补丁系列的早期版本,用于在 Linux CFS 调度器中提供对 BPF 的初步支持,从而使得我们可以编写一些内核外部代码安全地对内核调度策略进行修改。

Roman 对自己补丁的介绍原话如下:"This leads to BPF hooks, which have been successfully used in various kernel subsystems to provide a way for external code to (safely) change a few kernel decisions. BPF tooling makes this pretty easy to do, and the people deploying BPF scripts are already quite used to updating them for new kernel versions. This patchset aims to start a discussion about potential applications of BPF to the scheduler. It also aims to land some very basic BPF infrastructure necessary to add new BPF hooks to the scheduler, a minimal set of useful helpers, corresponding libbpf changes, etc."

基于 Linux 内核调度代码中所增加的对 BPF 的支持,正在讨论的可能性包括根据工作负载提供更好的调度策略、更好的抢占处理以及在实际的 product 环境中尝试不同的策略。

到目前为止,Facebook 感觉在调度程序中使用 BPF 还不错,"We're at a very early stage, however already have seen a nice latency and ~1% RPS wins for our (Facebook's) main web workload."

新闻出处,“Early Patches Bring BPF To The Linux Scheduler”: https://www.phoronix.com/scan.php?page=news_item&px=Linux-BPF-Scheduler

关键词: Linux, BPF, Scheduler

Google 所坚持的 “Upstream First” 策略正在为 Android 揭示美好的未来

Google’s Android had been notorious for all of its downstream patches carried by the mobile operating system as well as various vendor/device kernel trees while in recent years more of that code has been upstreamed. Google has also been shifting to the Android Generic Kernel Image (GKI) as the basis for all their product kernels to further reduce the fragmentation. Looking ahead, Google is now talking of an “upstream first” approach for pushing new kernel features.

一直以来,Google 的 Android 移动操作系统因为包含了的所有下游(未合入内核主线)补丁以及来自各个供应商的内核分支版本而为人诟病。但近年来更多的代码已被上游合并。Google 也一直在转向使用 Android 通用内核映像(Generic Kernel Image 简称 GKI)作为其所有产品内核的基础,以进一步减少碎片化。展望未来,谷歌现在正在努力推动采用 “upstream first” 的方法来开发新的内核特性。

来自 Google 的 Todd Kjos 在 Linux Plumbers Conference (LPC2021) 上谈到了他们的通用内核映像计划。借助 Android 12 及其基于 Linux 5.10 的 GKI 映像,他们进一步减少了碎片化,达到 “几乎消除(nearly eliminated)” 的程度。在 Android 12 GKI 中,大多数供应商(OEM)内核功能要么已被上游引入 Linux 内核,与供应商模块隔离,要么合并到 Android 通用内核中。

Google 在 GKI 方面取得了良好的进展,他们确保供应商适应新方法以减少内核混乱。他们对 2023 年至 2024 年能够完成最终的目标感到很有信心。他们追求 “upstream first development model for new features”,以确保新代码首先进入主线 Linux 内核,而不是直接将将其先保存在 Android 自己的源码仓库中。Google 还承诺 “work towards upstreaming all out-of-tree patches in Android Common Kernels.”,即努力将 目前 Android 通用内核中的所有还未进入内核主线的补丁尽快提交到上游中去。

如果 Google 真的能够做到这一点并认真致力于针对内核新特性采取 “Upstream First”,那将是一件非常棒的事情,让我们对其未来几年的发展拭目以待。

新闻出处,“Google Finally Shifting To “Upstream First” Linux Kernel Approach For Android Features” https://www.phoronix.com/scan.php?page=news_item&px=Android-Linux-Upstream-First

关键词: Google,Linux,Android

Ubuntu 14.04/16.04 LTS 版本支持将延长至十年

Canonical is announcing this morning they are extending the Ubuntu 14.04 LTS “Trusty Tahr” and Ubuntu 16.04 LTS “Xenial Xerus” releases to a ten year lifespan.

Canonical 近日宣布,他们将对 Ubuntu 14.04 LTS “Trusty Tahr” 和 Ubuntu 16.04 LTS “Xenial Xerus” 这两个发行版本的支持周期延长至十年。

Ubuntu 18.04 LTS 和 Ubuntu 20.04 LTS 已经被列入十年支持计划,而随着 Canonical 决定将 14.04 LTS 和 16.04 LTS 也延长到十年,这;这两个 LTS 版本将分别被支持到 2024 年 4 月和 2026 年 4 月。

这两个老旧的 Ubuntu 长期支持版本已在 Canonical 为 organizations 所提供的 extended security maintenance (ESM) 计划下维护了五年,而现在将为付费客户提供长达十年支持。目前的变化只和 14.04/16.04 LTS 有关,18.04/20.04 LTS 依然遵守已经承诺的十年周期不变。

据 Canonical 透露这一针对旧版本的 LTS 扩展计划归因于客户对基础设施升级所带来的经费投入的考量以及对网络安全日益增长的需求。Canonical 的延长安全维护期专注于为客户提供安全更新和重要修复,包括实时修补(live-patching) Linux 内核安全漏洞。

新闻出处,“Canonical Extending Ubuntu 14.04/16.04 LTS Support To Ten Years”: https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-14.04-16.04-Ten-Years

关键词: Ubuntu

联系我们

资讯内容部分来自 “LWN.net“。如果您对某些 LWN 文章感兴趣(譬如希望获得全文翻译的)请扫描二维码加微信联系我们:

tinylab wechat



Read Album:

Read Related:

Read Latest: