[PATCH RESEND v2] sched: adjust the layout of the cfs_bandwith structure to save memory
Hongling Zeng 提交的 v2 补丁基于 pahole 输出,重排 kernel/sched/sched.h 中 cfs_bandwidth 结构字段,将三个 u8 标志位前移到 lock 之后,消除 padding hole 中的 8 字节,把结构大小从 240 字节降到 232 字节。代价是 period_timer 跨 cacheline 0/1 边界,作者已论证其非热路径。v2 仅修正 commit message 措辞,代码层无改动,已获得 Ben Segall 的 Reviewed-by。
Hongling Zeng 提交的 v2 补丁基于 pahole 输出,重排 kernel/sched/sched.h 中 cfs_bandwidth 结构字段,将三个 u8 标志位前移到 lock 之后,消除 padding hole 中的 8 字节,把结构大小从 240 字节降到 232 字节。代价是 period_timer 跨 cacheline 0/1 边界,作者已论证其非热路径。v2 仅修正 commit message 措辞,代码层无改动,已获得 Ben Segall 的 Reviewed-by。