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

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

泰晓资讯·6 月 / 第三期 / 2022

unicornx 创作于 2022/06/23

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

  • Linux 内核最新消息

https://lkml.org/lkml/2022/6/19/293

Linus Torvalds 先生在父亲节那天花了一些时间合并了最后一分钟收到的 PR,并发布了 Linux 5.19-rc3 作为最新的每周测试内核。

Linux 5.19-rc3 已经加入了与最新的 Intel CPU 微码一起配套使用的 MMIO Stale Data 漏洞缓解补丁。MMIO Stale Data 补丁已经后向移植到稳定的内核系列。

至于其他变化,Torvalds 在 5.19-rc3 公告中写道:

It’s Sunday afternoon, which means it’s time for another rc release. 5.19-rc3 is fairly small, and just looking at the diffstat, a lot of it ends up being in the documentation subdirectory. With another chunk in selftests. But we do have real code changes too, fairly evenly split between drivers, architecture fixes, and “other code”. That other code is mostly filesystem fixes, but also some core kernel and networking. Full shortlog appended for your enjoyment, but so far everything looks fine. Knock wood,

目前来看,Linux 5.19 稳定版在 7 月底左右发布的计划维持不变。

https://www.kernel.org/ updated by 2022/6/23

分支类型版本发布时间
mainline5.19-rc32022-06-19
stable5.18.62022-06-22
stable5.17.15 [EOL]2022-06-14
longterm5.15.492022-06-22
longterm5.10.1242022-06-22
longterm5.4.2002022-06-22
longterm4.19.2482022-06-16
longterm4.14.2842022-06-16
longterm4.9.3192022-06-16
linux-nextnext-202206222022-06-22

关键词: Linux

  • Rust For Linux 有望在 5.20 合入内核主线

Speaking this morning at The Linux Foundation’s Open-Source Summit, Linus Torvalds talked up the possibilities of Rust within the Linux kernel and that it could be landing quite soon – possibly even for the next kernel cycle.

Linux 基金会的开源峰会于本周一到周五在 Texas 的 Austin 举行,Linus Torvalds 在周一的会议的 keynote 上发表讲话时谈到了采用 Rust 开发 Linux 内核的可能性,并且它可能很快就会被内核主线支持,最乐观的估计甚至可能就在下一个 5.20 版本。

目前还没有收到任何与 Rust for Linux 相关的 PR,但针对内核启用 Rust 的一些基础代码已经开始稳定下来,包括基本的基础框架、一些基本的示例驱动程序等。

上个月发布了最新的 Rust for Linux 补丁,这些补丁带来了更多的功能并完成了额外的审查。如前所述,Linux 内核中的这种 Rust 支持在构建内核时仍然是可选的,具体取决于您是否希望仅在 Rust 代码中实现支持或任何内核功能。

Linux 5.20 的合并窗口将在 7 月底左右等 Linux 5.19 稳定版发布后打开,因此届时我们将查看 Rust 相关的 PR 是否已提交以及是否适合进入下一个内核版本。事情的进展已经得到了 Linus 的祝福,这并不太人感到意外。

Linux 5.20 已经让人充满了期待,值得我们注意的包括一些性能优化、新的硬件支持,更多的 AMD 支持工作,以及 RDNA3 有望在该内核版本中就绪,另外我们还可能会看到 MGLRU 合入主线,以及预期的其他功能。

更多介绍请阅读新闻出处,“Linus Torvalds: Rust For The Kernel Could Possibly Be Merged For Linux 5.20​”: https://www.phoronix.com/scan.php?page=news_item&px=Rust-For-Linux-5.20-Possible

关键词: Linux, Rust

  • Linux 5.20 中对文件读写的性能改进值得期待

Adding to the list of features slowly building up that will be destined for the Linux 5.20 cycle, Jens Axboe has queued up the support for async buffered writes with XFS when using IO_uring can deliver some significant performance advantages.

Linux 5.20 中的新功能列表正在逐渐增加,来自 Meta 的 Stefan Roesch 提交了一个可以显著提升性能优势的补丁,这个改进在同时使用 XFS 和 IO_uring 时启用异步缓冲写入(async buffered writes)。Stefan Roesch 解释说:"This patch series adds support for async buffered writes when using both xfs and io-uring. Currently io-uring only supports buffered writes in the slow path, by processing them in the io workers. With this patch series it is now possible to support buffered writes in the fast path. To be able to use the fast path the required pages must be in the page cache, the required locks in xfs can be granted immediately and no additional blocks need to be read form disk." 目前 io-uring 仅支持通过 io worker,在慢速路径中实现缓冲写入,这个补丁系列现在可以支持快速路径中的缓冲写入。为了能够使用快速路径,所需的页面必须在页面缓存中,这样可以立即获取 xfs 中所需的锁,不需要从磁盘中读取额外的块。

