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

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

泰晓资讯·7 月 / 第二期 / 2022

unicornx 创作于 2022/07/14

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

  • Linux 内核最新消息

https://lkml.org/lkml/2022/7/10/307

对于 Linux 5.19 的开发来说,上周又是幸运的一周,rc6 如期发布。没有什么特别突出的问题,主要是大量的小修复,其中大部分是有关声音和网络驱动程序的修复,以及一些 arm64 dts 文件更新。Linus Torvalds 在发布邮件中的原话如下:

Things looking fairly normal for rc6, nothing here really stands out. A number of small fixes all over, with the bulk being a collection of sound and network driver fixes, along with some arm64 dts file updates.

The rest is some selftest updates, and various (mostly) one-liners all over the place. The shortlog below gives a good overview, and is short enough to just scroll through to get a flavor of it all.

Perhaps somewhat unusually, I picked up a few fixes that were pending in trees that haven’t actually hit upstream yet. It’s already rc6, and I wanted to close out a few of the regression reports and not have to wait for another (possibly last, knock wood) rc to have them in the tree.

看来如果不出意外,Linux 5.19 稳定内核应该会在 7 月底左右发布。

https://www.kernel.org/ updated by 2022/7/14

分支类型版本发布时间
mainline5.19-rc62022-07-10
stable5.18.112022-07-12
stable5.17.15 [EOL]2022-06-14
longterm5.15.542022-07-12
longterm5.10.1302022-07-12
longterm5.4.2052022-07-12
longterm4.19.2522022-07-12
longterm4.14.2882022-07-12
longterm4.9.3232022-07-12
linux-nextnext-202207132022-07-13

关键词: Linux

  • 内核中优化后的 memchr() 速度提高了约 4 倍

A set of proposed patches promise to make the Linux kernel’s memchr() implementation faster for locating a character within a block of memory. In tests carried out by the developer, the new implementation can be nearly four times faster on large searches.

一组提议的补丁承诺使 Linux 内核的 memchr() 实现更快地在内存块中定位字符。在开发人员进行的测试中,新的实现在大型搜索上可以快四倍。

本周日(7/10)Linux 内核收到了一个最新的针对 memchr() 进行优化的补丁,优化的目的是加速这个函数的运行,对于长字符串,该函数的执行速度可以提高约 4 倍。提交补丁的 Yu-Jen Chang 解释说:

The original version of memchr() is implemented with the byte-wise comparing technique, which does not fully use 64-bits or 32-bits registers in CPU. We use word-wide comparing so that 8 characters can be compared at the same time on CPU. This code is base on David Laight’s implementation.

We create two files to measure the performance. The first file contains on average 10 characters ahead the target character. The second file contains at least 1000 characters ahead the target character. Our implementation of “memchr()” is slightly better in the first test and nearly 4x faster than the original implementation in the second test.

memchr() 原来的版本是使用逐字节比较技术实现的,它没有完全使用 CPU 中的 64 位或 32 位寄存器。新的方法在比较内存时使用了 word-wide 的方式,以便在 CPU 上可以同时比较 8 个字节。此代码基于 David Laight 的实现。Yu-Jen 创建了两个文件来测试其性能。第一个文件在搜索的目标字符前面平均包含 10 个字符。第二个文件在搜索的目标字符前面至少包含 1000 个字符。改进后的 memchr() 针对第一个文件的测试在优化速度上比原来好一点,但优势不大,但在针对第二个文件的测试中比原始实现快了近 4 倍。

对于这种 micro-benchmarking 测试 memchr() 的表现可能很好,但在大部分的实际用户场景中可能体现并不明显,特别是当性能的大幅提升依赖于测试对象是非常长的字符串。在 Linux 内核源代码树中,大约有 129 处调用了 memchr() 以及更多的 memchr() 的变种,范围从 Linux 内核工具到文件系统代码和各种驱动程序中都会被使用。

更多介绍请阅读新闻出处,“Optimized memchr() Implementation For The Linux Kernel Up To ~4x Faster​”: https://www.phoronix.com/scan.php?page=news_item&px=Linux-Kernel-Faster-memchr

关键词: Linux, memchr()

  • Asahi Linux 即将发布适用于 Apple M2 硬件的版本

While Apple just recently introduced their first M2-powered Apple Silicon devices, thanks to the dedication of Hector Martin with Asahi Linux and not too many breaking changes over the M1, Asahi Linux is looking at “soon” having a Linux release to support the new platform.

Apple 最近刚刚推出了第一款基于 M2 的 Apple Silicon 设备,由于 Hector Martin 对 Asahi Linux 的贡献以及 M2 相对于 M1 没有太多重大变化,Asahi Linux 正在考虑 "soon" 发布一个 Linux 版本来支持 M2。

在收到新硬件的几天内,Hector Martin 就在 Apple M2 上启动了 Linux。但是仍然需要实现很多对外围设备的支持。最近,他一直致力于开发新的 Linux 驱动程序,以支持 Apple M2 MacBook 的键盘和触摸板。截至上周,他已经搞定了键盘,触摸板也接近工作,这些对笔记本电脑都非常重要。他在推特上表示,他的目标是针对 Apple M2 尽快实现对等于 M1 的 Linux 支持。 "expect an Asahi Linux release with on-par M2 support Real Soon™."

