From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 14 Sep 2007 03:50:58 -0700 From: Andrew Morton Subject: Re: [PATCH/RFC] Add node states sysfs class attributeS - V5 Message-Id: <20070914035058.89b13fa4.akpm@linux-foundation.org> In-Reply-To: <1189518975.5036.3.camel@localhost> References: <200708242228.l7OMS5fU017948@imap1.linux-foundation.org> <20070827181405.57a3d8fe.akpm@linux-foundation.org> <20070827201822.2506b888.akpm@linux-foundation.org> <20070827222912.8b364352.akpm@linux-foundation.org> <20070827231214.99e3c33f.akpm@linux-foundation.org> <1188309928.5079.37.camel@localhost> <29495f1d0708281513g406af15an8139df5fae20ad35@mail.gmail.com> <1188398621.5121.13.camel@localhost> <1189518975.5036.3.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Lee Schermerhorn Cc: linux-mm , Christoph Lameter , Nish Aravamudan , mel@skynet.ie, y-goto@jp.fujitsu.com, Kamezawa Hiroyuki , Eric Whitney , Andy Whitcroft , Martin Bligh List-ID: On Tue, 11 Sep 2007 09:56:15 -0400 Lee Schermerhorn wrote: > Should be about ready to go... > > Lee > > > PATCH Add node 'states' sysfs class attributes v5 > > Against: 2.6.23-rc4-mm1 > > V4 -> V5: > + further cleanup of print_nodes_state() suggested by Chirstoph. > > V3 -> V4: > + drop the annotations -- not needed with one value per file. > + this simplifies print_nodes_state() > + fix "function return type on separate line" style glitch > > V2 -> V3: > + changed to per state sysfs file -- "one value per file" > > V1 -> V2: > + style cleanup > + drop 'len' variable in print_node_states(); compute from > final size. > > Add a per node state sysfs class attribute file to > /sys/devices/system/node to display node state masks. > > E.g., on a 4-cell HP ia64 NUMA platform, we have 5 nodes: > 4 representing the actual hardware cells and one memory-only > pseudo-node representing a small amount [512MB] of "hardware > interleaved" memory. With this patch, in /sys/devices/system/node > we see: > > #ls -1F /sys/devices/system/node > has_cpu > has_normal_memory > node0/ > node1/ > node2/ > node3/ > node4/ > online > possible > #cat /sys/devices/system/node/possible > 0-255 > #cat /sys/devices/system/node/online > 0-4 > #cat /sys/devices/system/node/has_normal_memory > 0-4 > #cat /sys/devices/system/node/has_cpu > 0-3 > > N.B., NOT TESTED with CONFIG_HIGHMEM=y. > So how do we get it tested with CONFIG_HIGHMEM=y? Needs an i386 numa machine, yes? Perhaps Andy or Martin can remember to do this sometime, but they'll need a test plan ;) Thanks. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org