目前测试的性能数据令人鼓舞,对于顺序的写入测试,IOPS 最低 77k,最高 209k;带宽介于 314MB/s 和 854MB/s 之间,延迟时间介于 9600ns 到 120ns 之间。 在 XFS 上,基于 IO_uring 的数据领先于使用 libaio 的性能。

IO_uring 和块子系统维护者 Jens Axboe 也补充说,对其他文件系统的支持正在进行中,预计下一个尝试的会是 Btrfs。

更多介绍请阅读新闻出处,“Linux 5.20 To Support Async Buffered Writes For XFS + IO_uring For Big Performance Boost”: https://www.phoronix.com/scan.php?page=news_item&px=Linux-520-XFS-uring-Async-Buff

关键词: Linux, IO_uring, XFS

  • RISC-V International 发布了 2022 年的第一批新规范

RISC-V International announced their first batch of new specifications for 2022. This includes approving of Efficient Trace for RISC-V (E-Trace), RISC-V Supervisor Binary Interface (SBI), RISC-V UEFI, and RISC-V Zmmul multiply-only extensions.

RISC-V International 发布了 2022 年的第一批新规范。这批新的扩展规范包括 RISC-V Efficient Trace (E-Trace)、RISC-V Supervisor Binary Interface (SBI)、RISC-V UEFI 和 RISC-V Zmmul multiply-only。

RISC-V UEFI 扩展将 UEFI 标准引入 RISC-V 平台。高效的处理器 Trace 支持也很有趣,Supervisor Binary Interface (SBI) 定义了硬件平台和操作系统内核之间的固件抽象层。RISC-V SBI 已经被 Linux 支持并被一些基于 RISC-V 的实现所采用,而现在该规范获得了正式的批准。

新闻出处,“RISC-V Announces Initial Batch Of 2022 Specifications: SBI, UEFI, Zmmul, E-Trace”: https://www.phoronix.com/scan.php?page=news_item&px=RISC-V-2022-New-Specs

关键词: RISC-V, Specifications

  • Think Silicon 展示首款基于 RISC-V 的 3D GPU

At the Embedded World conference happening this week in Nürnberg, Think Silicon is showing off the first production RISC-V 3D GPU design.

在本周于 Nürnberg(纽伦堡)举行的 Embedded World Conference 上,Think Silicon 展示了首款量产的基于 RISC-V 的 3D GPU 设计。

Think Silicon NEOX G 系列和 A 系列是他们首款基于 RISC-V 的低功耗 GPU 设计。在 Embedded World 的发布会上,Think Silicon 的新闻稿是这样评价这款处理器的:

NEOX™G (graphics) & A (deep learning accelerator) Series IP represent a new era of smart GPU architectures with programable compute shaders running on a real-time operating system (RTOS) and supported by light-weight graphics and machine learning frameworks. The heavily multi-threaded system can be easily customized for graphics, machine learning, vision/video processing, and general-purpose compute workloads through configurable programming libraries using the same hardware blocks. The new offering serves as a GPU platform to be implemented in 32-bit SoCs addressing a myriad of applications including next-generation smartwatches, augmented reality (AR) eyewear, video for surveillance and entertainment, and smart displays for point-of-sale/point-of-interaction terminals. NEOX™ IP pre-evaluation systems are available for customer testing and Think Silicon will be demonstrating 3D/2D graphics and machine learning applications at Embedded World.

G 系列侧重图形加速,而 A 系列侧重深度学习加速。这些处理器采用了新的智能 GPU 框架,通过在实时操作系统上运行 programable compute shaders。通过使用相同硬件块的可配置编程库,可以轻松针对图形、机器学习、视觉/视频处理和通用计算工作负载定制大量多线程系统。新产品作为一个 GPU 平台,可以集成在 32 位 SoC 中,适用于各种应用场景,包括下一代智能手表、增强现实 (AR) 眼镜、用于监控和娱乐的视频以及用于销售点的智能显示器或者交互终端。Think Silicon 还提供了 NEOX™ IP 预评估系统可供客户测试,同时该公司还将在 Embedded World 上展示 3D/2D 图形和机器学习应用程序。

关于产品的技术设计细节,我们可以通过 Think Silicon 在 NEOX RISC-V GPU IP 上的产品页面了解到详情:

NEOX™ is a parallel multicore and multithreaded GPU architecture based on the RISC-V RV64C ISA instruction set with adaptive NoC. The number of cores varies from 4 to 64 organized in 1-16 cluster elements, each configured for cache sizes and thread counts . Depending on cluster / core configuration, NEOX™ compute power is ranging from 12.8 to 409.6 GFLOPS at 800MHz with support for FP16, FP32 and optionally FP64 and SIMD instructions.

可见该 GPU 采用的是一种基于 RISC-V RV64C ISA 指令集和自适应 NoC 的并行多核和多线程 GPU 架构。内核的数量从 4 到 64 不等,组织在 1-16 个集群单元中,每个单元都针对缓存大小和线程数进行了配置。根据集群/核心配置,NEOX™ 计算能力在 800MHz 时从 12.8 到 409.6 GFLOPS,支持 FP16、FP32 和可选的 FP64 和 SIMD 指令。

更多介绍请阅读新闻出处,“Think Silicon Shows Off First RISC-V 3D GPU”: https://www.phoronix.com/scan.php?page=news_item&px=ThinkSilicon-NEOX-RISC-V-GPU

关键词: RISC-V, GPU, Think Silicon

  • Meta 为 LLVM 的 Clang C/C++ 编译器开发新的 IR,可以提高其执行速度

Meta (Facebook) engineers on Monday announced CIR, a proposed new intermediate representation (IR) for LLVM’s Clang C/C++ compiler front-end that is based on the MLIR representation.

来自 Meta (Facebook) 的工程师于本周一(21 日)宣布了 “CIR”,这是一种新的针对 LLVM 的 Clang C/C++ 编译器前端的中间表示 (intermediate representation,IR),它基于 MLIR 表示。之所以叫 “CIR”,因为这是 “Clang IR” 或 “C/C++ IR” 的缩写。这个项目是 Meta/Facebook 的另一个开源项目,他们希望该方案最终能够进入上游。他们希望这个用于 Clang 的新 IR 将改进现代 C++ 编程的诊断,允许更多 C++ 高级优化,并解决 Clang 的 AST / LLVM IR 的其他缺点。受 Swift 的 SIL 和 Rust 的 HIR/MIR 中间表示的启发,Meta 希望 CIR 可以为 C++ 程序员提供类似的改进。

CIR 的目标之一是为正确性/安全性/性能提供更好的诊断。这最终可能导致更安全的 C++ 程序。CIR 在发布公告中指出,根据 Google Chrome 团队的数据,他们大约 70% 的高严重性安全错归因于内存不安全问题。其中一半是释放内存后又错误地使用。以 std::optional 为例,CIR 可以引入可选 derefs 指令 (cir.std.optional.deref),如果代码不对对象是否包含有效值进行检查 (cir.std.optional.has_value) ,则编译期间将诊断报错

有兴趣了解有关 CIR 的更多信息的人可以访问 LLVM Discourse 公告(https://discourse.llvm.org/t/rfc-an-mlir-based-clang-ir-cir/63319)。当前的 CIR 代码和文档托管在 GitHub 上 https://facebookincubator.github.io/clangir/

LLVM 创始人 Chris Lattner 也对 CIR 发表了评论,多次提到他是它的 “超级粉丝”。他还希望它成为一个 LLVM 孵化器项目,并让更多的 LLVM 开发人员致力于此代码并最终成为上游的解决方案。有道理预计 CIR 会成为另一个值得关注的有趣的 LLVM 特性,并进一步改进这个领先的开源编译器框架。

更多介绍请阅读新闻出处,“Meta Developing A New IR For LLVM’s Clang C/C++ Compiler With Better Speed, Security”: https://www.phoronix.com/scan.php?page=news_item&px=Meta-Developing-Clang-IR-CIR

关键词: LLVM,CIR,Meta

  • Mold v1.3 高速链接器发布,改进了 LTO

Mold 1.3 has been released today as the newest version of this high-speed linker that serves as an alternative to GNU Gold and LLVM’s LLD.

作为一款主打高速的链接器的最新版本 Mold 1.3 于上周六发布,其目标是替代 GNU Gold 和 LLVM 的 LLD。

Mold 1.3 继续改进了对 Link-Time optimization (LTO) 的支持,现在可以在高运行负载下更可靠地工作,而不是像以前那样在 Linux 上的执行密集计算时会发生偶尔中止的状况。 Mold 1.3 现在也可以使用启用 LTO 的 GCC 12 进行构建,该版本还修复了在 32 位 host 上的 LTO 问题以及其他更改。Mold 1.3 还增加了对 --icf=safe 选项的支持,用于查找和删除可以安全合并的相同代码,这通常可以将二进制文件的输出大小减少几个百分点。Mold 1.3 的代码库现在也清除了 AddressSanitizer 和 UndefinedBehavior conditions,支持 --package-metadata 选项,以及各种其他修复和改进。

我们可以访问 Github(https://github.com/rui314/mold/releases/tag/v1.3.0)的下载 Mold 1.3 并获取更多详细信息。

新闻出处,“Mold 1.3 High Speed Linker Released With LTO Improvements”: https://www.phoronix.com/scan.php?page=news_item&px=Mold-1.3-Released

关键词: Mold, LTO

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: