Re: [proc.txt] Fix /proc/pid/statm documentation

Martin J. Bligh
2004-08-06T20:49:35Z

>> > If it's going to be this dynamic, then just give me DWARF2 debug
>> > info and the raw data. Like this:
>> >
>> > /proc/DWARF2
>> > /proc/1000/mm_struct
>> > /proc/1000/signal_struct
>> > /proc/1000/sighand_struct
>> > /proc/1000/task/1024/thread_info
>> > /proc/1000/task/1024/task_struct
>> > /proc/1000/task/1024/fs_struct
>>
>> That's different. The overhead would be prohibitive. Also, this exposes
>> internal kernel structures.
>
> The overhead? I'm not seeing much, other than the multiple
> files and the very fact that field locations are movable.
>
> As long as I can fall back to the old /proc files when truly
> radical kernel changes happen, exposure of kernel internals
> isn't a serious problem.
>
> If I had the DWARF2 data alone, /dev/mem might be enough.
> (sadly, "top" would require some major work before I'd trust it)

We did that on PTX ... walking tasklists lockless is a bitch.

M.