• Nick Piggin's avatar
    [PATCH] sched: fixes for ia64 domain setup · c80f2dee
    Nick Piggin authored
    Still having some trouble with ia64 domain setup on the Altixes.  Jesse
    hasn't had much time to look into it, and I'm lacking an Altix, so I'm not
    sure if this is right or not...
    
    Anyway, it again does the right thing on the NUMAQ, and fixes some real
    bugs, so can you include it please?
    
    * Increase SD_NODES_PER_DOMAIN to 6 from 4 to better match Altix's
       topology. A setting of 4 will include this node, the other one
       in the brick, and the 2 nodes in the next closest brick, while 6
       will catch 2 other bricks. Probably it could be increased even
       more.
    
    * Work correctly with sparse and not completely full node maps.
    
    * Nasty typo fixed in find_next_best_node:
    	-               val = node_distance(node, i);
    	+               val = node_distance(node, n);
    
    * Ensure all nodes are themselves a member of their numa balancing
       domain. This is more a precaution against creative implementations
       of node_distance.. but it makes the setup easier to verify without
       having to look at a table of node_distance's, which is possibly
       generated at runtime.
    
    So again, I'm not too sure if this will fix the Altix setup or not.  But if
    you do a release, it will surely be less broken than it was before.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    c80f2dee
domain.c 8.14 KB