[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090825102023.GB26801@elte.hu>
Date: Tue, 25 Aug 2009 12:20:23 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Andreas Herrmann <andreas.herrmann3@....com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 15/15] x86: Fix cpu_coregroup_mask to return correct
cpumask on multi-node processors
* Peter Zijlstra <peterz@...radead.org> wrote:
> On Tue, 2009-08-25 at 11:31 +0200, Andreas Herrmann wrote:
> > On Mon, Aug 24, 2009 at 05:36:16PM +0200, Peter Zijlstra wrote:
> > > On Thu, 2009-08-20 at 15:46 +0200, Andreas Herrmann wrote:
> > > > The correct mask that describes core-siblings of an processor
> > > > is topology_core_cpumask. See topology adapation patches, especially
> > > > http://marc.info/?l=linux-kernel&m=124964999608179
> > >
> > >
> > > argh, violence, murder kill.. this is the worst possible hack and you're
> > > extending it :/
> >
> > So this is the third code area
> > (besides sched_*_power_savings sysfs interface, and the __cpu_power fiddling)
> > that is crap, mess, a hack.
> >
> > Didn't know that I'd enter such a minefield when touching this code. ;-(
>
> Yeah, you're lucky that way ;-) Its been creaking for a while, and I've
> been making noises to the IBM people (who so far have been the main
> source of power saving patches) to clean this up, but now you trod onto
> all of it at once..
>
> > What would be your perferred solution for the
> > core_cpumask/llc_shared_map stuff? Another domain level to get rid of
> > this function?
>
> Right, I'd like to see everything exposed as domain levels.
>
> numa-cluster
> numa
> socket
> in-socket-numa
> multi-core
> shared-cache
> core
> threads
>
> We currently have a fixed order of these things, but I think we
> should simply provide helpers for building the sd tree and let the
> arch code do that instead of exporting all these masks in a fixed
> order.
>
> Once we get the arch domain tree, we do degenerate stuff to cull
> all the trivial domains and fold SD flags.
Btw., to move this into the realm of possibility for .32, we can
start this by adding the framework and then crudely cutting off
these wrongly layered connections to the architecture code and doing
a clean core.
We might regress but the fixes to those will be isolated and forward
looking.
Ingo
--
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