[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1278611755.1900.169.camel@laptop>
Date: Thu, 08 Jul 2010 19:55:55 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Suresh Siddha <suresh.b.siddha@...el.com>
Cc: Venkatesh Pallipadi <venki@...gle.com>,
LKML <linux-kernel@...r.kernel.org>,
Gautham R Shenoy <ego@...ibm.com>,
Joel Schopp <jschopp@...tin.ibm.com>,
Michael Neuling <mikey@...ling.org>
Subject: Re: [PATCH] sched: Call update_group_power only for local_group
On Thu, 2010-07-08 at 10:50 -0700, Suresh Siddha wrote:
> On Thu, 2010-07-08 at 10:49 -0700, Peter Zijlstra wrote:
> > On Thu, 2010-07-08 at 10:45 -0700, Suresh Siddha wrote:
> > >
> > > @@ -2456,6 +2454,9 @@ static inline void update_sd_lb_stats(struct sched_domain *sd, int this_cpu,
> > > init_sd_power_savings_stats(sd, sds, idle);
> > > load_idx = get_sd_load_idx(sd, idle);
> > >
> > > + if (this_cpu == smp_processor_id())
> > > + update_group_power(sd, this_cpu);
> > > +
> > > do {
> > > int local_group;
> >
> > Which will break for nohz_idle_balance..
>
> Then the logic is broken somewhere because update_group_power() reads
> APERF/MPERF MSR's which doesn't make sense when this_cpu !=
> smp_processor_id(). What am I missing?
The APERF/MPERF code is utterly broken.. (and currently disabled by
default) but yeah, that's one aspect of its brokenness I only realized
after your email.
The problem is that it measures current throughput, not current
capacity. So for an idle thread/core it would return 0, instead of the
potential.
I've been meaning to revisit this.. maybe I should simply rip that out
until I get it working.
I was thinking of measuring temporal maxima to approximate capacity
instead of throughput.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists