我希望在HandBrake中设置macOS的低优先级。
我试图通过renice使用pid命令,但它似乎不起作用。(好值保持为0)
% ps ax -l | grep Hand
501 32255 1 0 46 0 3433240 544536 - R ?? 52:50.69 /Applications/HandBrake.app/Contents/MacOS/HandBrake
% sudo renice -p 32255 -n 10
% ps ax -l | grep Hand
501 32255 1 0 46 0 3433240 530868 - R ?? 55:58.62 /Applications/HandBrake.app/Contents/MacOS/HandBrake
% sudo renice -p 32255
% ps ax -l | grep Hand
501 32255 1 0 46 0 3433184 520424 - R ?? 62:01.50 /Applications/HandBrake.app/Contents/MacOS/HandBrake它通过像这样使用nice来工作。
% nice /Applications/HandBrake.app/Contents/MacOS/HandBrake
% ps ax -l | grep Hand
501 32467 30511 0 46 10 2726256 156284 - SN+ s004 0:00.67 /Applications/HandBrake.app/Contents/MacOS/HandBrake我做错什么了吗?
发布于 2017-08-06 07:24:56
看看手册页:
[-p pid .] [-g pgrp .] [-u用户.]-n增量[-p pid .] [-g pgrp .] [-u用户.]
看起来,-n和参数应该放在-p之前。
所以试着:
sudo renice -n 10 -p 32255当然,这就是我在macOS Sierra上的做法。
https://unix.stackexchange.com/questions/384227
复制相似问题