Go to main content

Managing System Information, Processes, and Performance in Oracle® Solaris 11.4

Exit Print View

Updated: October 2019
 
 

Using the /proc File System and Commands

You can display detailed information about the processes that are listed in the /proc directory by using process commands. The /proc directory is also known as the process file system (PROCFS). Images of active processes are stored in the PROCFS by their process ID number.

The following process commands display details about a process in the /proc directory. The prun and pstop commands start and stop a process:

pcred

Displays process credential information

pfiles

Reports fstat and fcntl information for open files in a process

pflags

Displays /proc tracing flags, pending signals and held signals, and other status information

pldd

Lists the dynamic libraries that are linked into a process

pmap

Displays the address space map of each process

prun

Starts each process

psig

Lists the signal actions and handlers of each process

pstack

Displays a hex+symbolic stack trace for each lightweight process in each process

pstop

Stops each process

ptime

Times a process by using microstate accounting

ptree

Displays the process trees that contain the process

pwait

Displays status information after a process terminates

pwdx

Displays the current working directory for a process

The process tools are similar to some options of the ps command, except that the output that is provided by these commands is more detailed.

    The process commands perform the following tasks:

  • Display more information about processes, such as fstat and fcntl, working directories, and trees of parent and child processes

  • Provide control over processes by allowing users to stop or resume them

The pfiles, pldd, and pstack commands stop target processes to inspect and extract information. In Oracle Solaris 11.4, the pfiles command supports two new options that control how information is extracted from a process. These options are as follows:

–S

Stops the process to get a consistent snapshot of the information

–L

Enables live mode for pfiles where the process is examined without being stopped. Since the process is not stopped, the consistency of the list of file descriptors listed is not guaranteed

For more information, see the proc(1) man page.