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

18 lines
528 B
Markdown
Raw Permalink 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 {{+3}} -p {{pid}}`
- 增加/减少某个 [u]用户所有进程的优先级:
`renice --relative {{-4}} -u {{uid|user}}`
- 设置属于某个进程 [g]roup 的所有进程的优先级:
`renice --absolute {{5}} -g {{process_group}}`