How to Reduce CPU Impact of an Already Running Backup Process?

A Linux administrator logs in to a system and identifies that an important backup has been started. The backup process is consuming a considerable amount of CPU lime but needs to continue. Which of the following should the administrator use to reduce the impact this process has on other services?

  1. renice -n 15 -p Source Reference Answer
  2. nice -n 15 -p
  3. renice -n -15 -p
  4. nice -n -15 -p

Community Votes

A
100%

100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The exam tests both the difference between nice and renice and the meaning of positive nice values: positive values lower priority, and renice is required for an already-running process.

Learn how to use renice with a positive nice value to lower the CPU priority of an already-running backup process on Linux, minimizing its impact on other services. This XK0-005 exam prep explains the difference between nice and renice and the correct syntax.

Choosing option B is a common mistake because it uses the correct nice value (15) but the wrong command: nice starts a new process and does not accept -p, while the backup is already running and needs renice.

Community Discussion (3 comments)

BlackSkullz 👍 3 Selected: A
I'm going with A. The nice priorites go from -20 to 19, with -20 being the highest priority and 19 being the lowest priority. Since the process must run, setting the priority to 15 would lower the priority of the process while ensuring that the process is still running and CPU time can be freed up for the users and services on the system. B would set it's priority to -15 which wouldn't solve anything because it would give it the 6th highest priority setting and make it consume even more resources
mirrblvck 👍 2
c renice -n -15 -p
bongobo 👍 1
1 to 20 Runs the specified processes slower than the base priority. 0 Sets priority of the specified processes to the base scheduling priority. -20 to -1 Runs the specified processes quicker than the base priority.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

A is correct because renice -n 15 -p changes the nice value of an existing process to 15, lowering its scheduling priority. On Linux, nice values range from -20 (highest priority) to 19 (lowest); a positive value makes the process "nicer" to others, so the backup still runs but consumes less CPU. Since the backup is already running, renice is the appropriate command.

Why the Other Options Are Wrong

Option B is wrong because nice -n 15 -p is invalid: nice is used to start a new command with a given priority and does not support a -p option to target a PID, nor can it change an already-running process. Option C uses -15, which would raise the backup's priority, increasing CPU contention with other services. Option D also uses -15, and nice cannot be used on a running process.

Community Comment Notes

Commenters correctly identified that positive nice values lower priority, as noted in comment 1: -20 is highest, 19 is lowest, and setting 15 would allow the backup to continue while freeing CPU. Comment 2 confirms the range and behavior of nice priorities. Comment 3 suggests renice -n -15 -p, but that would actually increase the backup’s priority; the correct approach for reducing impact is a positive value like 15.

Official Reference

Exam Strategy

Remember the mnemonic 'renice is for running, nice is for new' and that positive nice values are 'nice' to other processes (lower priority). When asked about an already-started process, immediately choose renice with a positive number.

Related Analysis

← Back to XK0-005 Study Guide