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

泰晓RISC-V实验箱,转战RISC-V,开箱即用
请稍侯

泰晓资讯·6 月 / 第二期 / 2023

unicornx 创作于 2023/06/15

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

Linux 内核最新消息

https://lkml.org/lkml/2023/6/11/241

Linus Torvalds 本周初发布了 Linux 6.4-rc6 内核。Linux 6.4 的开发继续顺利进行,这意味着我们可能会在两周内看到稳定版本的首次亮相。

Linux 6.4 的开发一直运行平稳,Linus Torvalds 在 6.4-rc6 的发布公告中写道:

“I don’t think we’ve had anything hugely interesting happen the last week, and the whole 6.4 release really does feel like it’s going fairly smoothly. Knock wood, famous last words, you know the drill.

The diffstat and the commit logs all looks fairly normal. We’ve got perhaps a bit more filesystem changes than usual, mostly due to some xfs fixes. But even that looks larger than it is - it’s mostly due to code movement, not because of any fundamentally big changes per se.

There’s some architecture fixes too, but most of that is just arm64 dts files.

And the bulk of things is driver updates, with gpu and networking being most noticeable. As is tradition. We have some other networking changes outside of drivers too.”

按计划稳定版本发布的时间是 6 月 25 日,如果有什么意外的话,至多推迟到 7 月 2 日。

https://www.kernel.org/ updated by 2023/06/15

分支类型版本发布时间
mainline6.4-rc62023-06-11
stable6.3.82023-06-14
stable6.2.16 [EOL]2023-05-17
longterm6.1.342023-06-14
longterm5.15.1172023-06-14
longterm5.10.1842023-06-14
longterm5.4.2472023-06-14
longterm4.19.2862023-06-14
longterm4.14.3182023-06-14
linux-nextnext-202306142023-06-14

关键词: Linux

Meta 提议为 Linux 的 CFS 提供共享工作队列以小幅提升性能

Meta engineers have proposed a shared wakequeue “swqueue” feature for the Linux kernel’s CFS scheduler that can help with a small throughput performance improvement and slightly better latency, particularly for AMD systems with multiple CCXs.

Meta 工程师为 Linux 内核的 CFS 调度程序提交了一个叫做 shared wakequeue,简称 “swqueue” 的功能改进,该改进可以帮助小幅提高吞吐性能并稍微改善延迟,特别是对于具有多个 CCX 的 AMD 系统。他们开发该补丁的初衷是为 Facebook 改进在 AMD EPYC 服务器上运行 HHVM Web 服务器进程的整体性能。

通过他们的 RFC 补丁中的描述,我们可以了解到该改进的一些关键要点如下:swqueue 背后的想法很简单:通过 “placing a waking task into a per-LLC FIFO queue that can be pulled from by another core in the LLC FIFO queue which can then be pulled from before it goes idle.”。通过这个简单的更改,我们能够在 HHVM 中在吞吐量上获得 1 ~ 1.6% 的改进,同时确保延迟上也能够取得小幅的改进。swqueue 补丁集只有 200 多行新代码,RFC 补丁现在在内核邮件列表中进行审查。

新闻出处,“Meta Proposes Shared Workqueue For Linux’s CFS - Small Throughput Win”: https://www.phoronix.com/news/Meta-Linux-CFS-swqueue-RFC

关键词: Linux,CFS

Linux 中针对 RISC-V 的 KASLR 实现发布第三版补丁

While the upstream Linux kernel support for RISC-V continues to improve with new ISA features, support for more RISC-V SoCs, and other enhancements, in some areas the open-source RISC-V code continues to play catch-up with the other mature architectures supported by the Linux kernel. One of the areas still pending is enabling KASLR support for RISC-V on Linux to enhance system security.

Linux 内核对 RISC-V 的支持日益完善,这包括:支持了更多的扩展 ISA,支持了更多的 RISC-V SoC,以及其他功能改进。但在某些领域,RISC-V 的代码仍然在继续追赶 Linux 内核支持的其他成熟的架构,这其中就包括在 Linux 上启用 KASLR 对 RISC-V 的支持,该特性用于增强系统的安全性。

Kernel Address Space Layout Randomization(简称 KASLR)对于帮助防止内存漏洞被利用非常重要。KASLR 对于通过在引导时随机化内核代码来抵御那些基于内核中某些特定内存地址位置进行的攻击非常有用。

x86/x86_64 上的 KASLR 已经在主线上使用了大约十年,并且还努力通过尚未完成的 FGKASLR 进一步增强随机化。在 RISC-V 方面,对 KASLR 支持仍然还未完成,上周我们看到该补丁的第三次修订版本。该补丁可以随机化内核映射,其实现依赖于系统提供一个随机种子,如果是具备 bootloader 的 VM 通过设备树提供这个种子,如果是 RISC-V 的真机则通过固件使用 EFI RNG 协议提供随机种子。

在 v3 补丁中,RISC-V 的 KASLR 代码已 rebase 到较新的 Linux 6.4,该补丁还修复了一个对 RISC-V 32 位的 warning,以及其他修复。让我们继续观察这个 RISC-V KASLR 补丁是否能够很快被合入主线。

新闻出处,“RISC-V KASLR Support For Linux Revised Again”: https://www.phoronix.com/news/Linux-RISC-V-KASLR-v3

关键词: Linux, RISC-V, KASLR

Linux 6.5 中将支持 RISC-V Vector ISA

Support for RISC-V’s Vector ISA is now expected to be merged for the upcoming Linux 6.5 kernel merge window.

预计将在即将到来的 Linux 6.5 中合入对 RISC-V 的 Vector ISA 的支持。这部分新代码提供了必要的对 Linux 内核的更改来处理 RISC-V 的 “V” 扩展,包括新的 prctl() 接口,以便用户空间可以检查 Vector 扩展支持的状态。一个新的 sysctl 选项 “riscv_v_default_allow” 可用于调整更改允许用户空间软件使用矢量扩展的默认值。以及新增一个 “RISCV_ISA_V” 的 Kconfig 选项用于配置内核构建支持使用 V ISA 扩展。以及各种其他更改。

RISC-V 的 Vector 扩展 1.0 版本于 2021 年获得批准,目标是在 RISC-V 这个自由的 CPU 架构上启用各种 SIMD 功能,这对数据中心和其他各种应用是个好消息。RISC-V 矢量扩展旨在实现高性能和高效的矢量处理,支持机器学习和图形等领域的特定领域功能,当然具体取决于 ISA/CPU 的实现,以及硬件设计上对 SIMD 类型的操作和其他功能的支持。

SiFive 一直致力于实现 Linux 内核的 RISC-V Vector 支持。虽然当时 V 扩展仍处于草案形式,但 SiFive 在当时(2020 年)就提出了有关支持 V 扩展的内核补丁。与此同时,各种开源编译器工具链也加入了对 RISC-V Vector 支持。

现在实现的里程碑是,维护者 Palmer Dabbelt 将 Linux 内核中对 RISC-V Vector ISA 的支持合并到 riscv/linux.git 的for-next 分支中。这意味着在下一个合并窗口期间,作为下一个内核开发周期中 RISC-V 更新的一部分,它将很快被提交到即将到来的 Linux 6.5 内核的主线。

新闻出处,“RISC-V Vector ISA Support Slated For Linux 6.5”: https://www.phoronix.com/news/RISC-V-Vector-ISA-For-Linux-6.5

关键词: Linux, RISC-V, Vector

Debian 12.0 正式发布

Following more than one and a half years in development, Debian 12 is officially shipping today as the latest major release for this long-maintained Linux distribution.

经过一年半多的开发,Debian 12 于本月 10 日终于正式发布了,这是这个长期维护的 Linux 发行版目前最新的大版本。

在 Debian 11 稳定版本开发期间为 Debian 12 提供了大量的软件包更新。Debian 12 使用了 Linux 6.1 LTS 版本的内核,软件包使用 GCC 12.2 编译器构建,LLVM/Clang 默认使用 14,但用户也可以选用 LLVM/Clang 15 ,PHP 的默认版本是 8.2,Rust 是 1.63,Glibc 是 2.36,以及大量其他软件包更新。在桌面方面,采用 GNOME 43,KDE Plasma 5.27,Xfce 4.18,LXDE 11 和MATE 1.26。

