1

I am looking into a crash dump for RHEL 7.4. It shows some of the task status as PA. for the command - crash> ps | grep sample

 - 31718  31717   3  ffff8806873a6eb0  **PA**   0.0   42260   8040  sample  
 - 32027  32025   3  ffff880462cf1fa0  **PA**   0.0   42260   8036  sample
 - 32148  32146   5  ffff88081b75eeb0  **PA**   0.0   42260   8036  sample
 - 32620  32618   0  ffff8802b1469fa0  **PA**   0.0   42260   8036  sample

None of the help pages talk about the details of this task status.

  • can anyone tell me what PA refers as the status of task?
  • any link or details about all the process status mentioned in crash utility?
crash> help ps |grep PA

 - the task state (RU, IN, UN, ZO, ST, TR, DE, SW, WA, PA).**
0

2 Answers 2

1

See http://people.redhat.com/anderson/crash_sources/task.c

char *
task_state_string(ulong task, char *buf, int verbose)
{
long state;
int exclusive;
int valid, set;

if (_RUNNING_ == TASK_STATE_UNINITIALIZED) 
    initialize_task_state();

if (verbose)
    return task_state_string_verbose(task, buf);

if (buf)
    sprintf(buf, verbose ? "(unknown)" : "??");

state = task_state(task);

set = valid = exclusive = 0;
if (valid_task_state(_EXCLUSIVE_)) {
    exclusive = state & _EXCLUSIVE_;
    state &= ~(_EXCLUSIVE_);
}

if (state == _RUNNING_) {
    sprintf(buf, "RU"); 
    valid++;
}

if (state & _INTERRUPTIBLE_) { 
    sprintf(buf, "IN"); 
    valid++; 
    set++;
}

if (state & _UNINTERRUPTIBLE_) {
    if (valid_task_state(_NOLOAD_) &&
        (state & _NOLOAD_))
        sprintf(buf, "ID");
    else
        sprintf(buf, "UN");
    valid++; 
    set++;
}

if (state & _ZOMBIE_) {
    sprintf(buf, "ZO"); 
    valid++; 
    set++;
}

if (state & _STOPPED_) {
    sprintf(buf, "ST"); 
    valid++; 
    set++;
}

if (valid_task_state(_TRACING_STOPPED_) &&
    (state & _TRACING_STOPPED_)) {
    sprintf(buf, "TR"); 
    valid++; 
    set++;
}

if (state == _SWAPPING_) {
    sprintf(buf, "SW"); 
    valid++; 
    set++;
}

if ((state & _DEAD_) && !set) {
    sprintf(buf, "DE"); 
    valid++; 
    set++;
}

if (state == _PARKED_) {
    sprintf(buf, "PA"); 
    valid++;
}

if (state == _WAKING_) {
    sprintf(buf, "WA"); 
    valid++;
}

if (state == _NEW_) {
    sprintf(buf, "NE");
    valid++;
}

if (valid && exclusive) 
    strcat(buf, "EX");

return buf;

}

0

The state refers to parked state. This state is valid only for the kernels between 3.9 to 3.13. As per man page:

state  %c
                    One of the following characters, indicating 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)

This state also referred as Uninterruptible Sleep. Refer this link for more details.

1
  • Do you have any idea what the difference from "D" is and why that state was introduced and shortly afterwards retired?
    – user313992
    Commented May 30, 2019 at 10:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .