Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933054AbYBOKUU (ORCPT ); Fri, 15 Feb 2008 05:20:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757037AbYBOKUF (ORCPT ); Fri, 15 Feb 2008 05:20:05 -0500 Received: from relay2.sgi.com ([192.48.171.30]:53650 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754337AbYBOKUC (ORCPT ); Fri, 15 Feb 2008 05:20:02 -0500 Date: Fri, 15 Feb 2008 04:19:57 -0600 From: Paul Jackson To: David Rientjes Cc: Lee.Schermerhorn@hp.com, akpm@linux-foundation.org, clameter@sgi.com, ak@suse.de, linux-kernel@vger.kernel.org, mel@csn.ul.ie Subject: Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag Message-Id: <20080215041957.afe41262.pj@sgi.com> In-Reply-To: References: <1202862136.4974.41.camel@localhost> <20080212215242.0342fa25.pj@sgi.com> <20080212221354.a33799f2.pj@sgi.com> <20080213020344.45c9d924.pj@sgi.com> <20080213110426.15179378.pj@sgi.com> <20080213142956.5ba52101.pj@sgi.com> <20080214042643.dff40c72.pj@sgi.com> Organization: SGI X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.12.0; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 31 > So basically the "relative" nodemask that is passed with > MPOL_F_RELATIVE_NODES is wrapped around the allowed nodes? > > relative nodemask mems_allowed result > 1,3,5 4 4 > 1,3,5 4-6 4-6 > 1,3,5 4-8 4-5,7 > 1,3,5 4-10 4,6,8 > > Is that correct? By my calculation, all but the last line is correct. We use zero-based numbering, so relative node '1' is the 'second' node, and the 'second' node in allowed nodes 4-10 is node 5, not 4. Similarly for relative nodes '3' and '5'. So that last line should be: > 1,3,5 4-10 5,7,9 -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.940.382.4214 -- 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/