[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aNLEG9m9JM4gDM9L@slm.duckdns.org>
Date: Tue, 23 Sep 2025 06:00:27 -1000
From: Tejun Heo <tj@...nel.org>
To: Andrea Righi <arighi@...dia.com>
Cc: David Vernet <void@...ifault.com>, Changwoo Min <changwoo@...lia.com>,
linux-kernel@...r.kernel.org, sched-ext@...ts.linux.dev
Subject: Re: [PATCH 4/7] sched_ext: Use bitfields for boolean warning flags
On Tue, Sep 23, 2025 at 09:45:26AM +0200, Andrea Righi wrote:
> On Sun, Sep 21, 2025 at 03:32:43PM -1000, Tejun Heo wrote:
> > Convert warned_zero_slice and warned_deprecated_rq in scx_sched struct to
> > single-bit bitfields to reduce struct size.
> >
> > Signed-off-by: Tejun Heo <tj@...nel.org>
>
> Hm... I think the struct size remains the same, at least in my build:
> - before: /* size: 1072, cachelines: 17, members: 14 */
> - after: /* size: 1072, cachelines: 17, members: 14 */
>
> Maybe if we add more attributes in the future?
Yeah, just so that we don't keep expanding the struct as we add flags. I'll
update the description.
Thanks.
--
tejun
Powered by blists - more mailing lists