Messages in this thread | | | Date | Tue, 16 Jul 2002 12:03:52 -0700 | From | "Martin J. Bligh" <> | Subject | Re: [patch[ Simple Topology API |
| |
> The whole "node" concept sounds broken. There is no such thing as a node, > since even within nodes latencies will easily differ for different CPU's > if you have local memories for CPU's within a node (which is clearly the > only sane thing to do).
Define a node as a group of CPUs with the same set of latencies to memory. Then you get something that makes sense for everyone, and reduces the storage of duplicated data. If your latencies for each CPU are different, define a 1-1 mapping between nodes and CPUs. If you really want to store everthing for each CPU, that's fine.
> If you want to model memory behaviour, you should have memory descriptors > (in linux parlance, "zone_t") have an array of latencies to each CPU. That > latency is _not_ a "is this memory local to this CPU" kind of number, that > simply doesn't make any sense. The fact is, what matters is the number of > hops. Maybe you want to allow one hop, but not five.
I can't help thinking that we'd be better off making the mechanism as generic as possible, and not trying to predict all the wierd and wonderful things people might want to do (eg striping), then implement what you describe as a policy decision.
M.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |