Files
tldr/pages.zh/common/renice.md

18 lines
529 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# renice
> 修改正在运行的进程的调度优先级/亲和度。
> 亲和度值的范围是 -20对进程最有利到 19对进程最不利
> 另见:`nice`。
> 更多信息:<https://manned.org/renice>。
- 增加/降低一个正在运行的 [p]rocess 的优先级:
`renice -n {{3}} -p {{pid}}`
- 增加/降低一个 [u]ser 所有进程的优先级:
`renice -n {{-4}} -u {{uid|user}}`
- 增加/降低属于一个进程 [g]roup 的所有进程的优先级:
`renice -n {{5}} -g {{process_group}}`