[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKfTPtDcOt6ELdUXk9yoTc4QtAcT-5iad9UAB4COPyrN8z5umg@mail.gmail.com>
Date: Mon, 14 Jun 2021 17:48:58 +0200
From: Vincent Guittot <vincent.guittot@...aro.org>
To: Lukasz Luba <lukasz.luba@....com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
"open list:THERMAL" <linux-pm@...r.kernel.org>,
Peter Zijlstra <peterz@...radead.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Viresh Kumar <viresh.kumar@...aro.org>,
Quentin Perret <qperret@...gle.com>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Vincent Donnefort <vincent.donnefort@....com>,
Beata Michalska <Beata.Michalska@....com>,
Ingo Molnar <mingo@...hat.com>,
Juri Lelli <juri.lelli@...hat.com>,
Steven Rostedt <rostedt@...dmis.org>, segall@...gle.com,
Mel Gorman <mgorman@...e.de>,
Daniel Bristot de Oliveira <bristot@...hat.com>,
Thara Gopinath <thara.gopinath@...aro.org>,
Amit Kachhap <amit.kachhap@...il.com>, amitk@...nel.org,
Zhang Rui <rui.zhang@...el.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>
Subject: Re: [PATCH v3 2/3] sched/fair: Take thermal pressure into account
while estimating energy
On Mon, 14 Jun 2021 at 17:29, Lukasz Luba <lukasz.luba@....com> wrote:
>
> Hi Vincent,
>
> Gentle ping. Could you have a look at this implementation, please?
Ah yes, this has been lost in my inbox. Let me have a look at it
>
>
> On 6/10/21 4:03 PM, Lukasz Luba wrote:
>
> [snip]
>
> > @@ -6527,8 +6527,12 @@ compute_energy(struct task_struct *p, int dst_cpu, struct perf_domain *pd)
> > struct cpumask *pd_mask = perf_domain_span(pd);
> > unsigned long cpu_cap = arch_scale_cpu_capacity(cpumask_first(pd_mask));
> > unsigned long max_util = 0, sum_util = 0;
> > + unsigned long _cpu_cap, thermal_pressure;
> > int cpu;
> >
> > + thermal_pressure = arch_scale_thermal_pressure(cpumask_first(pd_mask));
> > + _cpu_cap = cpu_cap - thermal_pressure;
>
> I've done the implementation according to your suggestion. That should
> provide the consistent usage.
>
> Regards,
> Lukasz
Powered by blists - more mailing lists