An administrator notices that a backup process, which has a process ID (PID) of 2635, is consuming more resources than it should during peak hours, impacting the performance of other critical services on the server. The administrator decides to lower the priority of this backup process to minimize its impact on system performance. Which of the following commands should be used to change the niceness (priority) of the running process to a higher nice value, thereby giving it a lower scheduling priority, without stopping the process?
The correct answer is renice +5 2635 because renice is used to change the scheduling priority of a running process. The +5 argument increases the nice value for the specified PID, which is 2635 in this case, making it less favorable for scheduling and therefore less competitive for CPU time compared to other processes with a lower nice value. A lower priority is implied by a higher nice value. The incorrect answers involve commands that either do not change process priority, are syntactically incorrect, or specify a decrease in the nice value, which would mistakenly increase the process's competition for CPU resources.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does `renice` do in Linux?
Open an interactive chat with Bash
What is a nice value in the context of process scheduling?
Open an interactive chat with Bash
How do I confirm the new nice value of a process after using renice?