Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renice: split POSIX and util-linux implementations #12047

Merged
merged 3 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 7 additions & 6 deletions pages/common/renice.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

> Alters the scheduling priority/niceness of one or more running processes.
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved
> 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:

Check failure on line 8 in pages/common/renice.md

View workflow job for this annotation

GitHub Actions / build

rocess ==> process, recess

`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:

Check failure on line 12 in pages/common/renice.md

View workflow job for this annotation

GitHub Actions / build

ser ==> set

`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}}`
18 changes: 18 additions & 0 deletions pages/linux/renice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# renice

> Alters the scheduling priority/niceness of one or more running processes.
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved
> 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:

Check failure on line 8 in pages/linux/renice.md

View workflow job for this annotation

GitHub Actions / build

rocess ==> process, recess

`renice {{3}} -p {{pid}}`
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved

- Increase/decrease the priority of all processes owned by a [u]ser:

Check failure on line 12 in pages/linux/renice.md

View workflow job for this annotation

GitHub Actions / build

ser ==> set

`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}}`