Close Menu
DPC Virtual Tips
    Read More

    Linux ss, lsof, and fuser Commands: A Practical Guide

    August 4, 2026

    Linux Commands to Investigate High Disk Partition Usage

    July 20, 2026

    Essential Slurm Administration Commands Every HPC Administrator Should Know

    July 15, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Tuesday, August 4
    DPC Virtual Tips
    • Home
    • Operating Systems
    • CLI
    • PowerFlex
    • HPC
    • Virtualization
    • About Us
    • Contact
    DPC Virtual Tips
    Home » Understanding the Process Priorities on RHEL 8
    Operating Systems

    Understanding the Process Priorities on RHEL 8

    DaniloBy DaniloJuly 25, 2025Updated:August 1, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Process Priorities on RHEL 8
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Understanding the Process Priorities on RHEL 8 illustrates how the system manages process priorities when a program is executed.

    On a Linux system, when you run a program or command without explicitly setting its priority, it starts with a default nice value of 0. Regardless of whether we’re using Red Hat Enterprise Linux, this concept applies to the majority of Linux distributions.

    Understanding the Nice Values

    The nice value determines the priority of a process in terms of CPU scheduling. Here’s how it works:

    • Range of nice values: -20 (highest priority) to 19 (lowest priority)
    • Default value: 0 (normal priority)
    • Lower nice value → higher priority
    • Higher nice value → lower priority

    Based on it, let’s analyze some examples:
    1- Considering that we have two processes:
    Process A = -18 priority/nice value
    Process B = 7 priority/nice value
    What is the process with a higher chance of receiving CPU allocation?
    The answer is: Process A!

    2- Considering that we have three processes:
    Process X = 0
    Process Y = 0
    Process Z = -20
    What is the process with a higher chance of receiving CPU allocation?
    The answer is: Process Z. Processes X and Y will “fight” for equality in CPU allocation.

    To check the process priority (aka nice value), we can:

    top

    Or execute the “ps” command with the following parameters:

    ps -eo "%p %n %C %U %x %c"

    Note: The parameter “-o” allows us to specify which field to display. The “%n” shows the nice value of the process:

    Commands Overview

    Let’s execute the following command and analyze its priority (nice value):

    dd if=/dev/zero of=/dev/null &

    As we can see in the following picture, the process “dd” was started in the background and its priority (nice) is “0” (default value):

    To execute a program/command with a custom priority (nice value):

    nice -n 5 <program/command>

    In this case, for instance, we’re running the “dd” command with a nice value of 5:

    We can also change the priority of a running program with the “renice” command. To do that, we need the process ID (PID) of the program/command. For example:

    renice -n -19 48921
    • -n -19 –> new priority/nice value
    • 48921 –> process ID (PID) that will receive the new priority/nice value

    Note: We got “Permission denied” because we cannot increase the priority of a running process (only the root user can do that). Since we’re running this command with a normal user (non-root), we get a permission-denied error. Otherwise, we can decrease the priority/nice value, for example:

    That’s it for now 🙂

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleProcess Management on RHEL 8
    Next Article Getting Started with TuneD on RHEL 8
    Danilo

    Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.

    Related Posts

    Linux ss, lsof, and fuser Commands: A Practical Guide

    August 4, 2026

    Linux Commands to Investigate High Disk Partition Usage

    July 20, 2026

    How to Install, Configure, and Use tmux on Linux

    July 14, 2026

    Comments are closed.

    Search
    Categories
    • CLI (7)
    • HPC (7)
    • Operating Systems (81)
    • PowerFlex (22)
    • Virtualization (122)
    Read More
    Operating Systems

    Linux ss, lsof, and fuser Commands: A Practical Guide

    By DaniloAugust 4, 20260
    Operating Systems

    Linux Commands to Investigate High Disk Partition Usage

    By DaniloJuly 20, 20260
    HPC

    Essential Slurm Administration Commands Every HPC Administrator Should Know

    By DaniloJuly 15, 20260
    Operating Systems

    How to Install, Configure, and Use tmux on Linux

    By DaniloJuly 14, 20260
    HPC

    Getting Started with Lustre File System

    By DaniloJuly 13, 20260
    Latest Posts

    Linux ss, lsof, and fuser Commands: A Practical Guide

    August 4, 2026

    Linux Commands to Investigate High Disk Partition Usage

    July 20, 2026

    Essential Slurm Administration Commands Every HPC Administrator Should Know

    July 15, 2026
    Images from Gallery
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    shell scripting
    vSAN Trace Files
    Categories
    • CLI
    • HPC
    • Operating Systems
    • PowerFlex
    • Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to ensure your best experience on our website. If you continue using our website, we'll assume you agree to our cookie policy