is it possible to know how much memory is being used by a given phtread thread? I am interested by a VmRSS like information.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Each thread consumes a stack which is of fixed size and created when the thread starts. It is generally 512 K / 1M but it’s only virtual size at startup.
However, for dynamically-allocated data (malloc), it’s a process-wide information, not per-thread. Note that some alternative malloc implementations (like tcmalloc) could provide more advanced statistics.