LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] linux pthreads problem

[ILUG] linux pthreads problem

Vincent Cunniffe vincent at cunniffe.net
Tue Aug 20 11:32:23 IST 2002


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?

ps ;-)

> 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
> memory.

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.

Regards,

Vin





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell