合集-翻译1
摘要:原文:https://www.kernel.org/doc/html/latest/core-api/workqueue.html Introduction There are many cases where an asynchronous process execution context is
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/mm/concepts.html The memory management in Linux is a complex system that evolved over the years
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/mm/numa.html This question can be answered from a couple of perspectives: the hardware view and the Linux so
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/filesystems/vfs.html#overview-of-the-linux-virtual-file-system Introduction The Virtual File System (also kn
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/mm/hugetlbpage.html 内核中内存管理文档汇总:Memory Management Overview The intent of this file is to give a
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html What is the magic SysRq key? 什么是魔术SysRq键? It is a 'magical' key combo you can hit whi
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/kbuild/modules.html This document describes how to build an out-of-tree kernel module. 1. Introduction "kbui
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html A Tour Through TREE_RCU's Expedited Grace Pe
阅读全文
摘要:原文: https://docs.kernel.org/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.html August 8, 2017 This article was contributed by Paul E. McKenney I
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/filesystems/path-lookup.html 内核中文件系统相关的文档汇总:Filesystems in the Linux kernel This write-up is based on three
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/kernel-hacking/false-sharing.html What is False Sharing 什么是伪共享 False sharing is related with cache mechanism
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/mm/transhuge.html Objective 目标 Performance critical computing applications dealing with large me
阅读全文
摘要:原文: https://www.kernel.org/doc/html/latest/admin-guide/numastat.html /sys/devices/system/node/node*/numastat All units are pages. Hugepages have separ
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/lockup-watchdogs.html The Linux kernel can act as a watchdog to detect both soft and hard lockup
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/mm/numa_memory_policy.html What is NUMA Memory Policy? In the Linux kernel, "memory policy" dete
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/core-api/symbol-namespaces.html 以下文件描述了如何使用符号命名空间来构造通过EXPORT_SYMBOL()宏系列导出的内核符号的导出表面。 1. 介绍 符号命名空间被引入作为结构化内核
阅读全文
摘要:原文: https://www.kernel.org/doc/html/latest/mm/physical_memory.html Linux is available for a wide range of architectures so there is a need for an arch
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/mm/page_tables.html 分页虚拟内存是在1962年与虚拟内存概念一起在Ferranti Atlas计算机上发明的,这是第一台具有分页虚拟内存的计算机。随着时间的推移,这一特性迁移到了更新的计算机上,并
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/mm/unevictable-lru.html Introduction This document describes the Linux memory manager's "Unevictable LRU" in
阅读全文
摘要:原文:https://www.kernel.org/doc/html/v6.6/mm/slub.html SLUB简短用户指南 SLUB的基本理念与SLAB非常不同。SLAB需要重新构建内核以激活所有slab缓存的调试选项。SLUB始终包含完整的调试功能,但默认情况下处于关闭状态。SLUB可以仅针对
阅读全文
摘要:原文:https://www.kernel.org/doc/html/v6.6/admin-guide/mm/damon/index.html DAMON: 数据访问监控 DAMON允许进行轻量级的数据访问监控。使用DAMON,用户可以分析其系统的内存访问模式并进行优化。 入门指南 先决条件 记录数
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/mm/idle_page_tracking.html 空闲页面跟踪 动机 空闲页面跟踪功能允许跟踪工作负载访问的内存页面和空闲页面。这些信息对于估算工作负载的工作集大小很有用,进而可以在配置工
阅读全文
摘要:原文:https://www.kernel.org/doc/html/v6.6/admin-guide/mm/pagemap.html 检查进程页表 pagemap是内核中的一组接口,允许用户空间程序通过读取/proc中的文件来检查页面表和相关信息。 pagemap包括以下四个组件: /proc/p
阅读全文
摘要:原文:https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/cpuacct.html CPU核算控制器 CPU核算控制器用于使用cgroups对任务进行分组,并核算这些任务组的CPU使用情况。 CPU核算控制器支持多层级分组。一个核算组
阅读全文
摘要:原文:https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/index.html Control Groups Block IO Controller CPU Accounting Controller CPUSETS Device W
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html 另外两篇: Control Group v2 —— Controller(翻译 by chatgpt) Control Group v2 —— Namespace
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/kdump/kdump.html 这份文档包括概述、设置、安装和分析信息。 概述 Kdump 使用 kexec 快速引导到一个转储捕获内核,每当需要对系统内核的内存进行转储(例如系统发生崩溃)
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/mm/shrinker_debugfs.html Shrinker Debugfs Interface 收缩器 debugfs 接口提供了对内核内存收缩子系统的可见性,并允许获取有关单个收缩器
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#controllers Controllers CPU The "cpu" controllers regulates distribution of CPU c
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#namespace Namespace 命名空间 Basics 基础知识 cgroup namespace provides a mechanism to vir
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/core-api/printk-index.html Printk索引 有许多方法可以监视系统的状态。一个重要的信息来源是系统日志。它提供了大量信息,包括更或不那么重要的警告和错误消息。 有一些监控工具可以根据记录的
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/core-api/printk-formats.html#printk-specifiers 如何正确使用printk格式说明符 整数类型 如果变量是Type类型, 则使用printk格式说明符: signed ch
阅读全文
摘要:原文:https://www.kernel.org/doc/html/latest/core-api/asm-annotations.html 汇编注释 版权所有(c)2017-2019 Jiri Slaby 本文档描述了汇编中用于注释数据和代码的新宏。特别是,它包含了关于SYM_FUNC_STAR
阅读全文
摘要:原文:https://www.kernel.org/doc/html/v6.6/accounting/psi.html#psi 日期 2018年4月 作者 Johannes Weiner hannes@cmpxchg.org 当CPU、内存或IO设备争用时,工作负载会出现延迟峰值、吞吐量损失,并面临
阅读全文
摘要:原文:https://www.kernel.org/doc/html/v6.6/process/development-process.html Linux内核开发流程指南 目录: 介绍 1.1. 执行摘要 1.2. 本文内容 1.3. 鸣谢 1.4. 将代码纳入主线的重要性 1.5. 许可证 开发
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/1.Intro.html 简介 1.1. 执行摘要 本节的其余部分涵盖了内核开发过程的范围以及开发人员及其雇主可能遇到的各种挫折。有许多原因说明为什么内核代码应该合并到官方(“主线”)内核中,包括自动提供给用户
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/2.Process.html Linux内核开发流程 Linux内核在20世纪90年代初期是一个相当松散的事务,涉及的用户和开发者数量相对较少。随着用户基数达到数百万,并有约2000名开发者在一年内参与开发,内
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/3.Early-stage.html 3. 早期规划 在考虑 Linux 内核开发项目时,很容易就跃跃欲试,开始编码。然而,与任何重要项目一样,成功的基础工作最好是在编写第一行代码之前完成的。在早期规划和沟通上
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/4.Coding.html 4. 编写正确的代码 虽然坚实且以社区为导向的设计过程有很多值得说的地方,但任何内核开发项目的证明都在于最终的代码。其他开发人员将审查这些代码,并将其合并(或不合并)到主线树中。因此
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/5.Posting.html 5. 提交补丁 迟早会有一个时刻,你的工作准备好被提交给社区审查,并最终被合并到主线内核中。毫不奇怪,内核开发社区已经形成了一套用于提交补丁的惯例和程序,遵循这些规定将使所有相关人
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/6.Followthrough.html 6. 跟进 到目前为止,您已经遵循了迄今为止给出的指南,并且凭借自己的工程技能,发布了一系列完美的补丁。即使是经验丰富的内核开发人员也可能犯的最大错误之一是认为他们的工
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/7.AdvancedTopics.html 高级主题 到目前为止,希望你已经掌握了开发过程的工作方式。然而,还有更多需要学习的地方!本节将涵盖一些对于希望成为 Linux 内核开发过程中的常规部分的开发人员有帮
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/8.Conclusion.html 以下是您提供的文本的中文翻译: 8. 获取更多信息 关于Linux内核开发及相关主题,有许多信息来源。其中最重要的始终是内核源代码分发中的Documentation目录。从顶
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/submitting-patches.html 对于希望向Linux内核提交更改的个人或公司来说,如果您不熟悉“系统”,这个过程有时可能会令人望而生畏。本文是一些建议的集合,可以极大地增加您的更改被接受的机会。
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/code-of-conduct.html Contributor Covenant 行为准则 我们的承诺 为了营造一个开放、友好的环境,我们作为贡献者和维护者承诺,无论年龄、体型、残疾、种族、性别特征、性别认同
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/maintainer/index.html Kernel Maintainer Handbook 这份文档是为内核维护者编写的指南的谦逊开端。这里还有很多工作要做!请随时提出(并编写)对这份指南的补充。 功能和驱动程序维护者
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/maintainer/feature-and-driver-maintainers.html 术语“维护者”涵盖了从处理补丁和拉取请求几乎全职工作的人,到负责小特性或驱动程序的人的广泛范围。 与本章的大部分内容不同,本节适用于
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/maintainer/configure-git.html 配置 Git 本章描述了维护者级别的 Git 配置。 在拉取请求中使用的标记分支(请参阅创建拉取请求)应该由开发者的公共 GPG 密钥进行签名。可以通过向 git t
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/maintainer/rebasing-and-merging.html 重基和合并 一般来说,维护一个子系统需要熟悉 Git 源代码管理系统。Git 是一个功能强大的工具,具有许多特性;通常情况下,对于这类工具来说,使用这些
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/maintainer/pull-requests.html 创建拉取请求 本章描述了维护者如何创建并提交拉取请求给其他维护者。这对于将一个维护者的更改传输到另一个维护者的树中非常有用。 这份文档是由Tobin C. Hardi
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/maintainer/messy-diffstat.html 处理混乱的拉取请求差异统计 子系统维护者通常在将工作发送到上游的过程中使用git request-pull命令。通常,结果包括一个漂亮的差异统计,显示将要修改的文件
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/maintainer/maintainer-entry-profile.html 维护者入口配置文件 维护者入口配置文件是对顶层流程文档(提交补丁、提交驱动程序等)的补充,其中包括子系统/设备驱动程序本地习俗以及有关补丁提交生
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/maintainer/modifying-patches.html 修改补丁 如果你是一个子系统或分支的维护者,有时你需要稍微修改你收到的补丁才能合并它们,因为你的代码与提交者的代码并不完全相同。如果你严格遵守开发者证书的规则
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/license-rules.html Linux内核许可规则 Linux内核仅在GNU通用公共许可证第2版(GPL-2.0)的条款下提供,如LICENSES/preferred/GPL-2.0中所述,并在LIC
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/handling-regressions.html# 处理回归 我们不会引起回归 - 本文描述了对开发人员来说,“Linux内核开发的第一法则”在实践中意味着什么。它是对报告回归的补充,该报告从用户的角度涵盖了
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/stable-api-nonsense.html#binary-kernel-interface Linux内核驱动程序接口 (回答你的所有问题以及更多) Greg Kroah-Hartman greg@kro
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/management-style.html Linux内核管理风格 这是一份简短的文件,描述了Linux内核的首选(或虚构的,这取决于你问谁)管理风格。它旨在在某种程度上反映过程/编码风格.rst文件,并主要是
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/stable-kernel-rules.html# 关于Linux稳定版本的一切你想知道的内容 关于哪些补丁被接受,哪些不被接受进入“-stable”树的规则: 它或等效的修复必须已经存在于Linus的树(上游
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/submit-checklist.html 这是一个关于 Linux 内核补丁提交的清单,开发者如果想要更快地看到他们的内核补丁被接受,应该做一些基本的事情。 这些事情都超出了《Documentation/pr
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/kernel-docs.html 进一步内核文档索引 像这样的文档的需求在 linux-kernel 邮件列表中变得明显,因为相同的问题一次又一次地出现,要求指向信息。 幸运的是,随着越来越多的人开始使用 GN
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/deprecated.html 废弃的接口、语言特性、属性和约定 在一个完美的世界中,将所有废弃的 API 实例转换为新的 API 并在单个开发周期内完全移除旧的 API 是可能的。然而,由于内核的规模、维护层
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/contribution-maturity-model.html Linux内核贡献成熟度模型 背景 作为2021年Linux内核维护者峰会的一部分,讨论了招募内核维护者以及维护者继任方面的挑战。其中一些结论包
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/process/volatile-considered-harmful.html 为什么不应该使用"volatile"类型的类 C程序员通常认为volatile意味着变量可以在当前执行线程之外被改变;因此,当使用共享数据结构时
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/admin-guide/initrd.html 使用初始RAM磁盘(initrd) 由Werner Almesberger werner.almesberger@epfl.ch和Hans Lermen lermen@fgan.
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/admin-guide/workload-tracing.html 发现工作负载使用的 Linux 内核子系统 作者 Shuah Khan skhan@linuxfoundation.org Shefali Sharma ss
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/kernel-hacking/hacking.html Rusty Russell's "Unreliable Guide to Hacking the Linux Kernel" 作者 Rusty Russell 简介 欢迎
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/kernel-hacking/locking.html Rusty's Remarkably Unreliable Guide to Kernel Locking 作者 Rusty Russell 简介 欢迎阅读 Rusty'
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/doc-guide/kernel-doc.html 写入内核文档注释 Linux内核源文件中可能包含内核文档格式的结构化文档注释,用于描述代码的函数、类型和设计。将文档嵌入到源文件中可以更容易地保持文档的最新状态。 注意 内核
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/index.html#memory-management 核心API文档 这是核心内核API手册的开头部分。非常感谢您进行文档的转换和编写! 核心实用程序 本节包含一般和“核心核心”文档。首先是一大堆来自do
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/mm/index.html 内存管理指南 这是关于Linux内存管理子系统的指南。如果您只是想了解如何分配内存,请参阅内存分配指南。有关控制和调整指南,请参阅管理员指南。 物理内存 页表 进程地址 引导内存 页分配 虚拟连续内
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/mm/highmem.html 高内存处理 作者:Peter Zijlstra a.p.zijlstra@chello.nl 什么是高内存? 当物理内存的大小接近或超过虚拟内存的最大大小时,就会使用高内存(highmem)。在
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/memory-allocation.html 内存分配指南 Linux提供了各种用于内存分配的API。您可以使用kmalloc或kmem_cache_alloc系列来分配小块内存,使用vmalloc及其衍生物
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/unaligned-memory-access.html 不对齐的内存访问 作者 Daniel Drake dsd@gentoo.org Johannes Berg johannes@sipsolutions
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/dma-api.html 动态DMA映射使用通用设备 作者 James E.J. Bottomley James.Bottomley@HansenPartnership.com 本文档描述了DMA API。要
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/dma-api-howto.html 动态DMA映射指南 作者 David S. Miller davem@redhat.com Richard Henderson rth@cygnus.com Jakub
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/dma-attributes.html DMA属性 本文档描述了在linux/dma-mapping.h中定义的DMA属性的语义。 DMA_ATTR_WEAK_ORDERING DMA_ATTR_WEAK_O
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/dma-isa-lpc.html DMA与ISA和LPC设备 作者 Pierre Ossman drzeus@drzeus.cx 本文档描述了如何使用旧的ISA DMA控制器进行DMA传输。尽管ISA在今天已
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/mm-api.html
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/genalloc.html genalloc/genpool 子系统 内核中有许多内存分配子系统,每个子系统都针对特定的需求。然而,有时内核开发人员需要为特定范围的特定用途内存实现新的分配器;通常这些内存位于
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/boot-time-mm.html#c.memblock_flags "Boot time memory management"(引导时间内存管理) 早期系统初始化不能简单地使用“正常”的内存管理,因为它还没
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/gfp_mask-from-fs-io.html GFP masks used from FS/IO context 日期 2018年5月 作者 Michal Hocko mhocko@kernel.org
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/pin_user_pages.html pin_user_pages()及相关调用 概述 本文档描述以下函数: pin_user_pages() pin_user_pages_fast() pin_user_
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/memory-hotplug.html 内存热插拔 内存热插拔事件通知 热插拔事件被发送到一个通知队列中。 在 include/linux/memory.h 中定义了六种通知类型: MEM_GOING_ONL
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/cachetlb.html Linux下的Cache和TLB刷新 作者:David S. Miller davem@redhat.com 本文描述了Linux VM子系统调用的缓存/TLB刷新接口。它枚举了每
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/cpu_hotplug.html CPU热插拔在内核中的支持 日期 2021年9月 作者 Sebastian Andrzej Siewior bigeasy@linutronix.de, Rusty Russ
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/irq/index.html IRQs 什么是IRQ? SMP IRQ 亲和性 Linux内核中的irq_domain中断号映射库 IRQ 标志状态跟踪 什么是IRQ? IRQ(中断请求)是设备发出的中断请求
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/wrappers/memory-barriers.html Linux内核内存屏障 免责声明 本文档不是一个规范;它故意(为了简洁)和无意(因为是人类)不完整。本文档旨在指导如何使用Linux提供的各种内存屏
阅读全文
摘要:https://www.kernel.org/doc/html/v6.6/core-api/refcount-vs-atomic.html refcount_t API 与 atomic_t 的比较 介绍 相关的内存排序类型 函数比较 非“读/修改/写”(RMW)操作 基于增量的操作,不返回值 基于
阅读全文

浙公网安备 33010602011771号