Hung Nguyen
|
Monitor the memory usage of each process with pidin
|
Hung Nguyen
02/22/2023 6:08 AM
post122139
|
Monitor the memory usage of each process with pidin
Hi I have a couple of questions related to pidin. Also some general question about calculating the total memory usage of
a process
1. when I run "pdin mem" and "pidin pmem" it gives me different values of code memory and data memory. What is the
differences here?
Here is the result for each command for a specific process with 8 threads, that is why we see 8 lines for that process
with pidin pmem
7372K 6788K 512K(516K)*
7372K 6788K 512K(516K)
7372K 6788K 512K(516K)
7372K 6788K 512K(516K)
7372K 6788K 512K(516K)
7372K 6788K 512K(516K)
7372K 6788K 512K(516K)
7372K 6788K 512K(516K)
With pidin mem
0 6612K 512K(516K)*
0 6612K 512K(516K)
0 6612K 512K(516K)
0 6612K 512K(516K)
0 6612K 512K(516K)
0 6612K 512K(516K)
0 6612K 512K(516K)
0 6612K 512K(516K)
2. I would like to use pidin utility to monitor a process memory usage over time is that possible with pidin mem or
pidin pmem?
3. In the list from pidin mem I also see text as following:
10r CONDVAR 0 6612K 512K(516K)*
0r SIGWAITINFO 0 6612K 512K(516K)
10r CONDVAR 0 6612K 512K(516K)
10r REPLY 0 6612K 512K(516K)
10r RECEIVE 0 6612K 512K(516K)
10r RECEIVE 0 6612K 512K(516K)
19r RECEIVE 0 6612K 512K(516K)
10r RECEIVE 0 6612K 512K(516K)
some_lib @ 100c8000 268K 12K
some_lib @ 1000000 620K 24K
some_lib @ 78000000 92K 4096
some_lib @ 78029000 132K 4096
some_lib @ 7805c000 140K 4096
some_lib @ 78092000 104K 4096
some_lib @ 780be000 132K 4096
some_lib @ 780f8000 1076K 4096
some_lib @ 78226000 300K 4096
some_lib @ 78285000 200K 4096
some_lib @ 782ca000 80K 4096
some_lib @ 782f0000 252K 4096
some_lib @ 78342000 412K 4096
:
:
All these some_lib are libs that the process uses but are thes memory already included in the code and data memory or
should I also need to sum all these sizes to have the whole picture of the total memory the process uses?
|
|
|