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-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.61.0609301908460.4615@yvahk01.tjqt.qr>
Date:	Sat, 30 Sep 2006 19:11:33 +0200 (MEST)
From:	Jan Engelhardt <jengelh@...ux01.gwdg.de>
To:	girish <girishvg@...il.com>
cc:	"Eric W. Biederman" <ebiederm@...ssion.com>,
	linux-kernel@...r.kernel.org, William Pitcock <nenolod@...eme.org>
Subject: Re: [PATCH] include children count, in Threads: field present in
 /proc/<pid>/status (take-3)

>
>  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
> 22429 top         16.6%  0:21.12   1    18    20  1.35M   684K  1.77M  26.9M
> ------------------------------------------------------------------------
> --------------------------------------------------------
>
> Comments/opinions?

I fail to see which column you mean.

#TH perhaps? I think, that can be calculated under linux by

 (a) counting the directories in /proc/22429/task using readdir
or
 (b) get the nlink of /proc/22429/task and subtract 2, which should give 
     the same as (a), and, better than (a), should also be atomic


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