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

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

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2007-08-28 05:29:12

On Mon, 27 Aug 2007 22:15:23 -0700 (PDT) Christoph Lameter [off-list ref] wrote:
On Mon, 27 Aug 2007, Andrew Morton wrote:
quoted
quoted
The masks can get quite ugly to read if you have lots of nodes. F.e. with 
1024 nodes you get a line that wraps around more than 10 times.
So don't read them - use a program to turn them into your preferred
human-readable representation.
You are volunterring to write all the programs we need for this and that 
debugging situation?
Sure!  $500/hour!
 Even if you do this: It will significantly slow us 
down always having to come to you and ask you for a tool.
Your claim here is, I believe, that a human user interface should be
implemented in the kernel because the cost (to you) (short-term) of doing
that is lower that the cost of implementing a simpler kernel interface and
a bit of userspace human presentation code.  Even though the long-term
cost to the kernel maintainers is higher, and the resulting output is
harder for programs to parse.

Interesting.

Please type "cat /proc/stat".  The world hasn't ended.
quoted
We see this often, btw.  People want nice and easy-to-read kernel->human
interfaces because the tool of choice for displaying these things to humans
is "cat".  How lame is that?

I do think that a sysfs interface like this should be optimised for
kernel->program communication, not for kernel->human.
Well I keep ending up cat this and that proc entry for debugging and its 
difficult to do if one sysfs file spews huge amounts of illegible binary 
data to you.
Nobody ever said "binary".  Please try to keep up.


--
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