Re: sched_mc_power_savings broken with CGROUPS+CPUSETS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Saturday, August 30, 2008 - 4:26 am

On Fri, 2008-08-29 at 13:29 -0700, Max Krasnyansky wrote:

I don't think iterating the domains and setting the flag is sufficient.
Look at this crap (found in arch/x86/kernel/smpboot.c):

cpumask_t cpu_coregroup_map(int cpu)
{
        struct cpuinfo_x86 *c = &cpu_data(cpu);
        /*
         * For perf, we return last level cache shared map.
         * And for power savings, we return cpu_core_map
         */
        if (sched_mc_power_savings || sched_smt_power_savings)
                return per_cpu(cpu_core_map, cpu);
        else
                return c->llc_shared_map;
}

which means we'll actually end up building different domain/group
configurations depending on power savings settings.


Yeah - I was primarity hinting at the sched_group and find_*_group()
fudge, esp find_busiest_group() is an utter nightmare.

I'm still struggeling to understand _why_ we need those group things to
begin with, why aren't the child domains good enough?



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sched_mc_power_savings broken with CGROUPS+CPUSETS, Vaidyanathan Srinivasan, (Fri Aug 29, 6:15 am)
Re: sched_mc_power_savings broken with CGROUPS+CPUSETS, Peter Zijlstra, (Fri Aug 29, 6:23 am)
Re: sched_mc_power_savings broken with CGROUPS+CPUSETS, Vaidyanathan Srinivasan, (Fri Aug 29, 7:05 am)
Re: sched_mc_power_savings broken with CGROUPS+CPUSETS, Max Krasnyansky, (Fri Aug 29, 1:17 pm)
Re: sched_mc_power_savings broken with CGROUPS+CPUSETS, Max Krasnyansky, (Fri Aug 29, 1:29 pm)
Re: sched_mc_power_savings broken with CGROUPS+CPUSETS, Peter Zijlstra, (Sat Aug 30, 4:26 am)
Re: sched_mc_power_savings broken with CGROUPS+CPUSETS, Vaidyanathan Srinivasan, (Sat Aug 30, 1:02 pm)
Re: sched_mc_power_savings broken with CGROUPS+CPUSETS, Vaidyanathan Srinivasan, (Sat Aug 30, 1:42 pm)
Re: sched_mc_power_savings broken with CGROUPS+CPUSETS, Peter Zijlstra, (Sat Aug 30, 2:43 pm)