Thread (38 messages) 38 messages, 9 authors, 2007-09-16

Re: [PATCH/RFC] Add node 'states' sysfs class attribute - V2

From: Christoph Lameter <hidden>
Date: 2007-08-28 00:08:02

On Mon, 27 Aug 2007, Andrew Morton wrote:
Perhaps including sample output would help to explain wtf this does. 
afaict it will spit out a bitmap like:

possible: 11110000
on-line: 11010000
normal memory: 01110000
etc

or something like that, dunno.  Please document this interface for us?
We also talked about having nodelist_scnprintf call bitmap_scnlistprintf. 
I'd expect that to be a separate patch. The output should then be more 
like

possible: 0-4
online: 0-1, 3
normal memory: 1-3
quoted
+	"normal memory:",
+#ifdef CONFIG_HIGHMEM
+	"high memory:",
Do we really want a space in here?  It makes parsing somewhat
harder.  Do the other files in /sys/devices/system/node take care to avoid
doing this?
This is the first file in that directory. The files in
/sys/devices/system/node/nodeX  use _ there.
And what happened to the one-value-per-sysfs file rule?  Did we already
break it so much in /sys/devices/system/node that we've just given up?
/sys/devices/system/node/nodeX/meminfo is like /proc/meminfo containing 
multiple settings.

--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help