我们可以通过 https://github.com/AsahiLinux/docs/wiki/Feature-Support 跟踪当前对新 MacBook Air 和 MacBook Pro 的 M2 支持。电源管理、Thunderbolt 和 GPU 加速是使 Linux 成为 Apple Silicon 上具有竞争力的选择的重要项目之一。无论如何,很高兴看到 M2 上的 Linux 取得了所有进展,而且 Apple 没有阻挠 Linux 或其他操作系统在其芯片上的努力。

更多介绍请阅读新闻出处,“Asahi Linux Nears Release “Real Soon” For Apple M2 Hardware”: https://www.phoronix.com/scan.php?page=news_item&px=Apple-M2-On-Linux-Asahi-Soon

关键词: Linux, Asahi,Apple M2

  • GCC Rust 获得指导委员会批准,很可能随 GCC 13 推出

The GCC Steering Committee has approved of the https://www.phoronix.com/scan.php?page=search&q=GCC-Rust front-end providing Rust programming language support by the GNU Compiler Collection. This Rust front-end will likely be merged ahead of the GCC 13 release next year.

GCC 指导委员会(Steering Committee)已批准 在 GCC 中加入 GCC-Rust 前端,用于提供对 Rust 编程语言的支持。这个 Rust 前端很可能会在明年 GCC 13 发布之前被合并。GCC 指导委员会于本周一(11 日)早上宣布这一消息(https://gcc.gnu.org/pipermail/gcc/2022-July/239057.html)。作为 Rust 官方基于 LLVM 的编译器的替代方案,这项工作已经进行了一段时间。GCC Rust 仍在积极开发中,很快会进入主线。

希望在 GCC 13 中至少对 Rust 编程语言提供 “beta” 级别的支持,GCC 13 稳定版估计将在明年 4 月左右发布。

更多内容请访问新闻出处,“GCC Rust Approved By Steering Committee, Likely To Land For GCC 13”: https://www.phoronix.com/scan.php?page=news_item&px=GCC-Rust-SC-Approved

关键词: GCC,Rust

  • 第二代 Armv9 CPU 发布:Cortex-X3 + Cortex-A715

Arm today announced their second-generation Armv9 CPU designs with the Cortex-X3 and Cortex-A715. Arm also refreshed the Cortex-A510 to allow for more cores and a power reduction.

上月底 Arm 宣布了他们的第二代 Armv9 CPU 设计:Cortex-X3 和 Cortex-A715。Arm 还更新了 Cortex-A510,以支持更多内核并降低功耗。

与最新的 Android 旗舰智能手机相比,Arm Cortex-X3 的目标是提供 25% 的性能提升,与最新的主流笔记本电脑设计相比,性能提升高达 34%。 Arm 使用的 34% 数字是基于单线程性能。为了扩展到笔记本电脑和台式设备,Cortex-X3 DSU 可以处理多达 12 个内核和 16MB 三级缓存。

与此同时,Cortex-A715 被宣传为能够提供与原始 Cortex-X1 设计相同的性能,并且与 A710 相比,在相同性能的情况下能效提高 20%。在与 A710 相同的功率下,A715 的性能应该提高 5%。

有关 Arm 发布的第二代 Armv9 设计和更新 A510 的更多详细信息,请访问 community.arm.com。

更多介绍请阅读新闻出处,“Arm Cortex-X3 + Cortex-A715 Announced As Second-Gen Armv9 CPUs”: https://www.phoronix.com/scan.php?page=news_item&px=Arm-Cortex-X3-Cortex-A715

关键词: Armv9, Cortex-X3, Cortex-A715

  • Vim 9.0 发布,支持新的 Vim9 脚本,执行速度提升 10~100 倍

Vim 9.0 is out as the first major update in two years for this popular text editor. With Vim 9.0 comes the Vim9 scripting language that offers significantly better performance.

Vim 9.0 是这款流行的文本编辑器两年来的第一次重大更新。Vim 9.0 新推出了 Vim9 脚本语言,它提供了明显更好的性能。

除了很多小的改进之外,Vim 9.0 最大的变化是推出了名为 Vim9 的 Vim 脚本语言。Vim9 专注于更好的性能,预期将执行速度提高 10 到 100 倍。原话是 "An increase in execution speed of 10 to 100 times can be expected." 由于将命令编译成指令以便高效执行,Vim9 脚本的速度要快得多。但是,为了追求执行的高效,Vim9 脚本在某些方面对向后兼容性存在一定的破坏。

有关 Vim 9.0 更改的更多详细信息,请访问 Vim.org https://www.vim.org/vim90.php

更多介绍请阅读新闻出处,“Vim 9.0 Released With New Vim9 Script For 10~100x Execution Speed”: https://www.phoronix.com/scan.php?page=news_item&px=Vim-9.0-Released

关键词: Vim

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: