In man page of ps
under Process State Codes, the I
flag (capital i) is not mentioned but ps aux
shows the I
flag in some processes as shown by the image below.
What does the I flag mean?
In man page of ps
under Process State Codes, the I
flag (capital i) is not mentioned but ps aux
shows the I
flag in some processes as shown by the image below.
What does the I flag mean?
It means “idle”. This state was introduced in version 4.14 of the Linux kernel, in September 2017. It is used for kernel threads which use the TASK_IDLE
state when idling, instead of TASK_INTERRUPTIBLE
; in previous versions of the kernel, such threads were reported as TASK_UNINTERRUPTIBLE
which was confusing.
ps
reports this without needing any change itself, because it reports the state directly from /proc
.
htop
source code - https://github.com/hishamhm/htop/blob/59166da773d8a9a97c8f1b087346865bc8cda9fa/linux/LinuxProcess.c#L163 [STATE] = { .name = "STATE", .title = "S ", .description = "Process state (S sleeping, R running, D disk, Z zombie, T traced, W paging, I idle)", .flags = 0, }
– steve
Apr 23 '21 at 16:50