Using ps for streams

I want to check the contribution of process threads to the "RSS, VSZ and SZ Values" process. How can i do this. Because if I do this:

ps w -eL -o pid,tid,%cpu,cputime,%mem,sz,rss,vsz,command 

I get tid, but all other values ​​for all threads of the process are the same. Can I do this with ps?

+4
source share
1 answer

Threads do not have an individual contribution to resident and virtual size, since they are shared by definition. As for the areas that are used in one thread and never exchanged by other threads, the kernel does not know about it. This is why ps shows the same values ​​for all threads in the process.

+4
source

Source: https://habr.com/ru/post/1399508/


All Articles