proc_pid_stat(5) File Formats Manual proc_pid_stat(5) /proc/pid/stat - status information /proc/pid/stat . ps(1). fs/proc/array.c. scanf(3) . ptrace PTRACE_MODE_READ_FSCREDS | PTRACE_MODE_NOAUDIT ( ptrace(2)). , 0. [PT]. (1) pid %d . (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 , : R S , D , ( ) - ( Linux 2.6.33) t - ( Linux 2.6.33) W ( Linux 2.6.0) X ( Linux 2.6.0) x ( Linux 2.6.33 3.13) K , ( Linux 2.6.33 3.13) W ( Linux 2.6.33 3.13) ( Linux 3.9 3.13) I Idle (Linux 4.14 onward) (4) ppid %d (PID) . (5) pgrp %d . (6) session %d . (7) tty_nr %d ( : c 31 20 7 0; 15 8). (8) tpgid %d , , . (9) flags %u . PF_* include/linux/sched.h Linux. . %lu Linux 2.6. (10) minflt %lu , . (11) cminflt %lu , -. (12) majflt %lu , . (13) cmajflt %lu , -. (14) utime %lu , , ( sysconf(_SC_CLK_TCK)). , guest_time (, , . ), , , . (15) stime %lu , , ( sysconf(_SC_CLK_TCK)). (16) cutime %ld , -, ( sysconf(_SC_CLK_TCK) (). times(2)). , cguest_time (, , . ). (17) cstime %ld , -, ( sysconf(_SC_CLK_TCK)). (18) priority %ld ( Linux 2.6) , (policy ; . sched_setscheduler(2)), 1; -2 -100 1 99. , , (setpriority(2)) . 0 () 39 (), -20 19. Linux 2.6 . (19) nice %ld ( setpriority(2)) 19( ) -20 ( ). (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)). %lu Linux 2.6. (23) vsize %lu . (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 rss ; RLIMIT_RSS getrlimit(2). (26) startcode %lu [PT] . (27) endcode %lu [PT] . (28) startstack %lu [PT] ( ) . (29) kstkesp %lu [PT] ESP ( ) , . (30) kstkeip %lu [PT] EIP ( ). (31) signal %lu , . , ; /proc/pid/status. (32) blocked %lu , . , ; /proc/pid/status. (33) sigignore %lu , . , ; /proc/pid/status. (34) sigcatch %lu , . , ; /proc/pid/status. (35) wchan %lu [PT] <<>>, . , . /proc/pid/wchan. (36) nswap %lu () ( ). (37) cnswap %lu () nswap - ( ). (38) exit_signal %d (since Linux 2.1.22) , , . (39) processor %d ( Linux 2.2.8) , . (40) rt_priority %u ( Linux 2.5.19) , 1 99 0 , (. sched_setscheduler(2)). (41) policy %u ( Linux 2.5.19) ( sched_setscheduler(2)). SCHED_* linux/sched.h. %lu Linux 2.6.22. (42) delayacct_blkio_ticks %llu ( Linux 2.6.18) -, ( ). (43) guest_time %lu ( Linux 2.6.24) (, ), ( sysconf(_SC_CLK_TCK)). (44) cguest_time %ld ( Linux 2.6.24) , ( sysconf(_SC_CLK_TCK)). (45) start_data %lu ( Linux 3.3) [PT] , (BSS) . (46) end_data %lu ( Linux 3.3) [PT] , (BSS) . (47) start_brk %lu ( Linux 3.3) [PT] , brk(2). (48) arg_start %lu ( Linux 3.5) [PT] , (argv). (49) arg_end %lu ( Linux 3.5) [PT] , (argv). (50) env_start %lu ( Linux 3.5) [PT] , . (51) env_end %lu ( Linux 3.5) [PT] , . (52) exit_code %d ( Linux 3.5) [PT] , waitpid(2). proc(5), proc_pid_status(5) Alexey, Azamat Hackimov , kogamatranslator49 , Darima Kogan , Max Is , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , <>. Linux man-pages 6.8 2 2024 . proc_pid_stat(5)