/proc/pid/stat

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

/proc/<pid>/stat contains status information about a process. This information is used by ps.

Example

972 (docker-containe) S 901 972 972 0 -1 1077944576 2657 0 2 0 561 205 0 0 20 0 11 0 1820 441688064 2327 18446744073709551615 4194304 11049596 140727040242048 140727040241432 4602915 0 2079995941 0 2143420159 18446744073709551615 0 0 17 1 0 0 0 0 0 13147640 13322176 25554944 140727040249523 140727040249749 140727040249749 140727040249821 0

Content

pid 

Field 1 - pid

The process ID as integer.

Field 2 - Executable File Name

/proc/[PID]/stat

  1. 14 utime - CPU time spent in user code, measured in clock ticks
  2. 15 stime - CPU time spent in kernel code, measured in clock ticks
  3. 16 cutime - Waited-for children's CPU time spent in user code (in clock ticks)
  4. 17 cstime - Waited-for children's CPU time spent in kernel code (in clock ticks)
  5. 22 starttime - Time when the process started, measured in clock ticks