How to see a memory map of a process, along with how much memory a process uses?

Seeing a process’s memory map

pmap -x PID

The pmap command reports the memory map of a process or processes.

-x extended Show the extended format.
-d device Show the device format.

Hard to tell for sure, but here are two “close” things that can help.

$ ps aux 

will give you Virtual Size (VSZ)

You can also get detailed stats from /proc file-system by going to /proc/$pid/status

The most important is the VmSize, which should be close to what ps aux gives.

/proc/19420$ cat status

resource virtualthreads.blogspot.ie/2006/02/understanding-memory-usage-on-linux.html