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

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

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

unicornx 创作于 2022/11/17

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

Linux 内核最新消息

https://lkml.org/lkml/2022/11/13/255

Linus Torvalds 本周按期发布了 Linux 6.1-rc5,作为处于开发周期中的 Linux 6.1 的第 5 个每周测试版本。

rc5 中的提交数量与在 rc4 中的提交数量大致相同。它不是太大,也没有什么特别令人担忧的情况发生,提交的 PR 数目正在变得稳定下来。让我们拭目以待。如果发现的问题继续增多,可能需要额外增加一个礼拜。也就是说,如果 Linux 6.1 能够按时准备就绪,预计将于 12 月 4 日首次亮相,否则如果需要额外的一周,它将推迟到 12 月 11 日发布。Linux 6.1 很可能是今年的长期支持版本(LTS),所以测试和问题修复工作变得更加重要。

https://www.kernel.org/ updated by 2022/11/18

分支类型版本发布时间
mainline6.1-rc52022-11-13
stable6.0.92022-11-16
stable5.19.17 [EOL]2022-10-24
longterm5.15.792022-11-16
longterm5.10.1552022-11-16
longterm5.4.2242022-11-10
longterm4.19.2652022-11-10
longterm4.14.2992022-11-10
longterm4.9.3332022-11-10
linux-nextnext-202211172022-11-17

关键词: Linux

Rust 开发人员继续准备将更多代码提交到到 Linux 内核中

With the upcoming Linux 6.1 kernel release there is the initial Rust infrastructure merged for enabling the use of the Rust programming language for future kernel drivers and other kernel code. But that state in Linux 6.1 is the very basics and not yet practical while now a secondary sent of “Rust for Linux” patches have been sent out for enabling more kernel development to happen with Rust.

随着即将发布的 Linux 6.1 内核版本合并了最初的 Rust 基础架构,以便将来的内核驱动程序和其他内核代码能够使用 Rust 编程语言。但是 Linux 6.1 中的这种状态是非常基础的,还不实用,而在上周四,一直在领导 Linux 上 Rust 工作的 Miguel Ojeda 提交了 “Rust for Linux” 补丁,以便社区使用 Rust 进行更多的内核开发。他在上周四发布了一组 28 个补丁,为内核提供了更多的基础代码。Ojeda 在补丁系列中时这样解释这个最新的大补丁系列的:

This patch series is the first batch of changes to upstream the rest of the Rust support.

In this instance, all the facilities introduced are part of the “Rust core”. They do not interact with the C side in new major ways (no new C types used; only strlen, memchr, additional error codes and some more printk format strings).

After this series, str.rs and print.rs are in sync with downstream and all remaining proc macros have been added. error.rs is fairly complete too, though a few more pub(crate) features will come later (to avoid leaving dead code in-between series).

Note that a few temporary #[allow(dead_code)] attributes are used in order to have a bit more freedom organizing the patches while keeping all of them buildable without warnings/errors, but at the end of the series there is none remaining (of the temporary ones).

Virtually all the code has been in linux-next for months and was part of the Rust patch series before the trimming down (i.e. up to v8).

Each patch has been built-tested on a Rust-enabled defconfig with CLIPPY=1 on the all, rustfmtcheck, rustdoc and rusttest targets.

鉴于这段代码已经在 linux-next 中存在了一段时间,并且已经作为早期 “Rust for Linux” 补丁系列的一部分经过了一些审查,我们很有可能在下个月的 Linux 6.2 合并窗口期间看到这项工作被合入主线。让我们拭目以待吧。无论如何,Rust for Linux 这项工作仍然在持续推进。

一旦所有这些 Rust 基础设施到位,我们将看到更多优秀的驱动程序开始被移植为采用 Rust 代码,要么是为新的硬件开发的新代码,要么是用 Rust 重写现有的 C 驱动程序代码。Linux 内核中 Rust 的首批主要用户之一预计将是 Apple M1/M2 显卡的 DRM 驱动程序。

另外,昨天美国国家安全局还发布了关于防止内存安全问题的指南。NSA 报告建议使用 Rust 编程语言或其他内存安全的语言,如 Swift,Java,Go,Ruby 和 C#。

新闻出处,“Rust Developers Move Ahead With Preparing To Upstream More Code Into The Linux Kernel”: https://www.phoronix.com/news/More-Rust-Upstream-Prep-Linux

关键词: Linux, Rust

LibreOffice 支持 RISC-V 64 位

If the royalty free open-source processor ISA RISC-V is to enjoy success on the Linux desktop, obviously it needs an office suite… LibreOffice as the open-source office suite alternative to Microsoft Office is now seeing proper RISC-V 64-bit support.

如果开源的处理器 ISA RISC-V 要在 Linux 桌面上取得成功,显然它需要一个办公套件,这就是 LibreOffice,作为 Microsoft Office 的开源办公套件替代品,我们开到它正在获得 RISC-V 64 位的支持。上周四的合并正式为这个开源办公套件添加了对 RISC-V 64位(RISCV64)的支持。gbuild 已针对 RISC-V 进行了正确更新,并为 RISC-V 64 位添加了 UNO bridge。

新闻出处,“LibreOffice Enables RISC-V 64-bit Support”: https://www.phoronix.com/news/LibreOffice-RISC-V-64-bit-Build

关键词: LibreOffice,RISC-V

Mold 1.7 发布,据悉由于考虑到得不到可靠的资金支持,Mold 项目可能会更改软件许可证

Mold is the modern, high performance, and open-source linker taking on the likes of LLVM LLD and GNU Gold. Mold 1.7 has been released as the newest update to this very promising linker, but unfortunately the lead developer is evaluating a license change. Due to still losing money over working on it full-time, he may be forced to change the software license without obtaining sustainable funding.

Mold 是最新开发的,高性能的,开源链接器,类似于 LLVM 的 LLD 和 GNU 的 Gold。Mold 最新发布了 v1.7,但不幸的是,该项目的首席开发人员正在评估修改许可证。由于他目前全职工作于该项目,并且一直得不到稳定的资金支持,他可能被迫更改软件许可证。

在开源世界中,对于没有大公司支持的自由软件项目来说,这是一个非常普遍的挑战:首席开发人员一直在全职从事该项目,并利用自己的资源和社区资金,但这么做被证明是一项不可持续的。不幸的是,Rui Ueyama 正在考虑更改软件许可证,新的许可证下,Mold 对个人将继续免费,但对于企业用户来说则会是收费的。

Rui 在 Mold 1.7 发布公告中写道:

I’d like to inform users that I’m seriously considering changing the mold’s license from AGPL to a source-available license unless I secure big funding. The new license would be something like individuals can use it for free but corporate users have to pay. mold started as my personal project, and I’ve been working on this full time for two years so far. I thought that I could earn a comfortable income if mold become popular, but unfortunately, I’m still losing my money. I think I need to take an action to make the project sustainable long term.

Rui 在他的另一篇 Google Doc (https://docs.google.com/document/d/1kiW9qmNlJ9oQZM6r5o4_N54sX5F8_ccwCy0zpGh3MXk/edit)中继续指出:“甚至有点讽刺的是,几家大牌公司问我什么时候可以在 macOS 上使用 mold,因为他们想将其用于数十亿美元的业务。但他们都没有给我经济支持。”。

至于 Mold 1.7 版本,这个链接器现在增加了对 Motorola 68000 “m68k” 处理器架构的支持。Mold 1.7 还修复了使用 Facebook 的 LLVM BOLT 优化器会引入的 bug 和其他问题。

新闻出处,“Mold 1.7 Released But May Need To Change Software License If Funding Not Secured”: https://www.phoronix.com/news/Mold-1.7

关键词: Mold

QEMU 7.2-rc1 发布

QEMU 7.2 is gearing up for release in December as the next feature release to this widely-used processor emulator by the Linux virtualization stack. QEMU 7.2-rc1 is available for testing with a number of new features and improvements coming in this release.

Linux 上广泛使用的处理器模拟器 QEMU 正准备在 12 月发布其下一个版本 7.2。QEMU 7.2-rc1 已发布用于测试,此版本中提供了许多新功能和改进。

  • QEMU for x86/x86_64 现在支持 CORE_THREAD_COUNT MSR。还支持在使用 “-kernel” 参数引导时将随机种子传递给 Linux 内核。
  • TCG 在全系统仿真模式下的性能有所改进,修复了其 SSE 实现,TCG 现在支持 AVX/AVX2/F16C/FMA3/VAES 指令。
  • 具有 9pfs 的 QEMU 具有 “巨大的总体性能改进”,性能提高了 6~12 倍。QEMU 9pfs 代码中的这种巨大加速来自于对 FID 表使用 GHashTable。随着 Linus Heckemann 的更改,"This change uses a hashtable for this instead, significantly improving the performance of the 9p filesystem. The runtime of NixOS's simple installer test, which copies ~122k files totalling ~1.8GiB from 9p, decreased by a factor of about 10."
  • QEMU 的 RISC-V 代码现在支持 Zihintpause,disas 支持向量指令,zmmul 被不再被标记为实验性功能,改进调试器规范以及其他针对 RISC-V 的改进。
  • 适用于 s390x 的 QEMU 现在通过 KIMD/KLMD 指令支持 SHA-512,固定模拟 LZRF 和 VISTR 指令,以及实现其他功能。
  • QEMU OpenRISC 代码的稳定性改进以及性能改进。
  • Arm 上的 QEMU 现在支持模拟增强型翻译同步、PMU 扩展 v3.5、客户机翻译粒度、HAFDBS 和 E0PD。还支持了模拟 Arm Cortex-A35 CPU。
  • 大端序 32 位 MIPS 主机已被弃用。

有关 QEMU 7.2 计划进行的所有更改的更多详细信息,请访问 QEMU Wiki:https://wiki.qemu.org/ChangeLog/7.2

新闻出处,“QEMU 7.2-rc1 Released - TCG For AVX/AVX2, Massive 9pfs Performance Improvement”: https://www.phoronix.com/news/QEMU-7.2-rc1-Released

关键词: QEMU

SQLite 3.40 发布

While Microsoft is celebrating the GA release today of SQL Server 2022, open-source developers have SQLite 3.40 premiering today as the newest version of this embed-friendly SQL database implementation widely used by many cross-platform applications and other software for lightweight SQL database engine needs.

当微软在庆祝 SQL Server 2022 的发布时,开源软件社区于本周三发布了 SQLite 3.40,作为一款深受嵌入式应用欢迎的数据库,被许多跨平台应用程序和其他软件广泛使用,以满足轻量级 SQL 数据库引擎的需求。

SQLite 3.40 的一个显着变化是现在可以编译为 WebAssembly(WASM),这样就可以用于 Web 浏览器,同时它也应该适用于各种 WASM 桌面运行时实现。对于 SQLite 3.40,WASM 的实现还是处于 beta 状态,预计在 SQLite 3.41 中可以正式应用于生产环境。

SQLite 3.40 的另一个重大变化是引入了 recovery extension。虽然众所周知 SQLite 数据库文件非常健壮,但在极少数情况下它们也会被损坏,至少现在有这种尝试恢复尽可能多的数据的方法。

SQLite 的 recovery extension 公开了一个 API,用于尝试尽可能多地挽救损坏的数据库文件。使用 SQLite 命令行界面现在还支持了 “.recover” 命令,用于尝试恢复 SQLite 数据库文件,而 Recovery API 可用于应用程序级集成。

SQLite 3.40 还增强 query planner 功能、通过很小的性能优化,导致 CPU 周期减少约 1%。

新闻出处,“SQLite 3.40 Released With WASM Support For Web Browsers, Recovery Extension”: https://www.phoronix.com/news/SQLite-3.40-Released

关键词: SQLite

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: