{
    "mode": "man",
    "parameter": "proc_pid_stat",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/proc_pid_stat/5/json",
    "generated": "2026-10-05T01:11:59Z",
    "sections": {
        "NAME": {
            "content": "/proc/pid/stat - status information\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "/proc/pid/stat\nStatus  information  about  the process.  This is used by ps(1).  It is defined in the\nkernel source file fs/proc/array.c.\n\nThe fields, in order, with their proper scanf(3) format specifiers, are listed  below.\nWhether  or  not  certain  of  these fields display valid information is governed by a\nptrace access mode PTRACEMODEREADFSCREDS  |  PTRACEMODENOAUDIT  check  (refer  to\nptrace(2)).   If the check denies access, then the field value is displayed as 0.  The\naffected fields are indicated with the marking [PT].\n\n(1) pid  %d\nThe process ID.\n\n(2) comm  %s\nThe  filename  of  the  executable,  in  parentheses.   Strings   longer   than\nTASKCOMMLEN  (16)  characters  (including  the  terminating  null  byte)  are\nsilently truncated.  This is visible whether or not the executable  is  swapped\nout.\n\n(3) state  %c\nOne of the following characters, indicating process state:\n\nR      Running\n\nS      Sleeping in an interruptible wait\n\nD      Waiting in uninterruptible disk sleep\n\nZ      Zombie\n\nT      Stopped (on a signal) or (before Linux 2.6.33) trace stopped\n\nt      Tracing stop (Linux 2.6.33 onward)\n\nW      Paging (only before Linux 2.6.0)\n\nX      Dead (from Linux 2.6.0 onward)\n\nx      Dead (Linux 2.6.33 to 3.13 only)\n\nK      Wakekill (Linux 2.6.33 to 3.13 only)\n\nW      Waking (Linux 2.6.33 to 3.13 only)\n\nP      Parked (Linux 3.9 to 3.13 only)\n\nI      Idle (Linux 4.14 onward)\n\n(4) ppid  %d\nThe PID of the parent of this process.\n\n(5) pgrp  %d\nThe process group ID of the process.\n\n(6) session  %d\nThe session ID of the process.\n\n(7) ttynr  %d\nThe controlling terminal of the process.  (The minor device number is contained\nin  the  combination of bits 31 to 20 and 7 to 0; the major device number is in\nbits 15 to 8.)\n\n(8) tpgid  %d\nThe ID of the foreground process group  of  the  controlling  terminal  of  the\nprocess.\n\n(9) flags  %u\nThe  kernel  flags word of the process.  For bit meanings, see the PF* defines\nin the Linux kernel source file include/linux/sched.h.  Details depend  on  the\nkernel version.\n\nThe format for this field was %lu before Linux 2.6.\n\n(10) minflt  %lu\nThe number of minor faults the process has made which have not required loading\na memory page from disk.\n\n(11) cminflt  %lu\nThe number of minor faults that the process's waited-for children have made.\n\n(12) majflt  %lu\nThe  number  of major faults the process has made which have required loading a\nmemory page from disk.\n\n(13) cmajflt  %lu\nThe number of major faults that the process's waited-for children have made.\n\n(14) utime  %lu\nAmount of time that this process has been scheduled in user mode,  measured  in\nclock  ticks  (divide  by  sysconf(SCCLKTCK)).   This  includes  guest time,\nguesttime (time spent running a virtual CPU, see below), so that  applications\nthat  are  not  aware  of the guest time field do not lose that time from their\ncalculations.\n\n(15) stime  %lu\nAmount of time that this process has been scheduled in kernel mode, measured in\nclock ticks (divide by sysconf(SCCLKTCK)).\n\n(16) cutime  %ld\nAmount of time that this process's waited-for children have been  scheduled  in\nuser mode, measured in clock ticks (divide by sysconf(SCCLKTCK)).  (See also\ntimes(2).)  This includes guest time, cguesttime (time spent running a virtual\nCPU, see below).\n\n(17) cstime  %ld\nAmount  of  time that this process's waited-for children have been scheduled in\nkernel mode, measured in clock ticks (divide by sysconf(SCCLKTCK)).\n\n(18) priority  %ld\n(Explanation for Linux 2.6) For processes running a real-time scheduling policy\n(policy below; see schedsetscheduler(2)), this is the negated scheduling  pri‐\nority,  minus  one; that is, a number in the range -2 to -100, corresponding to\nreal-time priorities 1 to 99.  For  processes  running  under  a  non-real-time\nscheduling  policy,  this is the raw nice value (setpriority(2)) as represented\nin the kernel.  The kernel stores nice values as numbers in the range 0  (high)\nto 39 (low), corresponding to the user-visible nice range of -20 to 19.\n\nBefore  Linux  2.6,  this  was  a scaled value based on the scheduler weighting\ngiven to this process.\n\n(19) nice  %ld\nThe nice value (see setpriority(2)), a value in the range 19 (low priority)  to\n-20 (high priority).\n\n(20) numthreads  %ld\nNumber  of  threads  in this process (since Linux 2.6).  Before Linux 2.6, this\nfield was hard coded to 0 as a placeholder for an earlier removed field.\n\n(21) itrealvalue  %ld\nThe time in jiffies before the next SIGALRM is sent to the process  due  to  an\ninterval timer.  Since Linux 2.6.17, this field is no longer maintained, and is\nhard coded as 0.\n\n(22) starttime  %llu\nThe  time  the process started after system boot.  Before Linux 2.6, this value\nwas expressed in jiffies.  Since Linux 2.6, the value  is  expressed  in  clock\nticks (divide by sysconf(SCCLKTCK)).\n\nThe format for this field was %lu before Linux 2.6.\n\n(23) vsize  %lu\nVirtual memory size in bytes.\n\n(24) rss  %ld\nResident  Set  Size:  number  of pages the process has in real memory.  This is\njust the pages which count toward text, data, or stack space.   This  does  not\ninclude  pages  which have not been demand-loaded in, or which are swapped out.\nThis value is inaccurate; see /proc/pid/statm below.\n\n(25) rsslim  %lu\nCurrent soft limit in bytes on the rss of the process; see the  description  of\nRLIMITRSS in getrlimit(2).\n\n(26) startcode  %lu  [PT]\nThe address above which program text can run.\n\n(27) endcode  %lu  [PT]\nThe address below which program text can run.\n\n(28) startstack  %lu  [PT]\nThe address of the start (i.e., bottom) of the stack.\n\n(29) kstkesp  %lu  [PT]\nThe current value of ESP (stack pointer), as found in the kernel stack page for\nthe process.\n\n(30) kstkeip  %lu  [PT]\nThe current EIP (instruction pointer).\n\n(31) signal  %lu\nThe  bitmap  of  pending signals, displayed as a decimal number.  Obsolete, be‐\ncause it does not provide information on real-time signals; use  /proc/pid/sta‐\ntus instead.\n\n(32) blocked  %lu\nThe  bitmap  of  blocked signals, displayed as a decimal number.  Obsolete, be‐\ncause it does not provide information on real-time signals; use  /proc/pid/sta‐\ntus instead.\n\n(33) sigignore  %lu\nThe  bitmap  of  ignored signals, displayed as a decimal number.  Obsolete, be‐\ncause it does not provide information on real-time signals; use  /proc/pid/sta‐\ntus instead.\n\n(34) sigcatch  %lu\nThe bitmap of caught signals, displayed as a decimal number.  Obsolete, because\nit  does not provide information on real-time signals; use /proc/pid/status in‐\nstead.\n\n(35) wchan  %lu  [PT]\nThis is the \"channel\" in which the process is waiting.  It is the address of  a\nlocation  in  the kernel where the process is sleeping.  The corresponding sym‐\nbolic name can be found in /proc/pid/wchan.\n\n(36) nswap  %lu\nNumber of pages swapped (not maintained).\n\n(37) cnswap  %lu\nCumulative nswap for child processes (not maintained).\n\n(38) exitsignal  %d  (since Linux 2.1.22)\nSignal to be sent to parent when we die.\n\n(39) processor  %d  (since Linux 2.2.8)\nCPU number last executed on.\n\n(40) rtpriority  %u  (since Linux 2.5.19)\nReal-time scheduling priority, a number in the range  1  to  99  for  processes\nscheduled  under  a  real-time  policy,  or 0, for non-real-time processes (see\nschedsetscheduler(2)).\n\n(41) policy  %u  (since Linux 2.5.19)\nScheduling policy (see schedsetscheduler(2)).  Decode using the  SCHED*  con‐\nstants in linux/sched.h.\n\nThe format for this field was %lu before Linux 2.6.22.\n\n(42) delayacctblkioticks  %llu  (since Linux 2.6.18)\nAggregated block I/O delays, measured in clock ticks (centiseconds).\n\n(43) guesttime  %lu  (since Linux 2.6.24)\nGuest time of the process (time spent running a virtual CPU for a guest operat‐\ning system), measured in clock ticks (divide by sysconf(SCCLKTCK)).\n\n(44) cguesttime  %ld  (since Linux 2.6.24)\nGuest  time  of  the  process's  children,  measured  in clock ticks (divide by\nsysconf(SCCLKTCK)).\n\n(45) startdata  %lu  (since Linux 3.3)  [PT]\nAddress above which  program  initialized  and  uninitialized  (BSS)  data  are\nplaced.\n\n(46) enddata  %lu  (since Linux 3.3)  [PT]\nAddress  below  which  program  initialized  and  uninitialized  (BSS) data are\nplaced.\n\n(47) startbrk  %lu  (since Linux 3.3)  [PT]\nAddress above which program heap can be expanded with brk(2).\n\n(48) argstart  %lu  (since Linux 3.5)  [PT]\nAddress above which program command-line arguments (argv) are placed.\n\n(49) argend  %lu  (since Linux 3.5)  [PT]\nAddress below program command-line arguments (argv) are placed.\n\n(50) envstart  %lu  (since Linux 3.5)  [PT]\nAddress above which program environment is placed.\n\n(51) envend  %lu  (since Linux 3.5)  [PT]\nAddress below which program environment is placed.\n\n(52) exitcode  %d  (since Linux 3.5)  [PT]\nThe thread's exit status in the form reported by waitpid(2).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "proc(5), procpidstatus(5)\n\nLinux man-pages 6.7                          2023-08-15                             procpidstat(5)",
            "subsections": []
        }
    },
    "summary": "/proc/pid/stat - status information",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "proc",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/proc/5/json"
        },
        {
            "name": "procpidstatus",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/procpidstatus/5/json"
        }
    ]
}