日期范围
231
全部讨论数
Bugfix分析 success作者:Fengyu Wang2026/08/04 15:083 封邮件

[PATCH] sched/topology: Free NUMA masks on topology allocation failure

sched_init_numa() 在分配 topology 数组前先通过 rcu_assign_pointer() 发布 NUMA masks;若 kzalloc 失败则提前 return,导致 masks 已发布但永远不会被释放。v1 在失败路径里 unpublish + synchronize_rcu + 三层 kfree 来回收,Tim Chen 进一步建议把 rcu_assign_pointer() 移到分配成功之后,作者将在 v2 中采用这种更简洁的 check-then-publish 写法。

lore
Bugfix重要分析 success作者:Hongling Zeng2026/08/04 14:151 封邮件

[PATCH v2] sched/numa: avoid doubling scan period for remote private faults

这个 v2 单 patch 修复了 NUMA 自动平衡里 update_task_scan_period() 的一个误判:旧代码用 local + shared == 0 判定无 fault,会把只有远程私有 fault 的工作负载误判为完全空闲,从而把扫描周期无条件翻倍。作者把判定换成 local + remote == 0,让这类负载继续走 locality-ratio 计算,同时顺手对齐 ps_ratio / lr_ratio 两个分支的注释。这是 NUMA 调度路径上的一个小但正确的修复,可能让远端私有访问为主的负载扫描变密。

lore
Bugfix分析 success作者:Hongling Zeng2026/08/04 14:093 封邮件

[PATCH] sched/numa: Fix scan period for remote private faults

Hongling Zeng 提交单封 patch 修改 update_task_scan_period() 的早返回条件,把 `local + shared == 0` 改成 `local + remote == 0`,试图让纯远程 private 工作负载进入 ratio 计算分支。但 Zhan Xusheng 评审指出,纯 remote private 场景下 ps_ratio 必为 10(>= 阈值 7),仍会落入 grow period 分支,commit message 中所谓"加速扫描"的说法不成立,实际只是把翻倍变成增长约 3 个 slot,建议补充数据并把注释修正拆成独立 pa...

lore
其它重要分析 success作者:Shubhang Kaushik (Ampere)2026/08/04 08:226 封邮件

[PATCH v3] sched/fair: Prefer waker CPU for non-SMT reciprocal sync wakeups

本系列在 select_task_rq_fair() 中新增 prefer_sync_pair_cpu(),借助 last_wakee 识别 pipe-style ping-pong WF_SYNC 唤醒,在非 SMT 平台上让 wakee 留在 waker CPU,80核 Ampere Altra 上 perf bench sched pipe 提升约 30%。线程后续由 Prateek 提议下沉到 select_idle_sibling() 以覆盖 SMT,并由 Shrikanth 质疑 sync wakeup 的整体语义,呼吁先界定策略再决定合入。

lore
Bugfix重要分析 success作者:Greg Kroah-Hartman2026/08/03 17:352 封邮件

Re: Linux 7.1.6

Greg Kroah-Hartman 在 lore.kernel.org 发布 Linux 7.1.6 稳定分支维护版本,回合了 mainline 上跨 arm64/loongarch/powerpc/riscv/s390/x86/m68k 等多个架构的 bug 修复、驱动支持、文档更新与 BPF/KVM 改进。回复截取的 hunk 显示了 cgroup-v2.rst 的格式清理 (去掉 (npn)、补充 zswap 的 amount of memory used 描述) 以及 hwmon/max34440.rst 新增 ADI ADPM12250 设备支持。公告明确要求所有 7.1 系列用户...

lore
讨论重要分析 success作者:Greg Kroah-Hartman2026/08/03 17:352 封邮件

Re: Linux 6.18.42

Greg Kroah-Hartman 发布 6.18 稳定分支的 6.18.42 小版本,要求所有 6.18 用户必须升级。本帖是 stable-announce 风格的发布公告,包含 DRM 文档、netlink yaml、各架构 DTS 与 RISC-V KVM 等多处修复片段,并非 scheduler 专题讨论。

lore
Bugfix分析 success作者:Greg Kroah-Hartman2026/08/03 17:342 封邮件

Linux 6.6.148

Greg Kroah-Hartman 发布 Linux 6.6.148 stable,要求 6.6 系列用户升级。邮件正文含跨多个子系统的 diffstat;从可读取的 patch 看,本版本把 Tegra234 SoC 的 CPU compatible 从 cortex-a78 更正为 cortex-a78ae,并 bump 了 Makefile 的 SUBLEVEL 到 148。该帖来源标记为 sched 频道,但内容并非 scheduler 专题。

lore
Bugfix分析 success作者:Eric Kim2026/08/03 15:503 封邮件

[PATCH] sched/numa: Reset NUMA fault locality after scan period update

update_task_scan_period 在放大扫描周期时没有清空 numa_faults_locality,导致旧 locality 数据影响下一次 NUMA 调度判断。v1 在早 return 前补 memset;v2 根据 Peter Zijlstra 建议改成 goto out,把清零统一到函数尾部的 out 标签,避免重复代码。

lore
其它分析 success作者:Hongling Zeng2026/08/03 15:401 封邮件

[PATCH RESEND v2] sched: adjust the layout of the cfs_bandwith structure to save memory

通过 pahole 发现 struct cfs_bandwidth 有 13 字节 padding hole,v2 RESEND 把三个 u8 标志挪到 raw_spinlock_t lock 之后,把结构体从 240 字节压到 232 字节。代价是 period_timer 跨过 cacheline 边界,但作者评估这条路径本来已访问多个 cacheline,并不是热点路径。

lore
Bugfix分析 success作者:Andrew Morton2026/08/03 14:544 封邮件

Re: [Bug 221804] New: WARNING at mm/memblock.c:904 __free_reserved_area(): "Cannot free reserved memory because of deferred initialization of the memory map" during housekeeping_init() at boot

CONFIG_DEFERRED_STRUCT_PAGE_INIT=y 时,housekeeping_init() 在 start_kernel() 早期调用 memblock_free() 释放 bootmem cpumask,因延迟内存映射尚未初始化而触发 WARNING 并污染内核。patch 将 memblock_free() 推迟到 core_initcall 执行,确保在 page_alloc_init_late() 完成后再释放。实际无内存泄漏,但 taint 标记影响生产环境。

lore
每页
上一页15 / 24下一页