摘要: https://www.kernel.org/doc/html/v6.6/power/index.html APM or ACPI? Debugging hibernation and suspend Charger Manager Testing suspend and resume suppor 阅读全文
posted @ 2023-12-11 22:44 dolinux 阅读(30) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/pm/devices.html 设备电源管理基础 版权 © 2010-2011 Rafael J. Wysocki rjw@sisk.pl, Novell Inc. © 2010 Alan Stern s 阅读全文
posted @ 2023-12-11 22:43 dolinux 阅读(294) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/pm/cpuidle.html CPU空闲时间管理 版权 © 2019 Intel Corporation 作者 Rafael J. Wysocki rafael.j.wysocki@intel.com 阅读全文
posted @ 2023-12-11 22:18 dolinux 阅读(206) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/pm/index.html#cpu-and-device-power-management CPU和设备电源管理 CPU空闲时间管理 CPU空闲时间管理子系统 CPU空闲时间调度器 CPU空闲时间管理驱动 阅读全文
posted @ 2023-12-11 22:13 dolinux 阅读(39) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/timers/index.html#timers High resolution timers and dynamic ticks design notes High Precision Event Timer Driver 阅读全文
posted @ 2023-12-11 22:12 dolinux 阅读(19) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/timers/timers-howto.html 这篇文档提供了关于在Linux内核中使用不同延迟/休眠机制的信息,主要面向需要处理硬件延迟但对Linux内核内部工作机制不够熟悉的驱动程序编写人员。 插入延迟 首先需要问自己的 阅读全文
posted @ 2023-12-11 22:10 dolinux 阅读(423) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/timers/timekeeping.html 内核时间管理基础知识 本文将简要解释一些基本的内核时间管理抽象概念。它部分涉及内核树中通常在drivers/clocksource中找到的驱动程序,但代码可能分布在整个内核中。 阅读全文
posted @ 2023-12-11 22:08 dolinux 阅读(680) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/timers/no_hz.html 降低调度时钟中断 本文描述了 Kconfig 选项和引导参数,可以减少调度时钟中断的次数,从而提高能效并减少操作系统的抖动。减少操作系统的抖动对于某些类型的计算密集型高性能计算(HPC)应用 阅读全文
posted @ 2023-12-11 22:07 dolinux 阅读(1480) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/timers/hpet.html 高精度事件计时器(High Precision Event Timer,HPET)是根据Intel和Microsoft的规范(修订版1)设计的硬件。 每个HPET都有一个固定速率的计数器(在1 阅读全文
posted @ 2023-12-11 22:01 dolinux 阅读(530) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/timers/highres.html 高分辨率定时器和动态时钟设计笔记 更多信息可以在OLS 2006年的演讲论文"hrtimers and beyond"中找到。该论文是OLS 2006年会议第1卷的一部分,可以在OLS网 阅读全文
posted @ 2023-12-11 21:59 dolinux 阅读(177) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/text_files.html /* * The following program is used to generate the constants for * computing sched aver 阅读全文
posted @ 2023-12-11 21:54 dolinux 阅读(35) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-debug.html 调度器调试文件说明 numa_balancing 目录 numa_balancing 目录用于保存控制 NUMA 平衡功能的文件。如果来自该功能的系统开销过高,则可以通过 阅读全文
posted @ 2023-12-11 21:53 dolinux 阅读(68) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-stats.html 调度器统计 版本 15 的 schedstats 删除了一些 sched_yield 的计数器:yld_exp_empty、yld_act_empty 和 yld_both 阅读全文
posted @ 2023-12-11 21:52 dolinux 阅读(65) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-rt-group.html 实时组调度 0. 警告 调整这些设置可能导致系统不稳定,这些旋钮只有 root 用户才能操作,并且假设 root 用户知道自己在做什么。 最值得注意的是: 在 sch 阅读全文
posted @ 2023-12-11 21:50 dolinux 阅读(98) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-nice-design.html 调度器 Nice 设计 本文档解释了在新的 Linux 调度器中重新设计和简化 nice-levels 实现的思路。 在 Linux 下,nice levels 阅读全文
posted @ 2023-12-11 21:46 dolinux 阅读(51) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-util-clamp.html 利用率夹紧 1. 简介 利用率夹紧,也称为util clamp或uclamp,是一种调度器功能,允许用户空间帮助管理任务的性能需求。它是在v5.3版本中引入的。C 阅读全文
posted @ 2023-12-11 21:40 dolinux 阅读(1466) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/schedutil.html Schedutil 注意 所有这些都假设频率和工作能力之间存在线性关系,我们知道这是有缺陷的,但这是最好的可行近似。 PELT(Per Entity Load Tracking 阅读全文
posted @ 2023-12-11 21:28 dolinux 阅读(211) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-energy.html 能量感知调度 1. 简介 能量感知调度(Energy Aware Scheduling,EAS)赋予调度器预测其决策对 CPU 能量消耗的影响的能力。EAS 依赖于 CP 阅读全文
posted @ 2023-12-11 21:22 dolinux 阅读(358) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-capacity.html 容量感知调度 1. CPU容量 1.1 简介 传统的同质 SMP 平台由纯粹相同的 CPU 组成。另一方面,异构平台由具有不同性能特征的 CPU 组成 - 在这样的平 阅读全文
posted @ 2023-12-11 21:05 dolinux 阅读(131) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/completion.html Completions - "wait for completion" barrier APIs 介绍: 如果您有一个或多个线程必须等待某些内核活动达到某个点或特定状态,完成 阅读全文
posted @ 2023-12-11 20:53 dolinux 阅读(348) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-domains.html 调度器域 每个 CPU 都有一个“基本”调度域(struct sched_domain)。域层次结构是通过这些基本域通过 ->parent 指针构建的。->parent 阅读全文
posted @ 2023-12-11 20:50 dolinux 阅读(44) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-design-CFS.html CFS调度器 1. 概述 CFS代表“完全公平调度器”,是由Ingo Molnar实现并合并到Linux 2.6.23中的新“桌面”进程调度器。它是替代先前普通调 阅读全文
posted @ 2023-12-11 20:49 dolinux 阅读(132) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-deadline.html 0. 警告 调整这些设置可能导致系统行为不可预测甚至不稳定。对于 -rt(组)调度,假定超级用户知道自己在做什么。 1. 概述 sched_dl 调度类中包含的 SC 阅读全文
posted @ 2023-12-11 20:36 dolinux 阅读(388) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-bwc.html CFS带宽控制 注意 本文仅讨论SCHED_NORMAL的CPU带宽控制。SCHED_RT情况在实时组调度中有所涉及。 CFS带宽控制是CONFIG_FAIR_GROUP_SC 阅读全文
posted @ 2023-12-11 20:11 dolinux 阅读(163) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/sched-arch.html 《CPU调度器实现提示:针对特定体系结构代码》 Nick Piggin,2005 上下文切换 运行队列锁定 默认情况下,调用switch_to体系结构函数时会锁定运行队列。除 阅读全文
posted @ 2023-12-11 20:04 dolinux 阅读(51) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/scheduler/index.html#scheduler Completions - "wait for completion" barrier APIs CPU Scheduler implementation hint 阅读全文
posted @ 2023-12-11 19:59 dolinux 阅读(29) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/staging/rpmsg.html#remote-processor-messaging-rpmsg-framework Remote Processor Messaging (rpmsg) Framework 介绍 现代S 阅读全文
posted @ 2023-12-11 19:56 dolinux 阅读(1285) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/staging/remoteproc.html#remote-processor-framework 远程处理器框架 简介 现代SoC通常具有异构的远程处理器设备,采用非对称多处理(AMP)配置,可以运行不同实例的操作系统,无 阅读全文
posted @ 2023-12-11 19:54 dolinux 阅读(307) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/early-userspace/early_userspace_support.html#early-userspace-support 早期用户空间(Early userspace)是一组库和程序,提供 阅读全文
posted @ 2023-12-11 19:50 dolinux 阅读(108) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/filesystems/overlayfs.html#overlay-filesystem Overlay Filesystem 本文档描述了在Linux中提供叠加文件系统功能的新方法的原型(有时称为联合文件系统)。叠加文件系 阅读全文
posted @ 2023-12-11 19:47 dolinux 阅读(582) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/blockdev/zram.html#zram-compressed-ram-based-block-devices zram:基于压缩的RAM块设备 介绍 zram模块创建名为/dev/zram<id 阅读全文
posted @ 2023-12-11 19:30 dolinux 阅读(1716) 评论(0) 推荐(1)
摘要: https://www.kernel.org/doc/html/v6.6/staging/tee.html#tee-subsystem 这篇文档介绍了 Linux 中的 TEE(可信执行环境)子系统。 TEE 是在一些安全环境中运行的受信任操作系统,例如 ARM CPU 上的 TrustZone,或 阅读全文
posted @ 2023-12-11 19:18 dolinux 阅读(780) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/filesystems/relay.html#relay-interface-formerly-relayfs Relay Interface (formerly relayfs) 介绍 Relay接口提供了一种方式,让内核应 阅读全文
posted @ 2023-12-11 19:15 dolinux 阅读(121) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/uio-howto.html#the-userspace-i-o-howto 用户空间 I/O HOWTO 作者 Hans-Jürgen Koch Linux 开发者,Linutronix 日期 2006 阅读全文
posted @ 2023-12-11 19:12 dolinux 阅读(211) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/dmaengine/provider.html#dmaengine-controller-documentation DMA引擎控制器文档 硬件介绍 大多数从DMA控制器都具有相同的操作原则。 它们具有一 阅读全文
posted @ 2023-12-11 18:57 dolinux 阅读(148) 评论(0) 推荐(1)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/gpio/legacy.html GPIO(通用输入/输出)是什么? "通用输入/输出"(GPIO)是一种灵活的软件控制数字信号。它们来自许多类型的芯片,对于在嵌入式和定制硬件上工作的 Linux 开发人 阅读全文
posted @ 2023-12-11 16:08 dolinux 阅读(193) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/gpio/drivers-on-gpio.html GPIO子系统驱动程序 在Linux内核中,有许多标准的GPIO任务的驱动程序,它们提供了适当的内核空间和用户空间的API/ABI,并且可以通过硬件描述 阅读全文
posted @ 2023-12-11 15:52 dolinux 阅读(339) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/gpio/board.html GPIO映射 本文档解释了如何将GPIO分配给特定的设备和功能。 请注意,这仅适用于基于新描述符的接口。有关已弃用的基于整数的GPIO接口的描述,请参阅“Legacy GP 阅读全文
posted @ 2023-12-11 15:51 dolinux 阅读(286) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/gpio/consumer.html GPIO描述符消费者接口 本文档描述了GPIO框架的消费者接口。请注意,它描述了新的基于描述符的接口。有关已弃用的基于整数的GPIO接口的描述,请参阅“Legacy 阅读全文
posted @ 2023-12-11 15:49 dolinux 阅读(270) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/gpio/driver.html GPIO 驱动接口 这份文档是 GPIO 芯片驱动程序编写者的指南。 每个 GPIO 控制器驱动程序都需要包含以下头文件,该头文件定义了用于定义 GPIO 驱动程序的结构 阅读全文
posted @ 2023-12-11 15:47 dolinux 阅读(315) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/gpio/using-gpio.html 在Linux中使用GPIO线 Linux内核的存在是为了将硬件抽象化并呈现给用户。GPIO线通常不是面向用户的抽象。使用GPIO线的最明显、自然和首选方式是让内核 阅读全文
posted @ 2023-12-11 15:38 dolinux 阅读(66) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/gpio/intro.html GPIO接口简介 什么是GPIO? GPIO(通用目的输入/输出)是一种灵活的软件控制的数字信号。它们由许多种类型的芯片提供,并且对于使用嵌入式和定制硬件的Linux开发人 阅读全文
posted @ 2023-12-11 15:36 dolinux 阅读(130) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/gpio/index.html#general-purpose-input-output-gpio 通用目的输入/输出(GPIO) 简介 GPIO接口 什么是GPIO? 常见的GPIO属性 在Linux中 阅读全文
posted @ 2023-12-11 15:33 dolinux 阅读(51) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/staging/static-keys.html#static-keys 静态键 警告 已弃用的API: 直接使用'struct static_key'现在已经被弃用。此外,static_key_{true,false}()也 阅读全文
posted @ 2023-12-11 11:54 dolinux 阅读(195) 评论(0) 推荐(0)