-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renice: split POSIX and util-linux implementations (#12047)
- Loading branch information
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# renice | ||
|
||
> Alters the scheduling priority/niceness of one or more running processes. | ||
> Alter the scheduling priority/niceness of one or more running processes. | ||
> Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process). | ||
> See also: `nice`. | ||
> More information: <https://manned.org/renice>. | ||
- Change priority of a running process: | ||
- Increase/decrease the priority of a running [p]rocess: | ||
|
||
`renice -n {{niceness_value}} -p {{pid}}` | ||
`renice -n {{3}} -p {{pid}}` | ||
|
||
- Change priority of all processes owned by a user: | ||
- Increase/decrease the priority of all processes owned by a [u]ser: | ||
|
||
`renice -n {{niceness_value}} -u {{user}}` | ||
`renice -n {{-4}} -u {{uid|user}}` | ||
|
||
- Change priority of all processes that belong to a process group: | ||
- Increase/decrease the priority of all processes that belong to a process [g]roup: | ||
|
||
`renice -n {{niceness_value}} --pgrp {{process_group}}` | ||
`renice -n {{5}} -g {{process_group}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# renice | ||
|
||
> Alter the scheduling priority/niceness of one or more running processes. | ||
> Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process). | ||
> See also: `nice`. | ||
> More information: <https://manned.org/renice>. | ||
- Set the absolute priority of a running [p]rocess: | ||
|
||
`renice {{+3}} -p {{pid}}` | ||
|
||
- Increase/decrease the priority of all processes owned by a [u]ser: | ||
|
||
`renice --relative {{-4}} -u {{uid|user}}` | ||
|
||
- Set the priority of all processes that belong to a process [g]roup: | ||
|
||
`renice --absolute {{5}} -g {{process_group}}` |