Skip to main content
The 2024 Developer Survey results are live! See the results
1 of 10
tukan
  • 6.2k
  • 8
  • 21

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

tukan
  • 6.2k
  • 8
  • 21