[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250826091551.GC87@bytedance>
Date: Tue, 26 Aug 2025 17:15:51 +0800
From: Aaron Lu <ziqianlu@...edance.com>
To: Valentin Schneider <vschneid@...hat.com>
Cc: Ben Segall <bsegall@...gle.com>,
K Prateek Nayak <kprateek.nayak@....com>,
Peter Zijlstra <peterz@...radead.org>,
Chengming Zhou <chengming.zhou@...ux.dev>,
Josh Don <joshdon@...gle.com>, Ingo Molnar <mingo@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
Xi Wang <xii@...gle.com>, linux-kernel@...r.kernel.org,
Juri Lelli <juri.lelli@...hat.com>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Steven Rostedt <rostedt@...dmis.org>, Mel Gorman <mgorman@...e.de>,
Chuyi Zhou <zhouchuyi@...edance.com>,
Jan Kiszka <jan.kiszka@...mens.com>,
Florian Bezdeka <florian.bezdeka@...mens.com>,
Songtang Liu <liusongtang@...edance.com>, Tejun Heo <tj@...nel.org>
Subject: Re: [PATCH v3 4/5] sched/fair: Task based throttle time accounting
On Mon, Aug 18, 2025 at 04:57:27PM +0200, Valentin Schneider wrote:
> On 15/07/25 15:16, Aaron Lu wrote:
> > @@ -5287,19 +5287,12 @@ enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)
> > check_enqueue_throttle(cfs_rq);
> > list_add_leaf_cfs_rq(cfs_rq);
> > #ifdef CONFIG_CFS_BANDWIDTH
> > - if (throttled_hierarchy(cfs_rq)) {
> > + if (cfs_rq->pelt_clock_throttled) {
> > struct rq *rq = rq_of(cfs_rq);
> >
> > - if (cfs_rq_throttled(cfs_rq) && !cfs_rq->throttled_clock)
> > - cfs_rq->throttled_clock = rq_clock(rq);
> > - if (!cfs_rq->throttled_clock_self)
> > - cfs_rq->throttled_clock_self = rq_clock(rq);
> > -
> > - if (cfs_rq->pelt_clock_throttled) {
> > - cfs_rq->throttled_clock_pelt_time += rq_clock_pelt(rq) -
> > - cfs_rq->throttled_clock_pelt;
> > - cfs_rq->pelt_clock_throttled = 0;
> > - }
> > + cfs_rq->throttled_clock_pelt_time += rq_clock_pelt(rq) -
> > + cfs_rq->throttled_clock_pelt;
> > + cfs_rq->pelt_clock_throttled = 0;
>
> This is the only hunk of the patch that affects the PELT stuff; should this
> have been included in patch 3 which does the rest of the PELT accounting changes?
>
While working on a rebase and staring at this further, this hunk that
deals with pelt stuff is actually introduced in patch 3 and do not have
any real changes here. i.e. after throttled_clock related lines are
removed, pelt stuffs just moved from an inner if to an outer if but it
didn't have any real changes.
I hope I've clarified it clear this time, last time my brain stopped
working...
Powered by blists - more mailing lists