lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 2 Dec 2011 13:10:59 +0000
From:	Pedro Alves <pedro@...esourcery.com>
To:	Cyrill Gorcunov <gorcunov@...il.com>
Cc:	Pavel Emelyanov <xemul@...allels.com>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Tejun Heo <tj@...nel.org>, Andrew Vagin <avagin@...nvz.org>,
	Serge Hallyn <serge.hallyn@...onical.com>,
	Vasiliy Kulikov <segoon@...nwall.com>
Subject: Re: [rfc 2/3] fs, proc: Introduce the Children: line in /proc/<pid>/status

On Friday 02 December 2011 12:45:51, Cyrill Gorcunov wrote:
> On Fri, Dec 02, 2011 at 04:43:10PM +0400, Pavel Emelyanov wrote:
> ...
> > >>
> > >> Yes, I like /children file. other points seems to be pointed out by other
> > >> reviewers. 
> > > 
> > > Any reason this is a file instead of a directory like /proc/PID/task/ ?
> > > 
> > > $ sudo ls /proc/8167/task/
> > > 8167  854  855  856  857  858  859
> > > $ sudo ls /proc/8167/task/855/
> > > attr    clear_refs  cpuset   exe     io       loginuid  mountinfo  oom_adj        pagemap      sched      smaps  statm    wchan
> > > auxv    cmdline     cwd      fd      latency  maps      mounts     oom_score      personality  schedstat  stack  status
> > > cgroup  comm        environ  fdinfo  limits   mem       numa_maps  oom_score_adj  root         sessionid  stat   syscall
> > > 
> > > Much easier to follow the chain from the command line this way.
> > 
> > What do you propose to put into these directories? Another directories named with
> > children pid-s?
> > 
> 
> Yes, I suppose additional directory/links and whatever would be just
> noneeded overhead.

/proc/8167/task/ being a directory could also be claimed
"noneeded overhead", yet it exists, and is very useful (I use
it a lot).  Why diverge instead of being consistent?

(Note that listing /proc only shows thread group ids, but
you can still open /proc/THREAD-ID/, so a /proc/PID/task file
with lists of pids would have been "good enough".)

-- 
Pedro Alves
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