Debian 12 中的其他一些新特性包括更容易使用非自由的固件,这要归功于其新的存储库和对安装程序的集成,此外 Debian 12 还支持了针对 ARM64 上的 UEFI,以及跟上其他现代 Linux 环境的许多其他变化。

有关 Debian 12.0 发行版的下载和更多信息,可以通过 Debian.org 官方公告找到。Debian 12 一共提供了 11,089 个新的软件包,软件包总数为 64,419。

新闻出处,“Debian 12.0 Released - Powered By Linux 6.1 LTS, Easier Non-Free Firmware Handling”: https://www.phoronix.com/news/Debian-12-Released

关键词: Debian

Debian GNU/Hurd 2023 发布

Following this weekend’s release of Debian 12.0, the Debian GNU Hurd port has been released that rather than utilizing the Linux kernel is making use of GNU Hurd.

继 Debian 12.0 发布之后,Debian 的 GNU Hurd 版也发布了,它使用的不是 Linux 内核,而是使用 GNU Hurd。

Debian GNU/Hurd 2023 是这个 Debian 变体的非官方版本,它依赖于 GNU Hurd 而不是 Linux 内核。它类似于已经解散的 Debian GNU/kFreeBSD,这是另一个使用了 Debian 用户空间的文件系统,但内核采用 FreeBSD 的版本。其实相对起来。Debian GNU/Hurd 更不实用,因为 Hurd 还不成熟,而且支持它的硬件也很有限。因此,如果你想尝试 Debian GNU/Hurd,建议使用 QEMU 这样的模拟器来运行它。

Debian GNU/Hurd 目前支持 i386,可以构建大约 65% 的 Debian 软件包。自上一个 Debian GNU/Hurd 版本以来,新版本在APIC、SMP 和 64 位支持上已经有了很大的改进,但相关工作仍在进行中。基于 rump 的用户空间磁盘驱动程序也得到了改进,同时还加入了许多修复。总的来说,虽然 Debian GNU/Hurd 自上次测试以来的十年中有所改进,但与 Debian GNU/Linux 相比仍然非常有限和小众。

有关 Debian GNU/Hurd 2023 发行版的更多详细信息,请访问 GNU.org (https://lists.gnu.org/archive/html/bug-hurd/2023-06/msg00038.html)。

新闻出处,“Debian GNU/Hurd 2023 Released”: https://www.phoronix.com/news/Debian-GNU-Hurd-2023

关键词: Debian, GNU, Hurd

Debian 13 “Trixie” 将正式支持 RISC-V 64 位

With today’s release of Debian 12 the official ports are for AMD64, AArch64, ARMEL, ARMHF, i386, MIPS, 64-bit MIPS, POWER, and IBM System Z. There isn’t RISC-V 64-bit as an official port but that is likely to change for Debian 13.

Debian 12 发布了,其官方支持的 ARCH 包括 AMD64、AArch64、ARMEL、ARMHF、i386、MIPS、64 位的 MIPS、POWER 和 IBM System Z。目前还不包括 RISC-V 64位,但这个状态有可能在 Debian 13 中会发生改变。

Debian 开发者 Jonathan Wiltshire 代表 Debian 发布团队分享了一个更新。随着 Debian 12 的发布,下一个大版本 Debian 13(代号为 “Trixie”)的开发很快就会开始。在此更新中值得我们注意的是:其提到,虽然 RISCV64 尚未出现在官方架构列表中,但对该 ARCH 的移植工作正在取得良好的进展。对于一年半到两年后的 Debian 13版本,预计将提供对 RISC-V 64 位的支持。架构认证工作需要在 Debian Trixie 的开发周期的后期进行。

发布团队的更新可以在 Debian 邮件列表(https://lists.debian.org/debian-devel-announce/2023/06/msg00001.html)中找到。我们原本十分期望在 Debian 12 中就能看到对 RISC-V 的支持,但考虑到许多社区开源开发人员无法获得高性能的 RISC-V 硬件,所以目前的状态还是可以理解的,希望到 Debian 13 时代,RISC-V 64 的开源生态系统将更加成熟。

新闻出处,“Debian 13 “Trixie” Aiming To Ship With RISC-V 64-Bit Support”: https://www.phoronix.com/news/Debian-13-RISC-V-64-Potential

关键词: Debian, Trixie,RISC-V

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: