Re: detecting threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2002-11-23 at 07:58, Sharath wrote:

> However my curiosity got aroused when I installed
> RH8.. the system monitor gives a proper display of the
> process, fork and thread.

It is via heuristics.  You can see the patch at

	http://tech9.net/rml/procps

Also, we have a mailing list for this: procps-list@redhat.com.

Anyhow, we compare three items which are already exported: VM RSS, total
VM size, and command line.  So obviously it is a complete and blind
guess.  But amazingly it works well.  There is one corner case that it
is easily fooled by, but otherwise we are pretty pleased with it.

All new procps versions have the feature, but Red Hat is the only distro
at the moment that I know of who is shipping with the feature.

You can turn it off via the '-m' flag to ps or the 'H' key in top.

	Robert Love



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux