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

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

泰晓资讯·2月 / 第六期 / 2020

Wang Chen 创作于 2020/02/28

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

Linux Kernel 5.6-rc3 发布,一切正常

Linus Torvalds is out today with the Linux 5.6-rc3 kernel as the latest weekly release candidate for Linux 5.6 that will be releasing as stable approximately in one month’s time.

Torvalds characterized Linux 5.6-rc3 as a “fairly normal” release for this third release candidate stage. In the past there’s been both bigger and smaller RC3 releases but overall at this stage is looking like a good release. Around 55% of the changes merged over the past week were driver related.

Linus Torvalds 于本月的 23 日发布了 Linux Kernel 5.6-rc3,它是 Linux 5.6 的最新每周候选版本,稳定版大约在一个月内发布。

对于第三版候选版本,Torvalds 将 Linux 5.6-rc3 描述为一个 “相当正常” 的发行版。过去曾认为 RC3 版的改动可能很大,也可能很小,但目前总体看来情况还不错。在过去一周中,合并的变更中约 55% 与驱动相关。

关键词: Linux,5.6-rc3

Linux 5.6 为 C-SKY CPU 架构加入多项支持

While two weeks past the Linux 5.6 merge window some late changes for the C-SKY CPU architecture were accepted today.

C-SKY’s Guo Ren accidentally missed the recent Linux 5.6 merge window but Linus Torvalds was fine with pulling in these late changes that include both fixes and features.

在 Linux 5.6 合并窗口结束两周后,最近又加入了针对 C-SKY CPU 架构的一些更改。

C-SKY 的维护人员 Guo Ren 意外错过了最近 Linux 5.6 的合并窗口,但是 Linus Torvalds 表示可以接受这些迟到的修改,这些改动包含了补丁修补和功能的增强。

C-SKY 是一款中国生产的 32 位 CPU 架构,从 Linux 4.20 版本开始加入对其的支持。该款 CPU 专用于低功耗 SoC,并已部署到从打印机,相机到 DVR 等消费类电子设备。C-SKY 是 RISC-V Foundation 的成员,但是目前 Linux 内核中的 C-SKY 属于另一个定制的 CPU 体系结构。

关键词: Linux,5.6,C-SKY

Linux 内核 BPF 发展新动态

One of the more eyebrow-raising features to go into the 5.6 kernel is the ability to load TCP congestion-control algorithms as BPF programs; networking developer Toke Høiland-Jørgensen described it as a continuation of the kernel’s “march towards becoming BPF runtime-powered microkernel”. On its face, congestion control is a significant new functionality to hand over to BPF, taking it far beyond its existing capabilities. When one looks closer, though, one’s eyebrow altitude may well increase further; the implementation of this feature breaks new ground in a couple of areas.

Linux 内核 5.6 版本将引入一项令人惊喜的功能:将 TCP 拥塞控制算法(congestion control algorithm)以 BPF (Berkeley Packet Filter) 程序的形式加载到内核中执行。网络开发者 Toke Høiland-Jørgensen 称这项功能标志着 “Linux 内核正逐步演进为一个支持 BPF 运行时的微内核 (march towards becoming BPF runtime-powered microkernel)” 。从表面上看,这项改进只不过为了改进性能将拥塞控制算法移植到 BPF 上(譬如使用者能够在无需重新构建内核甚至无需重启的情况下加载尝试新的拥塞控制算法)。但深入研究后发现,其令人惊喜之处远不止这些,如果看一下 Martin KaFai Lau 发布的 patch 补丁,你就会发现 5.6 版本内核将要合并的代码不仅仅是只针对 TCP 拥塞控制,其真实威力远不止于此。具体地说,他创建了一种新的架构可用于允许 BPF 程序替换内核中的任何 “ops 结构(struct xxx_ops)”,这些结构一般由函数指针组成。目前,虽然该补丁只能替换用于拥塞控制的 struct tcp_congestion_ops 结构,但大量的经验表明,该机制可以扩展为支持内核中其他地方的应用。更多有趣介绍,请阅读原文 “Kernel operations structures in BPF”

关键词: Linux,BPF

什么是 WireGuard?为什么 Linux 用户为它疯狂?

WireGuard is an easy to configure, fast, and secure open source VPN that utilizes state-of-the-art cryptography. It’s aim is to provide a faster, simpler and leaner general purpose VPN that can be easily deployed on low-end devices like Raspberry Pi to high-end servers.

The inclusion of WireGuard in Kernel 5.6 will most likely extend the adoption of WireGuard and thus change the current VPN scene.

WireGuard 是一个易于配置、快速且安全的开源 VPN,它利用了最新的加密技术。目的是提供一种更快、更简单、更精简的通用 VPN,它可以轻松地在树莓派这类低端设备到高端服务器上部署。

除了可以跨平台(除了最初是为 Linux 开发外,现在还可用于 Windows、macOS、BSD、iOS 和 Android)之外,WireGuard 的最大优点之一就是易于部署。配置和部署 WireGuard 就像配置和使用 SSH 一样容易。WireGuard 的另一个好处是它有一个仅 4000 行代码的精简代码库。将它与 OpenVPN(另一个流行的开源 VPN)的 100,000 行代码相比。显然,调试 WireGuard 更加容易。WireGuard 支持所有最新的加密技术,例如 Noise 协议框架、Curve25519、ChaCha20、Poly1305、BLAKE2、SipHash24、HKDF 和安全受信任结构。最后由于 WireGuard 运行在内核空间,因此可以高速提供安全的网络。这些都是 WireGuard 越来越受欢迎的一些原因。Linus Torvalds 也非常喜欢 WireGuard,已决定将其合并到 Linux Kernel 5.6 中。

关键词: Linux,WireGuard

Lua 和 Python

From a high-level perspective, Lua and Python are similar languages; both are “scripting” languages that are compiled into bytecode instructions that run on a virtual machine. But the focus of Lua has generally been toward embedding the language into some larger application or system, rather than as an alternative for, say, Python, Perl, or Ruby as a general-purpose language. That is not to say that Lua is not capable of handling any of the tasks those other languages do, but that it has not really been the target, seemingly. Some recent discussions in the Lua community have explored possible changes in that regard, particularly around the idea of providing a larger, richer standard library.

从 high level 的角度来看,Lua 和 Python 是比较相似的。 Lua 的年龄和 Python 比起来小得并不多(Lua 发明于 1993 年,而 Python 出现于 1989 年),两种都是 “脚本” 语言,它们被编译为在虚拟机上运行的字节码指令。 但是 Lua 的重点通常是将该语言嵌入到更大的应用程序或系统中,而不是替代 Python,Perl 或 Ruby 作为一种通用语言。这并不是说 Lua 不能处理其他语言所能够完成的任务,但这看起来并不是这种语言被发明的真正目标。Lua 社区中最近的一些讨论对这方面可能的变化进行了探索,特别是围绕提供更大,更丰富的标准库的想法。提供丰富的函数库是一门语言是否成为一门 “重” 语言的标志,试图改变 Lua 项目及其社区近 30 年的惯性可能是一项艰巨的任务。但这也不是无法克服的,只是需要花费大量精力,lib 库文件需要一个一个地建立,在早期也很难判断付出的努力是否值得。感兴趣的读者可以阅读原文 “Lua and Python” 了解更多讨论细节。

关键词: Lua,Python

联系我们

资讯内容部分来自 “LWN.net“。如果您对某些 LWN 文章感兴趣(譬如希望获得全文翻译的)请扫描二维码加微信联系我们:

tinylab wechat



Read Album:

Read Related:

Read Latest: