First I would pickup the process with the smem
. For example, you could use smem -tas uss
to have an overview.
-t
... shows totals
-a
... auto adjusts the column width
-s uss
... sorts the result based on the uss column
To see details per process the best way is to use pmap
. To get detailed information you should use -X
switch. To get all information that kernel provides you can use -XX
which usually is an overkill.
To get a 2 seconds refresh monitoring for a pid 3120:
watch -n 2 pmap -X 3120