Linux serverNETWORK ADMINISTRATIONS

Nice and Renice a process (system-config-users) | CentOs | Redhat Linux | RHCSA

​Open two terminal sessions on ​host1 a​ s ​root​. Run the ​system-config-users command on one of the terminals. Run a command on the other terminal to determine the PID and the nice value of the ​system-config-users ​command. Stop system-config-users o​ n the first terminal and re-run it at a lower priority of +8. Confirm the new nice value of the process by running the appropriate command on the second terminal. Execute the ​renice c​ ommand on the second terminal and increase the priority of the ​system-config-users ​process to –10, and validate.

Note: system-config-users can be installed only on the previous releases of redhat 8 or Centos 8
To install on Centos 7 or before release:
# yum install system-config-users
Nice value ranges from -20 to 19.

By Default, nice value is 0.

To run a process with specific nice value:
# nice -n 10 system-config-users
To view the process nice value:
# ps -eo pid,ni,command system-config-users | grep “system-config-users” | head -n1
To renice the value of process:
# renice -n -10 pid_of_process_here
To Valiate again:
# ps -eo pid,ni,command system-config-users | grep “system-config-users” | head -n1
––––––––––––––––––––––––––––––
Good For You by THBD https://soundcloud.com/thbdsultan
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
Free Download / Stream: http://bit.ly/2PgU6Mu
Music promoted by Audio Library https://youtu.be/-K_YSjqKgvQ
––––––––––––––––––––––––––––––

🎵 Track Info:

Title: Good For You by THBD
Genre and Mood: Dance & Electronic + Happy

———

source

redhat linux

Leave a Reply

Your email address will not be published. Required fields are marked *