lkml.org 
[lkml]   [2012]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC] [PATCH 1/2] binary stream format for /proc/stat
From
2012年4月1日6:36 Jan Engelhardt <jengelh@medozas.de>:
>
> On Saturday 2012-03-31 23:23, Hiroyuki Kamezawa wrote:
>>>
>>> Rather than adding more obscure formats and fields to /proc(/N)/stat, we
>>> should pursue descriptive lines like in /proc/N/status.
>>> Or, if so desired, sysfs-style splitted attributes where the filename
>>> takes on the description.
>>
>>Yes, I like format like /proc/N/status , /proc/meminfo...which is
>>readable to me.
>>But when I wrote this patch, I didn't want to break current format.
>>
>>My concern on sysfs-style one data per a file is that it will add many
>>open/close and making top/ps/sar slow.
>
> Or you go netlink. That gives you a binary format.
>
> That said however, binary does not always mean faster. (It's curious
> to see that generating and grepping through the text dump of the
> Windows registry is faster than letting regedit.exe search through
> the binary tree.)

I agree. I need to consider more.

I'm now thinking of adding some data filtering feature of /proc contents
may be helpful rather than adding complex format...then we can skip
some heavy calls if allowd.

Thanks,
-Kame


\
 
 \ /
  Last update: 2012-04-01 00:05    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site