New feature: Niceness: change nice and ionice level of the local and/or remote process using the --nice option - #1011
Conversation
5a82ac5 to
1ef416f
Compare
aec9c56 to
5962831
Compare
ee71c1a to
f7a838c
Compare
|
Thanks for the work on this but I think the current implementation is too large and complex for the feature it provides, especially when process priority can already be managed with |
|
Hi @steadytao , This merge request is a successor of #933 and #945, thanks to @tridge and @devZer0 for your comments to help to improve the feature. |
…cess using the --nice option
f7a838c to
6199dac
Compare
|
Hmmmm. I am still a bit mixed on this one. Will try and organise my thoughts over this week/weekend. |
Introduced new option --nice=... to specify the nice/ionice level for the local/remote process
With this approach, all valid values for nice and ionice can be applied and successfully set, provided that any necessary permissions are available (root, CAP_SYS_NICE, CAP_SYS_ADMIN) for the affected process.
In case the priority cannot be set (Permission denied), rsync will just issue a warning and continue normally.
For keeping or lowering priority, that means nice values >= 0 and ionice values of NONE, BE_X, IDLE no special permissions are required.