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

泰晓Linux知识星球:1300+知识点,520+用户
请稍侯

泰晓资讯·10 月 / 第一期 / 2022

unicornx 创作于 2022/10/13

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

Linux 内核最新消息

上周 6.0 发布后,社区又进入了 merge windows 期。本周资讯中我们重点关注一下看看会有哪些有趣的特性被合入 6.1 版本。

另外根据目前的开发计划和惯例来看,今年的最后一个 Linux 版本 6.1 很可能会成为下一个 LTS 的内核版本。但这也不一定,最近有人猜测如果 6.1 的稳定版年底无法成功发布的话,Linux 6.0 也会成为 LTS 版本,因为 Linux 6.0 看上去更像是一个 LTS 版本,因为它是 Rust 代码引入和其他重大更改合入之前的最后一个版本。正如 Linux stable 版本的维护人员 Greg Kroah-Hartman 所说的:

I usually pick the “last kernel of the year”, and based on the normal release cycle, yes, 6.1 will be that kernel. But I can’t promise anything until it is released, for obvious reasons.

但随着 Linux 6.1 合并窗口期间合入了许多令人兴奋的功能,如新的 AMD GPU IP 支持,Intel DG2 / Alchemist 改进,最初的 Rust 开发基础环境,大型 Btrfs 改进,MGLRU 等等,这使得 6.1 这样一个具备众多优秀特性的版本更有希望被企业和其他寻求长期使用的内核版本的人采用作为 LTS。

按计划,6.1 的合并窗口将于 10 月 16 日关闭,这也标志着 Linux 6.1-rc1 的发布。所以如果不出意外的话,Linux 6.1 的稳定版本可能会在 12 月 4 日或 11 日完成。因此,所以 Linux 6.1 成为下一个 LTS 版本还是很有希望的。

Linux 5.15 LTS 是去年(2021)发布的 LTS 内核版本,目前将持续维护到 2023 年 10 月。但是,如果有足够的组织愿意帮助测试和使用该 LTS 版本,它的维护周期可能会得到延长,类似于社区现在已经承诺支持 Linux 5.10 LTS 直到 2026 年 12 月。对于 Linux 6.1 LTS 大抵也是如此,一般情况下它的维护周期将到 2025 年 12 月之前停止,但如果有足够的用户和人员愿意测试候选版本等,那么今年的 LTS 内核的维护时间将延长到六年,也就是直到 2028 年 12 月。

https://www.kernel.org/ updated by 2022/10/13

分支类型版本发布时间
mainline6.02022-10-02
stable6.0.12022-10-12
stable5.19.152022-10-12
longterm5.15.732022-10-12
longterm5.10.1472022-10-05
longterm5.4.2172022-10-07
longterm4.19.2612022-10-05
longterm4.14.2952022-09-28
longterm4.9.3302022-09-28
linux-nextnext-202210122022-10-12

关键词: Linux

MGLRU 补丁成功合入 Linux 6.1

MGLRU has successfully landed in Linux 6.1 as one of the best kernel innovations of the year to be mainlined. Along with that the new Maple Tree data structure was also merged.

据悉,MGLRU 已成功被合入 Linux 6.1 主线,作为今年内核的最佳创新之一。与此同时,新的 Maple Tree 数据结构也被合并。这两个补丁在被 Andrew Morton 合入 MM 分支后,Linus Torvalds 连夜就将其合入了主线。

现在,我们已经可以在在主线 Linux 内核上尝试 MGLRU 特性,但需要手动在 Kconfig 中打开 LRU_GEN,因为这个选项在默认情况下尚未打开。MGLRU 旨在通过这种新的高性能 LRU 实现来解决 Linux 糟糕的页面回收行为,以及避免过度占用内存。MGLRU 已被证明在各种基准测试中是有益的,特别是在内存受限的系统上。Google 设计了 MGLRUU,并且已经在 Chrome 操作系统和 Android 系统上使用了这种内核功能。

MGLRU 基准测试看起来很棒,很高兴看到 MGLRU 和 Maple Tree 数据结构这两个功能在主线外徘徊了这么多年,现在终于被合并了。

新闻出处,“MGLRU Merged For Linux 6.1”: https://www.phoronix.com/news/MGLRU-In-Linux-6.1

关键词: Linux, MGLRU, Google

Kernel Memory Sanitizer 合入 Linux 6.1

In addition to Linux 6.1 x86_64 defaulting to warning over W+X mappings and other security-minded improvements this merge window, another benefit of this next kernel is the mainlining of the Kernel Memory Sanitizer (KMSAN).

Kernel Memory Sanitizer 现在已合入内核主线,可用于动态地检测错误。KMSAN 专注于在内核代码中查找未初始化的值。和其他的 sanitizer 一样,KMSAN 也依赖于 compiler instrumentation 来提供此功能。虽然该功能已合入 Linux 6.1,但文档上说该特性还不能用于实际工作,因为它 “大大增加了” 内核内存的占用量,并会显著地影响系统性能。

如果你想要尝试要运行 Kernel Memory Sanitizer 来查找未初始化的值,需要在编译内核时打开 CONFIG_KMSAN 开关,并且需要使用 14 版本或更高版本的 LLVM Clang 编译器。

新闻出处,“Kernel Memory Sanitizer Lands For Linux 6.1”: https://www.phoronix.com/news/Linux-6.1-KMSAN

关键词: Linux,KMSAN

‎RISC-V 在 Linux 6.1 中引入的新特性

Not that you are likely to connect a CD/DVD drive to a RISC-V system in 2022+, but RISC-V’s default kernel configuration with the upcoming Linux 6.1 kernel is adding support for CD-ROM file-systems.

虽然我们在 2022 年已经很少将 CD 或者 DVD 驱动器连接到 RISC-V 系统,但在即将推出的 Linux 6.1 内核版本中,针对 RISC-V 架构的默认内核配置还是增加了对 CD-ROM 文件系统的支持,譬如 ISO9660、Joliet 和 ZISOFS 文件系统。显然这么做并不是因为 CD 这类媒体介质在 RISC-V 系统上又会再次流行,而是某些安装程序介质仍然可能使用这些文件系统映像中的一种进行分发。某些场景下还可能涉及创建以此类格式归档镜像文件。

针对这些文件系统的驱动程序早已在 RISC-V 上构建良好,此次更改只是为 ISO960 / Joliet / ZISOFS 在默认构建配置 defconfig 中设置为默认启用。

针对 Linux 6.1 的 RISC-V 架构,除了上述特性外,合并窗口中还为 RISC-V 64 位系统启用了 transparent huge-pages swap (TH_SWAP),默认 NR_CPUS 增加到 512。RISC-V 的 CPU 拓扑子系统也有所改进,可以确保 RISC-V 系统针对更多配置报告正确的 CPU 拓扑信息。

新闻出处,“RISC-V Adds Support For CD-ROM Images To Its Default Linux 6.1 Kernel Configuration”: https://www.phoronix.com/news/Linux-6.1-RISC-V

关键词: Linux,‎RISC-V

ARM 在 Linux 6.1 中支持了更多的新硬件

The Arm SoC and platform enablement pull requests were sent out this morning that provide the Linux 6.1 kernel with support for several new SoCs, various platforms including some newer smartphones, and other hardware support improvements.

针对 ARM 架构上新的 SoC 和 Platform 支持的 PR 已发出,为 Linux 6.1 内核提供了对几个新款 SoC 的支持,以及各种平台,包括一些较新的智能手机,以及其他硬件支持改进。

本次新增的 SoC 包括联发科 MT8186。但值得注意的是,主线 Linux 6.1 内核仍然没有在上游主线中增加对苹果 M1 Ultra SoC 的支持。对 Apple M1 Ultra 支持仍在继续开发中,但我们可以在 Asahi Linux 发行版中提前尝鲜。 AMD Pensando Elba 这款 SoC 的支持也接近完成,但还没有进入 Linux 6.1。还有几款智能手机已经被主线内核支持,包括 PinePhone Pro。

以下摘录了部分 PR 中的内容,完整信息请参考 https://lkml.org/lkml/2022/10/6/254:

  • Linux 6.1 支持的新 SoC 包括用于 Chromebook 平板电脑的 SoC: 来自联发科的 MT8186;作为 K3 系列一部分的 TI AM62A;作为 i.MX8 系列的另一个成员的 NXP 的 i.MX8DXL,以及 IPQ8064 的变体,来自 Qualcomm 的 SoC:IPQ8064-v2.0 / IPQ8062 / IPQ8065。
  • 几款新的智能手机可以使用主线 Linux 6.1 内核运行,包括 Sony 的 Xperia 1 IV 和 Samsung 的 Galaxy E5 / E7 / Grand Max。
  • 值得注意的是:PINE64 PinePhone Pro 现在也可以在主线 Linux 6.1 内核上运行。
  • ……

新闻出处,“More Arm SoCs, Smartphones & NVIDIA Control Backbone Bus Enabled With Linux 6.1”: https://www.phoronix.com/news/Linux-6.1-Arm-Hardware

关键词: Linux,ARM

Debian 达成了一个合理的共识方案来处理 Non-Free Firmware

Debian developers have been figuring out an updated stance to take on non-free firmware considering the increasing number of devices now having open-source Linux drivers but requiring closed-source firmware for any level of functionality. The voting on the non-free firmware matter has now concluded and the votes tallied…

考虑到现在越来越多的设备使用了开源的 Linux 驱动程序,但仍然依赖于闭源的固件,对此现状,Debian 社区更新了原有的立场,关于非自由固件问题的投票现在已经结束,投票统计结果表明,第五项选择 “Change SC for non-free firmware in installer, one installer” 胜出,对该选线的详细说明原文摘录如下:

The Debian Social Contract is replaced with a new version that is identical to the current version in all respects except that it adds the following sentence to the end of point 5:

“The Debian official media may include firmware that is otherwise not part of the Debian system to enable use of Debian with hardware that requires such firmware.”

The Debian Project also makes the following statement on an issue of the day:

We will include non-free firmware packages from the “non-free-firmware” section of the Debian archive on our official media (installer images and live images). The included firmware binaries will normally be enabled by default where the system determines that they are required, but where possible we will include ways for users to disable this at boot (boot menu option, kernel command line etc.).

When the installer/live system is running we will provide information to the user about what firmware has been loaded (both free and non-free), and we will also store that information on the target system such that users will be able to find it later. Where non-free firmware is found to be necessary, the target system will also be configured to use the non-free-firmware component by default in the apt sources.list file. Our users should receive security updates and important fixes to firmware binaries just like any other installed software.

We will publish these images as official Debian media, replacing the current media sets that do not include non-free firmware packages.

基本上,Debian 安装程序介质现在将被允许包含非自由固件,并在必要时自动加载和使用它,同时会通知用户,等等。考虑到当今硬件生态系统的状态,这是合理的也是符合常识的,因为至少用户将能够轻松使用他们的显卡,网络驱动等。此外,许多现代 CPU 的在解决安全漏洞问题时也需要更新闭源的微码。总而言之,这个决议还是比较令人满意的,因为它将为 Debian 在现代系统上提供更愉快的体验,类似于其他的 Linux 发行版。

新闻出处,“Debian Chooses A Reasonable, Common Sense Solution To Dealing With Non-Free Firmware”: https://www.phoronix.com/news/Debian-Non-Free-Firmware-Result

关键词: Debian, Non-Free Firmware

Wireshark 4.0 发布

Wireshark 4.0 has been released as the newest version of this leading open-source network protocol analyzer.

作为世界领先的开源网络协议分析软件工具,Wireshark 刚刚发布了最新版本 4.0。

Wireshark 4.0 引入了更强大的显示筛选器语法,该语法具有许多新的扩展、重新设计的 Conversion and Endpoint 对话框、改进的默认主窗口布局、改进了十六进制转储导入、更快的 MaxMind 地理位置处理以及各种其他改进和修复。另外从 Wireshark 4.0 开始,该项目不再支持生成 32 位 Windows 的版本。

如需下载或了解有关这款出色的协议分析仪的更多信息,请访问 Wireshark.org:https://www.wireshark.org/

新闻出处,“Wireshark 4.0 Network Protocol Analyzer Released”: https://www.phoronix.com/news/Wireshark-4.0-Released

关键词: Wireshark

联系我们

欢迎扫描二维码加微信联系我们:

tinylab wechat



Read Album:

Read Related:

Read Latest: