proc_pid_stat(5)
๐ NAME ๐
/proc/pid/stat โ status information โจ
๐ฆ DESCRIPTION ๐ฆ
okay bestie, so this whole page (proc_pid_stat(5), from the File Formats Manual, hi ๐) is about one little file:
/proc/pid/stat
and it's the status information about the process. ps(1) literally uses it, and it's defined in the kernel source file fs/proc/array.c ๐ซถ
Here's the tea: the fields are listed below in order, each one with its proper scanf(3) format specifier. But โ and this is important, no cap โ whether certain of these fields actually show you valid information is governed by a ptrace access mode PTRACE_MODE_READ_FSCREDS | PTRACE_MODE_NOAUDIT check (go look at ptrace(2) if you wanna know more). If that check says no access, then the field value is shown as 0. Every field that can get hit by this is marked with [PT] below ๐
like if you see a 0 and you're confused, check the [PT] tag first. it might not be a real zero, bestie, it might be a permissions thing ๐ญ
Let's go field by field, in order ๐
๐ the fields ๐
- (1)
pid %dโ The process ID. that's it, that's the field ๐ธ - (2)
comm %sโ The filename of the executable, in parentheses. Strings longer thanTASK_COMM_LEN(16) characters (including the terminating null byte) get silently truncated โ no warning, no drama, they just get cut ๐ช. This one is visible whether or not the executable is swapped out. iconic tbh โจ - (3)
state %cโ One of these characters, telling you the 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) ๐ค
yes, W really does show up twice with two totally different meanings. that's a vibe, not a typo ๐
- (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 ๐ข (yes, it's doing bit gymnastics, stay with me) - (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 thePF_*defines in the Linux kernel source fileinclude/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 bysysconf(_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. so thoughtful of it ๐ฅน - (15)
stime %luโ Amount of time that this process has been scheduled in kernel mode, measured in clock ticks (divide bysysconf(_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 bysysconf(_SC_CLK_TCK)). (See alsotimes(2).) 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 bysysconf(_SC_CLK_TCK)) ๐ซถ - (18)
priority %ldโ (Explanation for Linux 2.6) For processes running a real-time scheduling policy (policybelow; seesched_setscheduler(2)), this is the negated scheduling priority, minus one; that is, a number in the range-2to-100, corresponding to real-time priorities1to99. For processes running under a non-real-time scheduling policy, this is the raw nice value (setpriority(2)) as represented in the kernel. The kernel stores nice values as numbers in the range0(high) to39(low), corresponding to the user-visible nice range of-20to19๐ฅ
Before Linux 2.6, this was a scaled value based on the scheduler weighting given to this process.
- (19)
nice %ldโ The nice value (seesetpriority(2)), a value in the range19(low priority) to-20(high priority). yes the low one has the big number, don't fight it, that's just how it is ๐ - (20)
num_threads %ldโ Number of threads in this process (since Linux 2.6). Before Linux 2.6, this field was hard coded to0as a placeholder for an earlier removed field ๐งต - (21)
itrealvalue %ldโ The time in jiffies before the nextSIGALRMis sent to the process due to an interval timer. Since Linux 2.6.17, this field is no longer maintained, and is hard coded as0. it's giving retired ๐ - (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 bysysconf(_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. And heads up bestie: this value is inaccurate; see/proc/pid/statmbelow ๐ฉ - (25)
rsslim %luโ Current soft limit in bytes on the rss of the process; see the description ofRLIMIT_RSSingetrlimit(2)๐ง - (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, because it does not provide information on real-time signals; use/proc/pid/statusinstead ๐๏ธ - (32)
blocked %luโ The bitmap of blocked signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use/proc/pid/statusinstead ๐๏ธ - (33)
sigignore %luโ The bitmap of ignored signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use/proc/pid/statusinstead ๐๏ธ - (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/statusinstead ๐๏ธ
all four of those? yeah, the manpage is basically telling you to go read /proc/pid/status instead. no hard feelings but that's the move ๐ซถ
- (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 symbolic name can be found in/proc/pid/wchan๐ด - (36)
nswap %luโ Number of pages swapped (not maintained) ๐ซ - (37)
cnswap %luโ Cumulativenswapfor 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 range1to99for processes scheduled under a real-time policy, or0, for non-real-time processes (seesched_setscheduler(2)) โก - (41)
policy %u(since Linux 2.5.19) โ Scheduling policy (seesched_setscheduler(2)). Decode using theSCHED_*constants inlinux/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 operating system), measured in clock ticks (divide bysysconf(_SC_CLK_TCK)) ๐ฎ - (44)
cguest_time %ld(since Linux 2.6.24) โ Guest time of the process's children, measured in clock ticks (divide bysysconf(_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 withbrk(2)๐ฑ - (48)
arg_start%lu (since Linux 3.5) [PT] โ the address above which the program's command-line arguments (argv) get placed. so like, everything above this line? that's argv territory bestie ๐ - (49)
arg_end%lu (since Linux 3.5) [PT] โ the address below which the program's command-line arguments (argv) are placed. and bestie, putarg_startandarg_endtogether and you have got the whole argv zone ๐โจ - (50)
env_start%lu (since Linux 3.5) [PT] โ the address above which the program's environment is placed. yes the environment, the wholePATH=...situation, iconic ๐ธ - (51)
env_end%lu (since Linux 3.5) [PT] โ the address below which the program's environment is placed. pair it withenv_startand that's your env block, no cap ๐ง - (52)
exit_code%d (since Linux 3.5) [PT] โ the thread's exit status, in the exact same form thatwaitpid(2)reports it. so if you've ever stared at a waitpid status and gone "what does this number MEAN" โ same energy, same format ๐ซถ
๐ SEE ALSO ๐
proc(5)โ the main character, the parent page, the whole/procsaga ๐proc_pid_status(5)โ the human-readable cousin, if raw numbers are giving you a headache ๐ญ
and that's a wrap bestie!! ๐ you just read the whole proc_pid_stat(5) page, fields 1 through 52, and honestly? ate. this slice of wisdom was served up by the Linux man-pages 6.20 girlies, dated 2026-02-08 โ go forth and parse /proc/*/stat responsibly, mwah ๐โจ๐ฆ
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-3.0-or-later
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms