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

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

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

unicornx 创作于 2024/07/11

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

Linux 内核最新消息

Torvalds 在本周初发布了 Linux 6.10-rc7,在 6.10-rc7 的发布公告中指出,过去的一周是相当轻松的一周,非常平静,原因可能是因为过去的一周里的 7 月 4 日是美国独立日,而且很多欧洲的工程师都开始休暑假了。Torvalds 在发布邮件中的原文是这么写的:

Things remain calm, although I do suspect that part of it is that it’s been the July 4th week in the US, and a lot of Europe is starting to go away on summer vacation.

But hey, let’s not look a gift horse too closely in the mouth. Maybe it’s really just that 6.10 is shaping up well. Right? RIGHT?”

所以让我们看看新的一周里的状态,顺利的话我们会在周末看到 Linux 6.10 稳定版发布,否则我们会看到 Linux 6.10-rc8,然后稳定版的发布会推迟到下周。但总之,7 月里我们会得到 6.10。

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

分支类型版本发布时间
mainline6.10-rc72024-07-07
stable6.9.82024-07-05
longterm6.6.382024-07-09
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-202407102024-07-10

关键词: Linux

Linux 将在构建 x86_64 内核时无条件启用 5 级分页

It’s been nearly one decade since Intel began working on 5-level paging support for the Linux kernel to allow for greater virtual and physical address space with expanding memory sizes. The 5-level paging kernel-side bits were upstreamed back in Linux 4.12 in 2017 and enabled by default since 2019 with Linux 5.5. Intel CPUs for a while (since Ice Lake) have supported 5-level paging and AMD CPUs too since Zen 4. The Linux kernel may move to unconditionally enabling 5-level paging support for x86_64 kernel builds.

自从 Intel 开始为 Linux 内核提供 5 级分页支持以来,已经过去了将近十年,随着内存大小的扩展,该技术可以支持更大的虚拟和物理地址空间。2017 年,Linux 4.12 内核中加入了对 5 级分页的支持,并从 2019 年起在 Linux 5.5 中默认启用。Intel 的 CPU(自 Ice Lake 以来)支持了 5 级分页,而 AMD 的 CPU 从 Zen 4 开始也支持了 5 级分页。因此Linux 内核针对 x86_64 架构可能会无条件启用 5 级分页支持。

Intel 正在推进这项工作,即在 Linux 内核中默认启用 5 级分页支持。5 级分页将虚拟地址大小从 48 位扩展到 57 位,从而可以允许支持最高达 128PB 的虚拟内存。

来自 Intel 的工程师 Kirill Shutemov 最近发布的这个补丁系列旨在删除 CONFIG_X86_5LEVEL 这个 Kconfig 构建选项,也就是说针对 x86_64,内核将始终启用 5 级分页进行构建。

“Both Intel and AMD CPUs support 5-level paging, which is expected to become more widely adopted in the future.

Remove CONFIG_X86_5LEVEL.

In preparation to that remove CONFIG_DYNAMIC_MEMORY_LAYOUT and make SPARSEMEM_VMEMMAP the only memory model.”

在实践中,这并不意味着大多数 Linux 发行版供应商的内核都启用了 CONFIG_X86_5LEVEL,但配置上减少了一个选项,这意味着一个新的时代的开始,这也是上游内核针对现代硬件变化做出的改变。

新闻出处,“Linux Looking To Make 5-Level Paging Support Unconditional For x86_64 Kernel Builds”: https://www.phoronix.com/news/Linux-Unconditional-5-Level-x86

关键词: Linux, x86_64, 5-level Paging

Linus Torvalds 对在 vDSO 中添加 getrandom() 颇有微词

While there were plans of adding getrandom() in the vDSO with the upcoming Linux 6.11 merge window to speed up user-space random number generation access, Linus Torvalds is unconvinced by the work and intends to reject any pull request with it for Linux 6.11.

虽然有计划在即将到来的 Linux 6.11 合并窗口中在 vDSO 中添加 getrandom() 以加快用户空间随机数生成访问的速度,但 Linus Torvalds 对这项工作并不满意,并打算拒绝其针对 Linux 6.11 的拉取请求。

在过去的 2 年多中,vDSO 中的 getrandom() 工作已经经历了 20+ 轮审查,但 Linus Torvalds 还不满足于它的设计,甚至还不理解是否真的需要这个功能。Torvalds 在美国独立日假期期间花了一些时间在 Linux 内核邮件列表上和大家讨论了一下这个补丁的优点,特别是和该补丁的首席开发人员 Jason Donenfeld 做了深入的讨论。鉴于 Torvalds 的评论,看上去这个针对 vDSO 的补丁似乎不会合入即将到来的 Linux 6.11。但在最新的一条消息中,Linus 先生表示他会再好好看一下这个补丁,所以让我们看看他是否会做出改变,并将其合并到 Linux 6.11 中。

新闻出处,“Linus Torvalds Unconvinced By getrandom() In The vDSO”: https://www.phoronix.com/news/Linus-Torvalds-No-Random-vDSO

关键词: Linux, getrandom, vDSO

ARM 扩展了推测性 SSBS 解决方法,更多 CPU 内核受到影响

Back in May there were Linux kernel patches posted as a workaround for Arm CPU errata around the Speculative Store Bypass (SSB) handling. Initially this workaround was just noted as the Cortex-X4 and Neoverse-V3 as being affected, but now it turns out many more exciting Arm processor cores are impacted.

早在 5 月份,Linux 内核中就收到一些 Arm CPU errata 补丁,用于解决 Speculative Store Bypass(SSB)问题。最初,该问题只涉及 Cortex-X4 和 Neoverse-V3,但现在事实证明,更多 ARM 处理器也会受到该问题的影响。

Spectre V4 / Speculative Store Bypass 这个问题已经存在多年,这个问题在较新的 ARM CPU 上已经不再存在,但最近的问题是有关 Arm CPU errata,其中包含缓解措施。对于受影响的处理器,MSR 写入 SSBS(Speculative Store Bypass Safe)特殊用途寄存器不会影响后续推测指令。反过来,此问题可能会导致一段时间内绕过推测性存储。此较新勘误表的 Linux 解决方法是在 MSR 写入 SSBS 寄存器后设置推测屏障。

除了 Cortex X4 和 Neoverse V3 之外,Arm 工程师现在已将此 SSBS 解决方法扩展到其他受影响的内核,包括 A710、A720、X2、X3、X925、N2 和 V2。

此修补程序已添加到 ARM64 内核的 “for-next/errata” Git 分支中,等待 Linux 6.11 合并窗口打开后即可合并。

新闻出处,“Arm Expands Speculative SSBS Workaround With More CPU Cores Being Affected”: https://www.phoronix.com/news/Arm-SSBS-Linux-More-CPUs

关键词: Linux, ARM, SSBS

AMD 收购另一家 AI 公司以扩展其企业 AI 解决方案

Following their acquisition last year of open-source AI provider Nod.ai and other AI investments, AMD today announced they are acquiring Silo AI.

继去年收购开源人工智能供应商 Nod.ai 和其他人工智能投资后,AMD 今天宣布将收购 Silo AI。

Silo AI 是欧洲最大的私人 AI 实验室,专注于围绕企业 AI 需求与各种组织合作。AMD 将以约 6.65 亿美元的价格收购 Silo AI,收购预计将于 2024 年下半年完成。援引 AMD 官网的新闻:

“The agreement represents another significant step in the company’s strategy to deliver end-to-end AI solutions based on open standards and in strong partnership with the global AI ecosystem. The Silo AI team consists of world-class AI scientists and engineers with extensive experience developing tailored AI models, platforms and solutions for leading enterprises spanning cloud, embedded and endpoint computing markets. … Based in Helsinki, Finland, with operations in Europe and North America, Silo AI specializes in end-to-end AI-driven solutions that help customers integrate AI quickly and easily into their products, services and operations. Their work spans diverse markets, with customers including Allianz, Philips, Rolls-Royce and Unilever. Silo AI also creates state-of-the-art open source multilingual LLMs, such as Poro and Viking, on AMD platforms in addition to its SiloGen model platform.”

简单翻译如下:“该协议代表了公司战略的又一重要步骤,即提供基于开放标准并与全球人工智能生态系统建立牢固合作伙伴关系的端到端人工智能解决方案。Silo AI 团队由世界一流的 AI 科学家和工程师组成,他们在为云、嵌入式和端点计算市场的领先企业开发量身定制的 AI 模型、平台和解决方案方面拥有丰富的经验。 …… Silo AI 总部位于芬兰赫尔辛基,在欧洲和北美开展业务,专注于端到端 AI 驱动的解决方案,帮助客户快速轻松地将 AI 集成到他们的产品、服务和运营中。他们的工作遍及不同的市场,客户包括 Allianz、飞利浦、劳斯莱斯和联合利华。除了 SiloGen 模型平台外,Silo AI 还在 AMD 平台上创建了最先进的开源多语言 LLM,如 Poro 和 Viking。”

