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

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

泰晓资讯·06月 / 第三期 / 2019

Wang Chen 创作于 2019/06/20

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

Linux Lab 发布 v0.1 rc3,大幅提升下载体验

Linux Lab 在本周顺利迎来了第 3 个候选版本,该版本集中优化了下载体验,详情请查阅 v0.1-rc3

本次 rc3 一共提交了 70 笔变更,主要更新如下:

  1. 所有 Linux Lab 相关仓库已经全部迁移到 码云,所有仓库的默认下载 url 也做了更新。下载速度成倍提升(~500K/s),感谢码云和开源中国。
  2. 在码云上也做了几个仓库的镜像:buildroot, uboot, qemu,大幅度提升下载体验(~500K/s)。
  3. Linux Stable 的源切换到了清华 TUNA 提供的镜像站,下载速度有数十倍的提升(~3M/s)。
  4. prebuilt 机制做了重构,更具可扩展性,下载更快。
  5. 新增 xxx-cloneconfig 配置目标,结合 test 目标,可以实现自动 porting 新的内核、Uboot 和 buildroot 版本,大大提升后续的升级工作。
  6. 新增更强大的自动化测试 wrapper:tools/testing/run.sh,方便在发布之前对所有开发板批量地做各项基本测试。
  7. 其他重要问题修复。

更多详细更新信息,请点击 Linux Lab 发布 v0.1 rc3

关键词:Linux Lab

LWN: 快乐编程,CircuitPython 项目和那些带有 LED 的小物件

As part of her shift in thinking, she realized that “software doesn’t have to be serious”; it can be used to make art, for example. But she also realized that hardware doesn’t need to be serious either ……

关键词:Python, PyCon, CircuitPython

2019 PyCon 大会的报道,来自 Adafruit 的女程序员 Nina Zakharenko 为大家演示了如何使用 Python 编程操作一些硬件外设来制作一些有趣的小玩意。譬如她在大会上展示的带有可编程 LED 的耳环。

Nina Zakharenko

LWN: Debian 项目组就强制统一使用打包工具展开激烈讨论

New Debian project leader (DPL) Sam Hartman started a conversation about potential changes to the Debian packaging requirements back in mid-May. In something of a departure from the Debian tradition of nearly endless discussion without reaching a conclusion, Hartman has instead tried to guide the discussion toward reaching some kind of rough consensus.

关键词:Debian, packaging

Debian 对 Debian 的开发人员在发布包的打包和维护方式上几乎没有什么强制的要求。这给予了开发人员最大的自由度,但同样也给项目带来了一些负面影响。新的 Debian 项目负责人Sam Hartman 在 5 月中旬就针对 Debian 软件包的打包方式的要求主持了一次讨论。可喜的是这次讨论没有像以往那样进入无休止的扯皮而是一定程度上达成某种粗略的共识。让我们拭目以待,看看最终是否会取得积极的成果。

LWN: 为 epoll 机制添加一个 ring buffer

The set of system calls known collectively as epoll was designed to make polling for I/O events more scalable. …… But that turns out to still not be scalable enough for some users. The response to this problem, in the form of this patch series from Roman Penyaev, takes a familiar form: add yet another ring-buffer interface to the kernel.

关键词:epoll, ring buffer, scalability

应用程序在使用 epoll 机制时首先调用 epoll_create1() (这个系统调用取代了过时的 epoll_create())来创建一个文件描述符,然后再调用 epoll_ctl() 将每个感兴趣的文件描述符添加到 epoll 的监听描述符集合中。最后,调用 epoll_wait() 以阻塞方式等待读写就绪事件在某个文件描述符上出现。这种调用机制比 select()或者 poll() 要麻烦一些,但在多路监听处理上会带来效率上的很大提升。

但现有的 epoll 机制在效率上仍有提升的空间,因为我们发现在以上操作中应用程序为了获取就绪的设备文件描述符,仍然需要多次调用系统调用。在一台繁忙的机器上,如果可以不用切换到内核模式就可以获取就绪的设备文件那该有多好。Roman Penyaev 为我们带来了一个新的补丁,他的做法是在应用程序和内核之间创建了一个 ring buffer 来传递设备就绪 events,这样我们就可以更加高效地对多路设备实现数据传输了。

LWN: 内核新功能 fs-verity 的最新进展

The fs‑verity mechanism has its origins in the Android project; its purpose is to make individual files read-only and enable the kernel to detect any modifications that might have been made, even if those changes happen offline. Previous fs‑verity implementations have run into criticism in the development community, and none have been merged. A new version of the patch set was posted on May 23; it features a changed user-space API and may have a better chance of getting into the mainline.

关键词:fs-verity

Android 平台使用 dm-verity 机制来验证和保护其系统镜像的完整性。但考虑到镜像中的某些关键组件需要增量更新,Google 的工程师们提出了 fs-verity 机制用于文件系统验证单个文件的真实性。原先用来实现 fs-verity 的补丁没有被社区接受,所以 Eric Biggers 在五月份又提交了一个新的补丁,这次修改有望被主线所接受。

LWN: 内核究竟需要多少个测试框架

The kernel self-test framework (kselftest) has been a part of the kernel for some time now; a relatively recent proposal for a kernel unit-testing framework, called KUnit, has left some wondering why both exist. In a lengthy discussion thread about KUnit, the justification for adding another testing framework to the kernel was debated. While there are different use cases for kselftest and KUnit, there was concern about fragmenting the kernel-testing landscape.

关键词:kselftest, KUnit, test

kselftest 作为 Linux 内核的单元测试框架被提出已经有一段年头了,最近 Brendan Higgins 又提出了另一套测试框架 - KUnit。但随之而来的问题是,很明显内核并不需要两套类似的单元测试工具。那么 KUnit 相对于 kselftest 究竟是一种重复还是有益的补充,这需要 Higgins 通过实际的功能展示来解释和证明。

LWN: 来自 KubeCon 大会的报道

The basic organizational construct within the Kubernetes project is a set of Special Interest Groups (SIGs), each of which represents a different area of responsibility within the project. Introductions to what the various SIGs do, as well as more detailed sessions, were a core part of KubeCon + CloudNativeCon Europe 2019, as the different groups explained what they’re doing now and their plans for the future. Two sessions, in particular, covered the work of the Release and Architecture SIGs, both of which have a key role in driving the project forward.

关键词:Kubernetes, SIG, Release, Architecture

Kubernetes 项目内部由多个 Special Interest Group (简称 SIG) 构成。每个 SIG 负责一个独立的方向。欧洲 2019 年 KubeCon + CloudNativeCon 大会的主要议题就是给大家介绍每个 SIG 的职责以及未来的计划。来自 Sean Kerner 的报道为大家详细介绍了 Kubernetes 项目中所有 SIG 中的两个非常关键的组,一个是 SIG Release 组,负责制订本项目的具体发布计划,另一个是 SIG Architecture 组,负责设计和改进整个 Kubernetes 的架构。

联系我们

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

tinylab wechat



Read Album:

Read Related:

Read Latest: