lkml.org 
[lkml]   [2001]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] processes with shared vm
--On Friday, August 17, 2001 22:55:37 +0200 Andi Kleen <ak@suse.de> wrote:

> Even with a tgid you would need some way to avoid its counter wrapping
> and getting reused.

While in theory the pid that is used for tgid should never die while the
thread group exists, this case needs to be handled for thread groups in
general. The number shouldn't be re-used for a pid as long as it's in use
as a tgid.

> Also gtop should display correct results even with the programs
> that don't use CLONE_THREAD.

Are there any programs that use CLONE_VM and not CLONE_THREAD?

Actually I think we should make tgid visible in /proc in general because
it's a useful thing to know, whether it's the right mechanism for gtop or
not. I'll work up a patch.

Dave McCracken

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059

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

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.053 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site