from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 1149343C51
	for <jm@localhost>; Tue, 20 Aug 2002 06:51:53 -0400 (EDT)
from phobos [127.0.0.1]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Tue, 20 Aug 2002 11:51:53 +0100 (IST)
from lugh.tuatha.org (root@lugh.tuatha.org [194.125.145.45]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g7K9kbZ00671 for
    <jm-ilug@jmason.org>; Tue, 20 Aug 2002 10:46:37 +0100
from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org
    (8.9.3/8.9.3) with ESMTP id KAA26161; Tue, 20 Aug 2002 10:45:41 +0100
by KBS01 with Internet Mail Service (5.5.2653.19) id <R2N9AKJN>;
    Tue, 20 Aug 2002 11:02:33 +0100
From ilug-admin@linux.ie  Tue Aug 20 11:52:54 2002

> From: Vincent Cunniffe [mailto:vincent@cunniffe.net]
> Subject: Re: [ILUG] linux pthreads problem
> >> Possibly. However, the amount of memory in use is stupid :
> >> I start 50 threads, and the memory usage goes up to 411436 VSZ/840 RSS.
> >> Then I stop those threads, and the usage stays there. I start another
> >> threads, and the usage goes up to 821036 VSZ/1040 RSS. So, it's neither
> >> freeing the resources correctly nor reusing them :-/
> >> I've found several other people seeing the same VSZ issue with
> >> spread over a long time, but no solution as yet.
> > You need a seperate pthread_t per thread.
> I've tested it with and without separate pthread_t's, and the problem is
When you are closing off your instanciated thread made from

from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id C20CA43C55
	for <jm@localhost>; Tue, 20 Aug 2002 06:51:53 -0400 (EDT)
from lugh.tuatha.org (root@lugh.tuatha.org [194.125.145.45]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g7KA1VZ00990 for
    <jm-ilug@jmason.org>; Tue, 20 Aug 2002 11:01:31 +0100
from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org
    (8.9.3/8.9.3) with ESMTP id LAA26865; Tue, 20 Aug 2002 11:00:10 +0100
by KBS01 with Internet Mail Service (5.5.2653.19) id <R2N9AKJ4>;
    Tue, 20 Aug 2002 11:17:00 +0100
From ilug-admin@linux.ie  Tue Aug 20 11:52:59 2002