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

基于泰晓RISC-V实验箱的Linux公开课
请稍侯

泰晓资讯·1 月 / 第一期 / 2023

unicornx 创作于 2023/01/12

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

Linux 内核最新消息

https://lkml.org/lkml/2023/1/8/206

西方传统的圣诞节和新年假期已经过去,内核开发人员和测试人员和参与 Linux 内核开发的其他人员也重新投入到工作中,这次 Linus Torvalds 特别提前几个小时发布了 Linux 6.2-rc3。针对这次发布,Torvalds 评论道:

Here we are, another week done, and things are starting to look a lot more normal after that very quiet holiday week that made rc2 so very small.

Nothing in particular here stands out: the bulk of this is driver fixes (networking, gpu, block, virtio - but also usb, fbdev, rdma etc, so a little bit of everything). That is as should be, and just matches where the bulk of the code is.

Outside of the various driver fixes, we’ve got core networking, some filesystem fixes (btrfs, cifs, f2fs and nfs), and some perf tooling work.

今年的开端看起来一切正常,新的 RC 版本里没有什么特别突出的:其中大部分是驱动程序修复(网络,GPU,块,virtio,还有 USB,fbdev,rdma 等,所以所有东西都有一点)。除了各种驱动程序修复之外,提交的补丁还涉及网络子系统,一些文件系统修复(btrfs,cifs,f2fs 和 nfs)以及一些性能跑分工具。

预计将于 2 月发布 6.2 的稳定版。

https://www.kernel.org/ updated by 2023/01/12

分支类型版本发布时间
mainline6.2-rc32023-01-08
stable6.1.42023-01-07
stable6.0.182023-01-07
longterm5.15.862022-12-31
longterm5.10.1622023-01-04
longterm5.4.2282022-12-19
longterm4.19.2692022-12-14
longterm4.14.3022022-12-14
longterm4.9.337 [EOL]2023-01-07
linux-nextnext-202301112023-01-11

关键词: Linux

Linux 停止对 4.9 LTS 系列的维护

The Linux 4.9 kernel was released back in 2016 and Greg Kroah-Hartman today issued the final point release for that kernel series with the Long Term Support (LTS) period now expired.

Greg Kroah-Hartman 于上周六发布了 Linux 4.9 长期维护版本系列的最后一个版本 4.9.337,自 4.9 系列从 2016 年第一个小版本发布至今终于走到尽头。在发布邮件中 Greg 是这么说的:

Note, this is the LAST 4.9.y kernel to be released.

This kernel is now END-OF-LIFE and you should move to 4.14.y at the least, 6.1.y is the better option.

As I stated in the -rc announcement, if this is a problem for anyone, please let me know. I am already working with a few groups to move them off of this now-expired kernel tree, feel free to reach out if you need help as well.

Linux 4.9 给我们带来了令人兴奋的对 AMDGPU 的实验性 GCN 1.0 支持、针对 Intel Atom CPU 的 Intel P-State 改进、Intel Memory Protection Keys、英特尔集成传感器中枢 (ISH) 介绍以及其他在今天的内核活动中似乎相当平凡的工作。

与此同时,Linux 4.14 LTS 将维护到明年 1 月之前,Linux 4.19 LTS 的截止时间是 2024 年底,Linux 5.4 LTS 是 2025 年底,Linux 5.10 LTS 是 2026 年底,Linux 5.15 LTS 目前计划在明年 10 月到期,但如果有足够用户对它感兴趣,维护期可能会从 2 年延长到 6 年。

同时,Linux 6.1 预计将成为 2022 年的 LTS 内核版本,尽管尚未正式宣布。Greg KH 今天还发布了 Linux 6.1.4 作为该内核的最新小版本。

新闻出处,“Linux 4.9.337 Released To End Out The 2016 LTS Series”: https://www.phoronix.com/news/Linux-4.9.337-LTS-Over

关键词: Linux

MGLRU 最新进展报告

While MGLRU is a nice performance win for the Linux kernel now available when enabling it for v6.1+ kernel builds, during my testing I did encounter a regression around the SVT-AV1 video encode performance at least and a fix is working its way toward mainline.

MGLRU 对于改进 Linux 内核性能来说是一个大的进步,在构建 v6.1+ 的内核时可以启用该特性。在一些 MGLRU 测试中,启用 Multi-Gen LRU 后内核性能提升非常好,但在运行 SVT-AV1 开源视频编码器时会遇到了一些性能衰退,幸运的是,MGLRU 的负责人,来自 Goolge 的 Yu Zhao 很快就解决了这个问题,现在这个补丁已经在 mm-unstable 分支上排队,等待合入内核。

此外,我们还添加了另一个令人感兴趣的补丁 mm-unstable:mm:添加 vma_has_recency()。有了这个补丁,在系统内存压力下随机访问映射文件的 IOPS 性能可以提高 6% ~ 8%。

这些补丁和其他改进预计将在 Linux 6.3 合入内核。

新闻出处,“An MGLRU Performance Regression Fix Is On The Way Plus Another Optimization”: https://www.phoronix.com/news/MGLRU-SVT-Performance-Fix

关键词: Linux,MGLRU

使用 LLVM 的 Clang 编译 Linux 内核已于 2022 年成熟

Over the past few years it’s become possible to compile the mainline Linux kernel with LLVM/Clang compared to the long-standing dependence on using the GCC compiler. While it’s been possible for 3+ years to use the mainline Linux kernel and mainline Clang for building a working x86_64 and AArch64 kernel, the process and support continues to mature.

在过去的几年里,除了我们长期依赖的使用 GCC 编译器来编译内核之外,使用 LLVM / Clang 来编译主线 Linux 内核也逐渐成为另一种可能。虽然使用主线 Clang 来构建主线 Linux 内核的 x86_64 和 AArch64 版本的尝试已经有 3 年多的时间了,但这个过程和支持程度依然在继续完善中。

Nathan Chancellor 在 Linux 基金会和 Google 的资助下一直在维护 “ClangBuiltLinux” 这个项目,他针对 2022 年过去一年的成就做了一个总结。

Nathan Chancellor 在 2022 年 “ClangBuiltLinux” 的工作中的成就包括:解决内核中的许多编译器警告、针对 Control Flow Integrity(CFI) 的相关更改、改进 LLVM 环境变量处理,使其更加灵活、工具改进和其他工作。此外,还有大量的测试,以确保最新的主线 Linux 内核 Git 代码和最新的 LLVM/Clang 编译器代码之间配合正常等。

如果您对过去一年来使用 Clang 编译 Linux 内核所取得的进步感兴趣,可以访问 https://nathanchance.dev/posts/2022-cbl-retrospective/ 了解更多信息。ClangBuiltLinux 项目的最新构建状态和其他项目信息可以在 GitHub (https://clangbuiltlinux.github.io/)上找到。

新闻出处,“Compiling The Linux Kernel With LLVM’s Clang Matured In 2022”: https://www.phoronix.com/news/Clang-Built-Linux-2022-Recap

关键词: Linux, Clang

RISC-V 对休眠的支持接近合入 Linux 内核主线

While the open RISC-V processor architecture has proven to be highly successful, one of the features that it hasn’t yet supported with the Linux kernel to this point has been system hibernation / suspend-to-resume, but that support is now on the way.

虽然开放的 RISC-V 处理器架构已被证明非常成功,但到目前为止,针对该架构,Linux 内核还有一些功能尚未支持,其中包括了本文涉及的系统休眠(system hibernation) 和挂起恢复(suspend-to-resume),但对该特性的支持已经开始。

到目前为止,RISC-V 的应用更多地围绕开发板,物联网设备以及其他通常不使用休眠/挂起的场景,这不是什么大问题。但随着 RISC-V 对消费类设备的推动,休眠挂起功能变得更加重要。幸运的是,RISC-V 供应商 StarFive 一直致力于对 RISC-V 64 位的休眠支持,并发布了他们的最新补丁,并希望将其合入内核主线。

这次(9 日)发布的是 StarFive 补丁的第二次迭代,用于启用 RV64 的 RISC-V 休眠支持(至少目前还没有对 RV32 的休眠支持),并进行了必要的内核支持更改。对 RISC-V 内核代码进行一些更改是必要的,但随后会遵循内核的其余休眠代码路径。这种挂起到磁盘的功能已在 StarFive 的 VisionFive 2(VF2)SBC 板上测试成功。而目前还不支持对 ACPI 平台模式的支持。

新闻出处,“RISC-V Hibernation Support / Suspend-To-Disk Nears The Linux Kernel”: https://www.phoronix.com/news/RISC-V-Hibernation-Linux

关键词: Linux, RISC-V

Mold 发布 v1.9,支持更多 CPU 架构

Mold as the high performance linker alternative to GNU Gold and LLVM LLD is out with another feature release.

Mold, 作为一款 GNU Gold 和 LLVM LLD 的链接器替代品,其高速性能是其卖点。本月初(6 日)发布了最新版本 v1.9。Mold 1.9 链接器版本的新功能增加了对 32 位 PowerPC、SH-4 和 DEC Alpha 等新的 CPU 类型的支持。这些 CPU 架构并不令人兴奋,但这表现出 Mold 在可移植性上的强大能力,并且可能会引起一些用户和业余爱好者的兴趣。

Mold 1.9 发行说明中说:”you can typically port mold to a new target just by writing a few hundreds lines of target-specific code.” ,也就是说我们通常只需编写几百行特定于体系架构的代码,就可以为 Mold 增加新的处理器目标支持。Mold 现在支持的架构包括 DEC Alpha,32 位 Arm,AArch64,32 位 x86,m68k,PowerPC 32 位,PowerPC 64位,RISC-V,s390x,SH-4,SPARC 64 位和 x86_64。

新闻出处,“Mold 1.9 Released With Support For More CPU Architectures”: https://www.phoronix.com/news/Mold-1.9-Released

关键词: Mold

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: