Given a PID of the process running in Linux (latest kernel), how do I find out:
- The number of pages it is using
- The size of each page it is using (4K, 2MB or 1GB)
This is for x86-64 architecture
|
Given a PID of the process running in Linux (latest kernel), how do I find out:
This is for x86-64 architecture | |||
|
feedback
|
|
Depending on how verbose the information you want should be, you want one of the following:
Check out the man-page for the proc-files for thorough documentation of what the different columns mean. | |||||||||
feedback
|
|
Pagesize is system wide and can be found with the
The mem_usage.py tool can provide some more detailed information on a processes memory usage. | |||
feedback
|
or:
According to the man proc, it is the number of pages the process has in real memory. Also take a look at the procstat.c to display proc stat in human readable format. | |||
|
feedback
|