# proc_pid_stat - status information - man(5) - [phpMan]

[_proc_pid_stat_(5)](https://www.chedong.com/phpMan.php/man/procpidstat/5/markdown)                         File Formats Manual                        [_proc_pid_stat_(5)](https://www.chedong.com/phpMan.php/man/procpidstat/5/markdown)

## NAME
       /proc/pid/stat - status information

## DESCRIPTION
       _/proc/_pid_/stat_
              Status  information  about  the process.  This is used by [**ps**(1)](https://www.chedong.com/phpMan.php/man/ps/1/markdown).  It is defined in the
              kernel source file _fs/proc/array.c_.

              The fields, in order, with their proper [**scanf**(3)](https://www.chedong.com/phpMan.php/man/scanf/3/markdown) format specifiers, are listed  below.
              Whether  or  not  certain  of  these fields display valid information is governed by a
              ptrace access mode **PTRACE_MODE_READ_FSCREDS  **|  **PTRACE_MODE_NOAUDIT  **check  (refer  to
              [**ptrace**(2)](https://www.chedong.com/phpMan.php/man/ptrace/2/markdown)).   If the check denies access, then the field value is displayed as 0.  The
              affected fields are indicated with the marking [PT].

              (1) _pid_  %d
                     The process ID.

              (2) _comm_  %s
                     The  filename  of  the  executable,  in  parentheses.   Strings   longer   than
                     **TASK_COMM_LEN  **(16)  characters  (including  the  terminating  null  byte)  are
                     silently truncated.  This is visible whether or not the executable  is  swapped
                     out.

              (3) _state_  %c
                     One of the following characters, indicating process state:

                     R      Running

                     S      Sleeping in an interruptible wait

                     D      Waiting in uninterruptible disk sleep

                     Z      Zombie

                     T      Stopped (on a signal) or (before Linux 2.6.33) trace stopped

                     t      Tracing stop (Linux 2.6.33 onward)

                     W      Paging (only before Linux 2.6.0)

                     X      Dead (from Linux 2.6.0 onward)

                     x      Dead (Linux 2.6.33 to 3.13 only)

                     K      Wakekill (Linux 2.6.33 to 3.13 only)

                     W      Waking (Linux 2.6.33 to 3.13 only)

                     P      Parked (Linux 3.9 to 3.13 only)

                     I      Idle (Linux 4.14 onward)

              (4) _ppid_  %d
                     The PID of the parent of this process.

              (5) _pgrp_  %d
                     The process group ID of the process.

              (6) _session_  %d
                     The session ID of the process.

              (7) _tty_nr_  %d
                     The controlling terminal of the process.  (The minor device number is contained
                     in  the  combination of bits 31 to 20 and 7 to 0; the major device number is in
                     bits 15 to 8.)

              (8) _tpgid_  %d
                     The ID of the foreground process group  of  the  controlling  terminal  of  the
                     process.

              (9) _flags_  %u
                     The  kernel  flags word of the process.  For bit meanings, see the PF_* defines
                     in the Linux kernel source file _include/linux/sched.h_.  Details depend  on  the
                     kernel version.

                     The format for this field was %lu before Linux 2.6.

              (10) _minflt_  %lu
                     The number of minor faults the process has made which have not required loading
                     a memory page from disk.

              (11) _cminflt_  %lu
                     The number of minor faults that the process's waited-for children have made.

              (12) _majflt_  %lu
                     The  number  of major faults the process has made which have required loading a
                     memory page from disk.

              (13) _cmajflt_  %lu
                     The number of major faults that the process's waited-for children have made.

              (14) _utime_  %lu
                     Amount of time that this process has been scheduled in user mode,  measured  in
                     clock  ticks  (divide  by  _sysconf(_SC_CLK_TCK)_).   This  includes  guest time,
                     _guest_time_ (time spent running a virtual CPU, see below), so that  applications
                     that  are  not  aware  of the guest time field do not lose that time from their
                     calculations.

              (15) _stime_  %lu
                     Amount of time that this process has been scheduled in kernel mode, measured in
                     clock ticks (divide by _sysconf(_SC_CLK_TCK)_).

              (16) _cutime_  %ld
                     Amount of time that this process's waited-for children have been  scheduled  in
                     user mode, measured in clock ticks (divide by _sysconf(_SC_CLK_TCK)_).  (See also
                     [**times**(2)](https://www.chedong.com/phpMan.php/man/times/2/markdown).)  This includes guest time, _cguest_time_ (time spent running a virtual
                     CPU, see below).

              (17) _cstime_  %ld
                     Amount  of  time that this process's waited-for children have been scheduled in
                     kernel mode, measured in clock ticks (divide by _sysconf(_SC_CLK_TCK)_).

              (18) _priority_  %ld
                     (Explanation for Linux 2.6) For processes running a real-time scheduling policy
                     (_policy_ below; see [**sched_setscheduler**(2)](https://www.chedong.com/phpMan.php/man/schedsetscheduler/2/markdown)), this is the negated scheduling  pri‐
                     ority,  minus  one; that is, a number in the range -2 to -100, corresponding to
                     real-time priorities 1 to 99.  For  processes  running  under  a  non-real-time
                     scheduling  policy,  this is the raw nice value ([**setpriority**(2)](https://www.chedong.com/phpMan.php/man/setpriority/2/markdown)) as represented
                     in the kernel.  The kernel stores nice values as numbers in the range 0  (high)
                     to 39 (low), corresponding to the user-visible nice range of -20 to 19.

                     Before  Linux  2.6,  this  was  a scaled value based on the scheduler weighting
                     given to this process.

              (19) _nice_  %ld
                     The nice value (see [**setpriority**(2)](https://www.chedong.com/phpMan.php/man/setpriority/2/markdown)), a value in the range 19 (low priority)  to
                     -20 (high priority).

              (20) _num_threads_  %ld
                     Number  of  threads  in this process (since Linux 2.6).  Before Linux 2.6, this
                     field was hard coded to 0 as a placeholder for an earlier removed field.

              (21) _itrealvalue_  %ld
                     The time in jiffies before the next **SIGALRM **is sent to the process  due  to  an
                     interval timer.  Since Linux 2.6.17, this field is no longer maintained, and is
                     hard coded as 0.

              (22) _starttime_  %llu
                     The  time  the process started after system boot.  Before Linux 2.6, this value
                     was expressed in jiffies.  Since Linux 2.6, the value  is  expressed  in  clock
                     ticks (divide by _sysconf(_SC_CLK_TCK)_).

                     The format for this field was %lu before Linux 2.6.

              (23) _vsize_  %lu
                     Virtual memory size in bytes.

              (24) _rss_  %ld
                     Resident  Set  Size:  number  of pages the process has in real memory.  This is
                     just the pages which count toward text, data, or stack space.   This  does  not
                     include  pages  which have not been demand-loaded in, or which are swapped out.
                     This value is inaccurate; see _/proc/_pid_/statm_ below.

              (25) _rsslim_  %lu
                     Current soft limit in bytes on the rss of the process; see the  description  of
                     **RLIMIT_RSS **in [**getrlimit**(2)](https://www.chedong.com/phpMan.php/man/getrlimit/2/markdown).

              (26) _startcode_  %lu  [PT]
                     The address above which program text can run.

              (27) _endcode_  %lu  [PT]
                     The address below which program text can run.

              (28) _startstack_  %lu  [PT]
                     The address of the start (i.e., bottom) of the stack.

              (29) _kstkesp_  %lu  [PT]
                     The current value of ESP (stack pointer), as found in the kernel stack page for
                     the process.

              (30) _kstkeip_  %lu  [PT]
                     The current EIP (instruction pointer).

              (31) _signal_  %lu
                     The  bitmap  of  pending signals, displayed as a decimal number.  Obsolete, be‐
                     cause it does not provide information on real-time signals; use  _/proc/_pid_/sta‐_
                     _tus_ instead.

              (32) _blocked_  %lu
                     The  bitmap  of  blocked signals, displayed as a decimal number.  Obsolete, be‐
                     cause it does not provide information on real-time signals; use  _/proc/_pid_/sta‐_
                     _tus_ instead.

              (33) _sigignore_  %lu
                     The  bitmap  of  ignored signals, displayed as a decimal number.  Obsolete, be‐
                     cause it does not provide information on real-time signals; use  _/proc/_pid_/sta‐_
                     _tus_ instead.

              (34) _sigcatch_  %lu
                     The bitmap of caught signals, displayed as a decimal number.  Obsolete, because
                     it  does not provide information on real-time signals; use _/proc/_pid_/status_ in‐
                     stead.

              (35) _wchan_  %lu  [PT]
                     This is the "channel" in which the process is waiting.  It is the address of  a
                     location  in  the kernel where the process is sleeping.  The corresponding sym‐
                     bolic name can be found in _/proc/_pid_/wchan_.

              (36) _nswap_  %lu
                     Number of pages swapped (not maintained).

              (37) _cnswap_  %lu
                     Cumulative _nswap_ for child processes (not maintained).

              (38) _exit_signal_  %d  (since Linux 2.1.22)
                     Signal to be sent to parent when we die.

              (39) _processor_  %d  (since Linux 2.2.8)
                     CPU number last executed on.

              (40) _rt_priority_  %u  (since Linux 2.5.19)
                     Real-time scheduling priority, a number in the range  1  to  99  for  processes
                     scheduled  under  a  real-time  policy,  or 0, for non-real-time processes (see
                     [**sched_setscheduler**(2)](https://www.chedong.com/phpMan.php/man/schedsetscheduler/2/markdown)).

              (41) _policy_  %u  (since Linux 2.5.19)
                     Scheduling policy (see [**sched_setscheduler**(2)](https://www.chedong.com/phpMan.php/man/schedsetscheduler/2/markdown)).  Decode using the  SCHED_*  con‐
                     stants in _linux/sched.h_.

                     The format for this field was %lu before Linux 2.6.22.

              (42) _delayacct_blkio_ticks_  %llu  (since Linux 2.6.18)
                     Aggregated block I/O delays, measured in clock ticks (centiseconds).

              (43) _guest_time_  %lu  (since Linux 2.6.24)
                     Guest time of the process (time spent running a virtual CPU for a guest operat‐
                     ing system), measured in clock ticks (divide by _sysconf(_SC_CLK_TCK)_).

              (44) _cguest_time_  %ld  (since Linux 2.6.24)
                     Guest  time  of  the  process's  children,  measured  in clock ticks (divide by
                     _sysconf(_SC_CLK_TCK)_).

              (45) _start_data_  %lu  (since Linux 3.3)  [PT]
                     Address above which  program  initialized  and  uninitialized  (BSS)  data  are
                     placed.

              (46) _end_data_  %lu  (since Linux 3.3)  [PT]
                     Address  below  which  program  initialized  and  uninitialized  (BSS) data are
                     placed.

              (47) _start_brk_  %lu  (since Linux 3.3)  [PT]
                     Address above which program heap can be expanded with [**brk**(2)](https://www.chedong.com/phpMan.php/man/brk/2/markdown).

              (48) _arg_start_  %lu  (since Linux 3.5)  [PT]
                     Address above which program command-line arguments (_argv_) are placed.

              (49) _arg_end_  %lu  (since Linux 3.5)  [PT]
                     Address below program command-line arguments (_argv_) are placed.

              (50) _env_start_  %lu  (since Linux 3.5)  [PT]
                     Address above which program environment is placed.

              (51) _env_end_  %lu  (since Linux 3.5)  [PT]
                     Address below which program environment is placed.

              (52) _exit_code_  %d  (since Linux 3.5)  [PT]
                     The thread's exit status in the form reported by [**waitpid**(2)](https://www.chedong.com/phpMan.php/man/waitpid/2/markdown).

## SEE ALSO
       [**proc**(5)](https://www.chedong.com/phpMan.php/man/proc/5/markdown), [**proc_pid_status**(5)](https://www.chedong.com/phpMan.php/man/procpidstatus/5/markdown)

Linux man-pages 6.7                          2023-08-15                             [_proc_pid_stat_(5)](https://www.chedong.com/phpMan.php/man/procpidstat/5/markdown)
