- 论坛徽章:
- 0
|
Which of the following commands is used to see a process's memory map?
a) prstat
b) pmap
c) mmap
d) prmap
The correct answer is b.
'pmap' displays information about the address space of a process. By default, 'pmap' displays the mappings in the virtual address order they are mapped into the process. The mapping size, flags, and mapped object name are shown.
'prstat' iteratively examines all active processes on the system and reports statistics based on the selected output mode and sort order. prstat provides options to examine only processes matching specified PIDs, UIDs, zone IDs, CPU IDs, and processor set IDs.
'mmap' is a function which establishes a mapping between a process's address space and a file or shared memory object. The mapping established by 'mmap' replaces any previous mappings for those whole pages containing any part of the address space of the process.
'prmap' does not exist in Solaris. We made it up. At least, we are 99% certain we did. Someplace, somewhere a tricksey developer may be creating it as we speak.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27174/showart_467070.html |
|