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

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

泰晓资讯·7 月 / 第一期 / 2024

unicornx 创作于 2024/07/06

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

Linux 内核最新消息

Linux 6.10 内核周期的开发状态一如既往地平稳,并有望在两周内按时稳定地发布。

Torvalds 在本周的 6.10-rc6 发布公告中原文是这么写的:

“This release continues to be fairly calm, and rc6 looks pretty small. It’s also entirely just random small fixes spread all over, with no bigger pattern.

Mostly drivers, but we’ve got some random arch fixlets from Arnd (mostly compat syscall stuff), we’ve got some filesystem fixes (yes, bcachefs again), some bpf stuff with selftests etc.

Nothing really stands out, with the possible exception of a series of tty/serial reverts (“not ready yet, revert and we’ll try again later”).”

Linux 6.10-rc6 中的变化包括将华硕 ROG Raikiri Pro 控制器支持添加到通用 XPad input 驱动程序中,修复了 Intel Core hybrid 系统上 固件的缺陷,提高了其性能,并改进了对 2024 年 LG 笔记本电脑型号的支持。

https://www.kernel.org/ updated by 2024/7/6

分支类型版本发布时间
mainline6.10-rc62024-06-30
stable6.9.82024-07-05
longterm6.6.372024-07-05
longterm6.1.972024-07-05
longterm5.15.1622024-07-05
longterm5.10.2212024-07-05
longterm5.4.2792024-07-05
longterm4.19.3172024-07-05
linux-nextnext-202407032024-07-03

关键词: Linux

DRM 的 “死机屏幕” 将在 Linux 6.11 中获得单色图标支持

The DRM Panic handler in Linux 6.10 that is used for presenting a visual error message in case of kernel panics and similar when CONFIG_VT is disabled continues seeing new features. This is the Linux equivalent to Windows’ Blue Screen of Death or in the case of DRM Panic can also be a black screen of death. With Linux 6.11, the DRM Panic display can now handle monochrome logos.

Linux 6.10 中的 DRM Panic 处理程序用于在内核崩溃和类似情况下在屏幕上显示错误消息(前提是禁用 CONFIG_VT),开发人员正在不断地改进这个特性功能。这个功能等同于 Windows 上死机时显示的蓝屏信息,当然在 Linux 上人们更倾向于使用黑屏而非蓝屏,仅仅是因为不喜欢和 Windows 一样。在 Linux 6.11 中,DRM Panic 的显示上又添加了可以支持显示单色(黑白色)的图标。

Linux 6.10 上的代码,当触发 DRM Panic 时,会显示 Linux 吉祥物企鹅 Tux,但是仅仅是用 ASCII 字母方式打印出来。但这显示水平在 2024 年的你看来是不是有点过时了呢,所以在 Linux 6.11 中,企鹅被升级为单色图像。如果系统中找不到图形徽标或禁用了现有的 “LOGO” Kconfig 选项时,将仍然使用 ASCII 字母显示小企鹅。

DRM Panic 处理程序中的这种单色图标支持是在 7 月份的 Linux 6.11 合并窗口之前作为本周 drm-misc-next 拉取请求的一部分提交的。

新闻出处,“DRM Panic “Screen of Death” To Gain Monochrome Logo Support In Linux 6.11”: https://www.phoronix.com/news/DRM-Panic-Monochrome-Logo

关键词: Linux, DRM, Panic

Linux 的 DRM “死机屏幕” 将支持用 QR 码形式显示错误信息

Linux 6.10 introduces DRM Panic for providing a new panic screen in case of kernel errors and situations where the VT support may be disabled. This new kernel functionality is akin to Windows’ Blue Screen of Death or thanks to open-source can be adapted to take on other forms such as a black screen of death and conveying monochrome logos rather than ASCII art. New patches provide for the ability to show QR codes of error messages within the DRM Panic screens.

Linux 6.10 引入了 DRM Panic,用于在禁用 VT 支持的情况下,当内核错误时在屏幕上显示紧急提示。这种新的内核功能类似于 Windows 的死机蓝屏,当然由于开源的缘故,我们可以在其基础上增加很多其他显示形式,例如 “死机黑屏”和 “用单色图标代替 ASCII 字母图标”。目前我们又看到了一个新的补丁,可以在 DRM Panic 屏幕中显示包含错误信息的二维码。

由于内核错误消息可能非常冗长,尤其是在包含栈跟踪信息时,甚至不适合全屏显示,因此今天发布的补丁允许将内核错误消息压缩到 QR 码中(QR 码,全称:Quick Response Code,是二维码的一种,QR 码比普通条形码具有读取快速和存储资料容量更大的特点)。这样可以很容易地用智能手机捕获错误消息,以便以后进行分析,或者将其轻松地附加到错误报告中等。

这不是第一次我们看到使用二维码处理内核错误消息 …… 十年前,就有内核开发人员尝试使用二维码以查找错误消息。Windows 和其他操作系统也探索在其错误消息中使用二维码。

Red Hat 的 Jocelyn Falempe 今天发布了用于实现 “qr_code” 恐慌屏幕的四个补丁。更有趣的是 DRM Panic QR 码处理程序是用 Rust 编程语言编写的。Jocelyn 评论了在 Rust 中编写这个 QR 码生成器的原因:"There is no particular reason to do it in rust, I just wanted to learn rust, and see if it can work in the kernel."

新闻出处,“Red Hat Proposes Queue PerCPU Work “QPW” For Better Handling Per-CPU Work On RT Linux”: https://www.phoronix.com/news/Linux-Queue-Per-CPU-Work-QPW

关键词: Linux, DRM, Panic, QR code

Meta 认为使用 BOLT 优化 Linux 内核可提高大约 5% 的性能

For years Meta/Facebook has been exploring using BOLT with the Linux kernel to optimize the layout of the Linux kernel binary. Since BOLT was upstreamed into LLVM, they’ve continued work around BOLT’ing the kernel. There is now a public guide for carrying out a BOLT-optimized Linux kernel build and roughly 5% better system performance to expect from such an optimized kernel.

多年来,Meta/Facebook 一直在探索将 BOLT 与 Linux 内核结合一起使用,以优化 Linux 内核二进制文件的布局。自从 BOLT 进入 LLVM 上游以来,他们一直在围绕使用 BOLT 对内核进行优化工作。最近 Meta 提出了一个针对 Linux 内核构建使用 BOLT 进行优化的公共指南,针对这种优化后的内核可以预期系统性能比默认状态下能够具有大约 5% 的提升。特定工作负载的性能优势最终取决于应用程序在内核空间中花费的时间,相对于那些主要运行时间位于用户空间的任务,这种优化对于数据库服务器以及其他网络密集型工作负载等应用场景来说受益更多。

上周,Meta 工程师 Maksim Panchenko 为那些想要构建内核映像并使用 BOLT 优化的人提交了一份 Linux 内核优化指南。在该指南中,特定的性能优势被解释为:

“By improving the code layout, BOLT can boost the kernel’s performance by up to 5% by reducing instruction cache misses and branch mispredictions. When measuring total system performance, you should scale this number accordingly based on the time your application spends in the kernel (excluding I/O time).”

新闻出处,“Meta Sees ~5% Performance Gains To Optimizing The Linux Kernel With BOLT”: https://www.phoronix.com/news/Linux-BOLT-5p-Performance

关键词: Linux, Meta, BOLT

针对 Linux 内核开发的最低 Rust 工具链版本将最终可以得到确定

Nearly every Linux kernel cycle has bought patches to bump the version of the Rust language targeted by the kernel as it worked toward having a suitable minimum version. With the latest Linux kernel patches, it looks like we may be finally approaching the point where a safe minimum version can be specified and for the Linux kernel to in turn allow supporting multiple different versions of the Rust compiler.

