Why does "ps -l" shows one number in column "PRI" but in same time "ps -o pri" shows another number?

Solution Verified - Updated -

Issue

  • Why does ps -l shows one number in column "PRI" but in same time ps -o pri shows another number? for instance:

    $ ps -elf | grep migration
    F S UID      PID PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD
    1 S root       3    2  0 -40   - -     0 migrat Mar28 ?        00:00:04 [migration/0]
    
    $ ps -eo pid,ni,pri,comm | grep migration
    PID NI PRI COMMAND
      3  - 139 migration/0
    

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.