有关 AMD 收购 Silo AI 的更多细节,请移步:https://ir.amd.com/news-events/press-releases/detail/1206/amd-to-acquire-silo-ai-to-expand-enterprise-ai-solutions

新闻出处,“AMD Acquires Another AI Company To Expand Its Enterprise AI Solutions”: https://www.phoronix.com/news/AMD-Acquires-Silo-AI

关键词: AMD, AI, Silo AI

Zed 编辑器现在支持原生 Linux 版本

The Rust-written, GPU-accelerated Zed text editor is finally providing official Linux builds!

采用 Rust 编写、通过 GPU 加速的 Zed 文本编辑器终于提供了官方的 Linux 版本!

在过去的几个月里,Zed 对 Linux 的支持取得了很大进展,现在它已经进入了更正式的状态。这个由前 Atom 开发人员发起的现代开源代码编辑器现在在 Linux 上已经足够成熟,可以为 Linux 提供正式的构建。

Linux 上的 Zed 现在利用 Vulkan API 进行 GPU 加速。Wayland 和 X11 会话都得到支持,到目前为止,Zed 官方的大部分重点都是在 Ubuntu 下进行测试。

那些想要尝试 Zed 编辑器的新 Linux 版本的人可以在 Zed.dev 上找到详细信息。在 Linux 上试用 Zed 非常简单,执行以下语句即可:curl https://zed.dev/install.sh | sh

新闻出处,“Zed Editor Now Publishing Native Linux Builds”: https://www.phoronix.com/news/Zed-Native-Linux-Builds

关键词: Zed, Linux

Firefox 128 发布,修复了一个 25 年前报告的错误

Mozilla Firefox 128.0 is now available for download ahead of the official release announcement due out in the coming hours.

Mozilla Firefox 128.0 现在可以下载。Firefox 128 是这个跨平台 Web 浏览器的最新月度更新。本月的发布并不是最近最令人兴奋的,但有一些项目值得一提。

Firefox 128 现在允许在隐私浏览模式下播放受保护的内容,这对 Netflix 和其他互联网流媒体服务的粉丝来说是个好消息。Firefox 128 还推出了一个更统一的对话框,用于清除 Web 浏览器中的用户数据。

Firefox 128 将鼠标悬停在未聚焦的选项卡上时,现在可以显示其内容的预览信息。Firefox 现在默认在 SOCKS v5 模式下代理 DNS,支持以内联方式呈现更多文本文件类型,并且最初支持 CHIPS(Cookies Having Independent Partitioned State)标准。

Firefox 128 中的一些用于支持开发人员的功能包括现在默认启用的 CSS 相对颜色语法、CSS 中的 content 属性现在支持包含图像的内容的替代文本,以及添加了各种新 API。Firefox 128 中的一个实验性功能是支持接受标头中的 “image/jxl” MIME 类型,用于默认和 JPEG-XL 图像格式的图像请求。

Firefox 128 中还有一个引人注目的改进是最终关闭了 Firefox 中 25 年前就被报出的一个和 HTML “textarea” 相关的错误,该错误报告错误地应用了行和列。导致不正确的 “文本区域” 大小,这次终于在 Firefox 128 中被修复了。

新闻出处,“Firefox 128 Now Available With A Fix For A 25 Year Old Bug Report”: https://www.phoronix.com/news/Firefox-128-Released

关键词: Firefox

GDB 15.1 带来了更多新功能

GDB 15.1 was released on Sunday as the first version in the GNU Debugger 15 branch for this widely-used, open-source debugging solution.

GDB 15.1 于 七月七日 发布,是 GNU Debugger 15 中的第一个版本。GDB 15.1 现在要求 C++ 编译器 至少为版本 17,对调试 Python 编程语言有了更好的支持,支持新的调试器适配器协议 (DAP) 功能,添加了新的远程协议,以及各种 GDBserver 功能等各种其他更改。

GDB 15.1 中的 Python 改进包括增加了各种新函数和模块,以增强调试体验,添加用户定义的属性以及各种新常量。新版本中的调试器适配器协议(Debugger Adapter Protocol,简称 DAP)新增加了支持发出进程事件、支持 cancel 请求以及 attach 请求现在可以指定程序。

新闻出处,“GNU Debugger GDB 15.1 Brings Better Python Support”: https://www.phoronix.com/news/GDB-15.1-Released

关键词: GDB

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: