pmap(1)pmap(1)NAME
pmap, pfiles - displays process address information and open file
descriptors
SYNOPSIS
options] pid1 [pid2...]
pid1 [pid2...]
DESCRIPTION
prints the address space information of a process.
prints information about all open file descriptors of a process. If
file descriptor corresponds to a file, then prints the fstat(2) and
fcntl(2) information. If the file descriptor corresponds to a socket,
then prints socket related info, such as the socket type, socket fam‐
ily, and protocol family. In the case of AF_INET and AF_INET6 family
of sockets, information about the peer host is also printed.
pmap Options
The information printed by can be controlled by the option. The argu‐
ment to can be a comma-separated set of arguments given below:
Display the size data locked in memory for each mapped object.
Display the map name. This field can contain the following data.
if the object is mapped as
if the object mapped is the stack segment of the process.
The object mapped is the text segment of the program.
The object mapped is the data segment of the program.
The object is mapped from a file.
If the file name cannot be resolved, then the inode
number and the device ID of the file is displayed.
Also see the section below.
The object mapped is mapped to shared memory.
Other map names include: and
Display the offset of each mapped object.
Specify access permission for each mapped object.
Display the resident size of each mapped object.
Display the space ID of each mapped object.
Display the swap allocated for each mapped object.
Display the maximum size of a page that can be allocated for the
object.
Indicate the type of data managed by each mapped object.
The values include,
Shared code, with
n indicating the number of processes sharing the
mapped object.
Private code.
Shared data, with
n indicating the number of processes sharing the
mapped object.
Private data.
Display the virtual size of each mapped object.
Since the name of the file can be of variable length, use the name
argument as the last argument to the option to ensure proper indenta‐
tion of other fields. If no option is specified, prints the following
fields by default: and
EXTERNAL INFLUENCES
Environment Variables
If is not specified or is null, it defaults to (see lang(5)).
When the variable is set to 1, the System V shared memory mapping is
reported with the shared memory identifier as
EXAMPLES
This command prints the virtual address, the resident memory size, and
the name of each object mapped for processes with process ID 100 and
200:
This command prints information on open file descriptors of processes
with process ID 100 and 200:
WARNINGS
and depend on to resolve the file names. If the file name cannot be
resolved, then these commands will only print the device ID and the
inode number of the file.
Users of must not rely on the exact field widths and spacing of its
output, as these will vary depending on the system and the release of
HP-UX.
SEE ALSOfuser(1), ps(1), vmstat(1).
pmap(1)