Re: [PATCH v1] sched: adjust the layout of the cfs_bandwith structure to save memory

From: Benjamin Segall

Date: Wed Jan 21 2026 - 16:23:44 EST


zenghongling <zenghongling@xxxxxxxxxx> writes:

> Using pahole, we can see that there are some padding holes
> in the current cfs_bandwith structure. Adjusting the
> layout of cfs_bandwith can reduce these holes,
> resulting in the size of the structure decreasing
> from 240 bytes to 232 bytes.
> It is possible to make period_timer access one more cache
> line.it is already touching so many cachelines and isn't
> that kind of hot path.

Something more like: "This make make period_timer access one more cache
line, but it is already [...]"

And commits generally have a blank line between paragraphs.

With that,

Reviewed-by: Ben Segall <bsegall@xxxxxxxxxx>