Matthew French wrote:
> Hi Vincent.
>>>>I've found several other people seeing the same VSZ issue with pthreads,
>>spread over a long time, but no solution as yet.
>>> This is most probably a stupid question, but how are you checking the VSZ?
> As you most probably know, each thread under linux is actually a separate
> process. But these processes share the same memory. Most tools have no way
> of distinguishing shared from actual memory allocated. Thus if you have a
> 50Mb process and three threads in that process, you will see the process
> taking up 150Mb of memory, even though it is only taking up 50Mb of real
Yup. However, each of them reports the same massive usage : adding a
thread adds the same 8MB reported VSZ onto all existing threads, as
would be expected.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!