diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-08-27 23:50:44 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-08-28 23:16:36 +0200 |
commit | 014963008a43808119d9d6c56bbbd1692a4bcb27 (patch) | |
tree | f76f26a123a36c74c9370161a02bb4f18fe79166 /src/process/nice.md | |
parent | e830fa716bedecbff8c3a572d1d20061342ec4c7 (diff) | |
download | notes-014963008a43808119d9d6c56bbbd1692a4bcb27.tar.gz notes-014963008a43808119d9d6c56bbbd1692a4bcb27.zip |
process: add taskset, nice
Diffstat (limited to 'src/process/nice.md')
-rw-r--r-- | src/process/nice.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/process/nice.md b/src/process/nice.md new file mode 100644 index 0000000..bda743d --- /dev/null +++ b/src/process/nice.md @@ -0,0 +1,15 @@ +# nice(1) + +Adjust `niceness` of a new command or running process. + +Niceness influences the scheduling priority and ranges between: +- `-20` most favorable +- `19` least favorable + +```sh +# Adjust niceness +5 for the launched process. +nice -n 5 yes + +# Adjust niceness of running process. +renice -n 5 -p PID +``` |