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

泰晓RISC-V实验箱,不会吃灰,开箱即用
请稍侯

泰晓资讯·1月 / 第一期 / 2020

Wang Chen 创作于 2020/01/03

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

Linux Lab 发布 v0.3 rc1,添加多本知名 Linux 图书所用内核支持

Linux Lab 是一套用于 Linux 内核学习、开发和测试的即时实验室,可以极速搭建和使用,功能强大,用法简单!可以用它来高效地学习处理器架构、Linux 内核、嵌入式 Linux 系统、C 语言编程、Linux 汇编、Shell 编程等。

本次 v0.3 rc1 一方面完善了用户学员反馈的问题,另外一方面新增了对 5 本经典 Linux 内核图书所用 Linux 内核的支持。这五本图书以及各自对应的内核版本分别是(为避免广告嫌疑,书名采用缩写 :)):

  • LDD3(v2.6.10)
  • ULK3(v2.6.11.12)
  • PLKA(v2.6.24.7)
  • LKD3(v2.6.34.9)
  • L4D(v4.0,v3.16)
  • RLK4.0(v4.0)。

更多详情请阅读 “Linux Lab 发布 v0.3 rc1”

关键词: Linux Lab, v0.3 rc1

一种不会影响 page-cache 的 基于缓存的读写操作

Linux offers two modes for file I/O: buffered and direct. Buffered I/O passes through the kernel’s page cache; it is relatively easy to use and can yield significant performance benefits for data that is accessed multiple times. Direct I/O, instead, goes straight between a user-space buffer and the storage device. It can be much faster for situations where caching by the operating system isn’t necessary, but it is complex to use and contains traps for the unwary. Now, it seems, Jens Axboe has come up with a way to get many of the benefits of direct I/O with a lot less bother.

Linux 为文件 I/O 提供了两种模式: 缓冲模式(Buffered I/O)和直接模式(Direct I/O)。 Buffered I/O 通过内核的页面缓存;相对易于使用,并且在多次访问数据时可以带来显著的性能优势。 相反,Direct I/O 在用户空间缓冲区和存储设备之间直接移动数据。在不需要通过操作系统进行缓存的情况下,它可能会更快,但是使用起来很复杂,容易出问题。最近,Jens Axboe 提出了一种介于 Buffered I/O 和 Direct I/O 之间的新的方法来处理数据的读写。

具体使用上是在调用 preadv2()pwritev2() 系统调用时传入 RWF_UNCACHED 这个参数。如果给出了该选项,则根据受影响的文件页面当前是否在页面缓存中,按以下两种方式修改了当前 I/O 操作的行为。当页面高速缓存中存在数据时,操作就好像没有 RWF_UNCACHED 标志一样按照有缓冲的方式进行。如果页面不存在,则将它们添加到页面缓存中,但在操作完成后,这些页面将从页面缓存中删除。

更多的介绍请阅读 LWN 原文 “Buffered I/O without page-cache thrashing”

关键词: Linux, Buffered I/O

Linux 5.6 内核中将添加对 USB4 的支持

Linux 5.6 will receive support for USB4, Phoronix reported on Sunday. The Linux 5.6 Kernel will likely debut by April. USB4’s spec published in September and is based on Thunderbolt 3, with which it is backwards compatible. Intel’s open-source department added the initial patches for USB4 in October. The Linux 5.6 kernel will reportedly have both host and device support, as well as source code and a bunch of other features, thanks to leveraging the existing Thunderbolt code. It has also kept the code compact at just 2,000 lines of code.

USB4 规范于 9 月发布,基于 Thunderbolt 3,并向后兼容。英特尔已经在 10 月份添加了对 USB4 的初始支持。据报道,由于利用了现有的 Thunderbolt 代码,Linux 5.6 内核将同时支持主机和设备侧。代码修改不多,仅 2,000 行左右。支持的 USB4 特性包括 DisplayPort tunnelling、PCIe tunnelling、P2P networking 等。目前补丁仅支持 Intel 和 Apple 的设备。

关键词: Linux, USB4

Linux 5.5 版本爆引入性能下降

Going back to the start of December with the Linux 5.5 merge window we have encountered several significant performance regressions. Over the weeks since we’ve reproduced the behavior on both Intel and AMD systems along with large and small CPUs. Following some holiday weekend bisecting fun, here is the cause at least partially for the Linux 5.5 slowdowns.

On a number of different systems this month we’ve seen several regressions in real-world workloads like NPB and Parboil, PostgreSQL, Memcached, RocksDB, and also synthetic tests like the Hackbench scheduler benchmark. Worth noting, as to be explained, all these systems were running Ubuntu Linux.

社区在对 Linux 5.5 版本测试期间遇到了一些重大的性能下降。性能下降可以在 Intel 和 AMD 系统以及大型和小型 CPU 上重现。本月以来,在许多不同系统上,我们看到了诸如 NPB 和 Parboil,PostgreSQL,Memcached,RocksDB 等实际现场中出现了一些性能发生下降。值得一提的是,所有这些系统都在运行 Ubuntu Linux。具体的故障排查和原因分析请参考 “One Of The Reasons Why Linux 5.5 Can Be Running Slower”

关键词: Linux, 5.5, performance regressions

VMware 收购 Pivotal

VMware has wrapped up 2019 with the addition of Pivotal to its ever growing family. One of the largest contributors to Kubernetes, and an emerging open source company, VMware has announced that it has completed the acquisition of Pivotal for $2.7 billion.

2020 年元旦,VMware 公司正式宣布,已经完成对 Pivotal 公司的收购,这笔交易斥资 27 亿美元。收购完成后,Pivotal 的股权结构将从纽约证券交易所退市,以 VMware 全资子公司的形式运营。

其实,VMware 收购 Pivotal 的消息在今年 8 月份就已经发布,目前 Pivotal 的产品已经整合到 VMware Tanzu,以现代应用平台业务部门的形式存在。作为 Tanzu 组合的最核心部分,用户可通过 VMware Enterprise PKS 深入集成到 vSphere、NSX 和 vSAN 中,将 Kubernetes 容器和虚拟机一起在现有 SDDC 基础架构上运行,并可以跨任何云环境构建自定义 Kubernetes 平台,实现跨数据中心、云计算和边缘环境的软件交付。

更多报道请见 “VMware Wraps Up 2019 With Pivotal Acquisition”

关键词: VMware, Pivotal

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: