is it possible to know how much memory is being used by a given phtread thread? I am interested by a VmRSS like information.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With