How to know that which is process allocate memory

2019-08-18 19:38发布

问题:

I want to know the zone that process allocate memory to. I know that I can use

cat /proc/pid/status

And also

cat /proc/zoneinfo

Both of this command that doesn't answer where the memory of process allocated to. Is there any other command? And if there is how can I implement it in the kernel?