lkml.org 
[lkml]   [2011]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [rfc 2/3] fs, proc: Introduce the Children: line in /proc/<pid>/status
Date
On Friday 02 December 2011 14:17:08, Pavel Emelyanov wrote:

> O_O OK, I was wrong, they do live there. But I consider this as bug.

You can't change that. It'd break current gdb at least.

> Anyway -- my concern about unneeded memory overhead still stands.
> Even a simple find /proc will result in smth like
>
> /proc/1
> /proc/1/children/2
> /proc/1/children/2/children/4
> /proc/1/children/2/children/4
> /proc/1/children/3
> /proc/1/children/3/children/5
> /proc/2
> /proc/2/children/4
> /proc/3
> /proc/3/children/5
> /proc/4
> /proc/5
>
> Instead of
>
> /proc/1
> /proc/2
> /proc/3
> /proc/4
> /proc/5
>
> I.e. each task will be shown multiple times, which is not very fun, but memory exhaustive from my POV.

Now that is a good argument against hard linking. But not if you make
the entries under children/ symlinks. Then find doesn't recurse. And
then

$ find -L /proc/PID/

does recurse and give you the whole tree. Which I'd say is
actually useful...

--
Pedro Alves


\
 
 \ /
  Last update: 2011-12-02 15:29    [W:0.154 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site