几乎每个 Linux 内核周期都会合入补丁,这些补丁不断地要求升级开发内核所要求的 Rust 语言版本,但这个趋势正在放缓。随着最新内核补丁的合入,看起来 Rust 的版本要求终于稳定下来,我们可能终于接近可以指定安全的最低要求的版本了,Linux 内核反过来允许支持多个不同版本的 Rust 编译器。

Rust for Linux 项目的首席开发人员 Miguel Ojeda 在周一晚上发布了一组针对多个版本的 “rustc” 编译器支持的补丁。对于 Rust 编译器,将从两个稳定版本开始,目前支持的最小值为 1.78.0,同时增加了对最近发布的 1.79.0 的支持。

对于那些使用提供最新 Rust 编译器版本的发行版的内核开发人员来说,这应该已经足够了,例如 Arch Linux、Debian Unstable(不包括 freeze 期间)、Fedora Linux、Gentoo Linux(尤其是 testing channel)、Nix(unstable)和 openSUSE Tumbleweed。补丁提供了文档对相关发行版本的说明。

随着针对 Rust 的 pre-merge CI 的逐渐成熟,对 Rust 编译器版本的兼容性测试更加有效,除了 1.78.0 和 1.79.0,新的 Rust 编译器版本的支持也会更好,例如,目前,beta (1.80.0) 和 nightly (1.81.0) 分支也可以工作。

我们将看看这项工作是否可以在 Linux 6.11 期间完成。Rust for Linux 内核生态系统的最低版本要求和整体成熟状态将有望给基于 Rust 的驱动程序和其他 Rust 内核代码的开发带来方便。

新闻出处,“The Linux Kernel Matures To Having A Minimum Rust Toolchain Version”: https://www.phoronix.com/news/Linux-Patches-Multiple-Rust-Ver

关键词: Linux, Rust

Linux 6.11 中将引入针对 RISC-V 的内存热插拔支持

The RISC-V kernel port with Linux 6.11 is introducing the ability to handle memory hot plugging/unplugging.

与 Linux on x86_64 和其他 CPU 架构类似,即将到来的 Linux 6.11 中将对 RISC-V 支持内存热插拔。Linux 的内存热插拔功能支持在运行时增加或者减少物理内存的大小。如果能对正在运行的 RISC-V 服务器添加或者减少物理内存当然很有用,但这种内存热插拔更常见的使用场景是针对虚拟机(VM),在运行时增加或者减少 VM 使用的内存。

新闻出处,“RISC-V Memory Hot Plugging To Be Introduced With Linux 6.11”: https://www.phoronix.com/news/RISC-V-Linux-6.11-Hot-Memory

关键词: Linux, RISC-V, Memory, Hot Plugging

Debian 12.6 发布,包含许多安全更新和错误修复

For those on the Debian stable train, Debian 12.6 is out this weekend as the newest point release to Debian Bookworm.

Debian 12.6 将于本周末发布,作为 Debian Bookworm 的最新版本。Debian 12.6 引入了各种软件包更新,以解决各种悬而未决的安全问题和错误修复。

Debian 12.6 修复了 BlueZ 蓝牙堆栈中的远程代码执行问题,更新到 Linux 6.1.0-22 内核,修复了 Emacs 的安全,Flatpak 的新上游版本,更新了可用的 NVIDIA 图形驱动程序以修复安全并更新内核兼容性,准备切换到 NVIDIA 535 系列 LTS 驱动程序,强制加载 PHP 包的系统依赖性,以及数百个其他软件包更新。

有关 Debian 12 例行维护更新的下载和更多详细信息,请访问 https://www.debian.org/News/2024/20240629

新闻出处,“Debian 12.6 Released With Many Security Updates & Bug Fixes”: https://www.phoronix.com/news/Debian-12.6-Released

关键词: Debian

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: