日期范围
231
全部讨论数
其它分析 success作者:zenghongling2026/03/20 15:201 封邮件

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

这是一个纯结构性 layout 优化 patch:把 struct cfs_bandwidth 中三个 u8 状态位挪到 raw_spinlock_t lock 后面,利用自然对齐 hole 把结构体从 240 字节压到 232 字节。代价是 period_timer 现在跨 64 字节 cacheline 边界,但作者强调该路径本就不热。属于 kernel/sched/sched.h 的轻量 cleanup,无功能或并发语义变化。

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