I get the following warning due to the new priority setting:
Failed to lower process priority: set process group: operation not permitted
This occurs when running Syncthing as a system service. Just for testing, I also tried it running as root (syncthing@root) and the same error occurs. The error does not happen when I run syncthing manually. So it seems systemd prevents some operation.
If this is not a problem on my side or there is no fix in the code (e.g. it’s simply a mystery what systemd does ), we could add an environment variable to disable the internal low priority thing and add it to the shipped systemd service files with the Nice option.
Can you post ps -ejH for that system when syncthing is running, at least the part of the tree that relates from systemd down to syncthing? I’m interested in the PID/SID/PGID relations here
Just for reference: If you manually set the Nice option in the systemd service (like I do - I obviously disabled for testing), syncthing still warns about not being able to set niceness, but that’s expected and a user config problem, not syncthings problem (and the error message is nicely descriptive).
As much as I want the bare minimum here, attempting to raise our priority and then complaining to the user is clearly a bug, compounded by then being annoying.