From fb6b981286675c7535f9793324fb34a1fecb9fd5 Mon Sep 17 00:00:00 2001 From: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Date: Tue, 9 Jan 2024 18:18:23 -0300 Subject: [PATCH] renice: split POSIX and util-linux implementations (#12047) --- pages/common/renice.md | 15 ++++++++------- pages/linux/renice.md | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 pages/linux/renice.md diff --git a/pages/common/renice.md b/pages/common/renice.md index aaeeddaa7..b0440075b 100644 --- a/pages/common/renice.md +++ b/pages/common/renice.md @@ -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: . -- 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}}` diff --git a/pages/linux/renice.md b/pages/linux/renice.md new file mode 100644 index 000000000..3ec71bbce --- /dev/null +++ b/pages/linux/renice.md @@ -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: . + +- 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}}`