Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: idle/low cpu priority and running as service #143

Closed
gijs007 opened this issue Sep 17, 2015 · 8 comments
Closed

Request: idle/low cpu priority and running as service #143

gijs007 opened this issue Sep 17, 2015 · 8 comments

Comments

@gijs007
Copy link

gijs007 commented Sep 17, 2015

Would it be possible to set syncthing to idle/low priority instead of below normal?
I've noticed it using a lot of CPU and still causing lag in the OS with the below normal option.

Additionally it would be good to have the ability to run synctrayzor and synchting as a service, so it can run unattended and automatically be restarted if it crashes.

@canton7
Copy link
Owner

canton7 commented Sep 17, 2015

I could certainly add more Syncthing priority levels but I'm afraid the service stuff will never happen. It will destroy the multiuser support, and require a significant rewrite (since there is an awful lot of chatter between the UI, tray icon, and syncthing itself which will need to be reworked).

Syncthing is probably already being restarted if it crashes, no? (and if not, I should fix that) and a SyncTrayzor crash should reported, not ignored 😉 What other advantages do you see to a service?

On 17 September 2015 21:43:22 CEST, gijs007 notifications@github.com wrote:

Would it be possible to set syncthing to idle/low priority instead of
below normal?
I've noticed it using a lot of CPU and still causing lag in the OS with
the below normal option.

Additionally it would be good to have the ability to run synctrayzor
and synchting as a service, so it can run unattended and automatically
be restarted if it crashes.


Reply to this email directly or view it on GitHub:
#143

@gijs007
Copy link
Author

gijs007 commented Sep 17, 2015

Fair enough. The only other advantage is that a user doesn't have to be logged in for it to start. This would be useful for servers.

@canton7
Copy link
Owner

canton7 commented Sep 17, 2015

Sure, but in that case a swanky UI and tray icon are pretty useless too: just run Syncthing as a service (there are plenty of preexisting tuts, and even installers, which let you do this).

Multiple system users don't go well with services: we'd have to run one service per user in order to get the permissions right, and then people would complain that there were multiple syncthing instances taking all of their system resources...

@gijs007
Copy link
Author

gijs007 commented Sep 18, 2015

Depends, it's good to have an UI when you want to check on things but to have the process run in the background.

Perhaps it's an idea to have it as a option in the menu for people who don't have multiple users that want to use synching at the same time.

@canton7
Copy link
Owner

canton7 commented Sep 18, 2015

It's possible certainly: it's also probably a couple of months of all of my lunch breaks, weekends, and evenings, all for something which is only useful to a very small proportion of users. It's simply far too much complexity and time for something which is useful to so few.

@canton7
Copy link
Owner

canton7 commented Sep 18, 2015

Also remember that most servers run headless: loading the Web UI directly is easier than logging in over rdp and opening a tray application.

@gijs007
Copy link
Author

gijs007 commented Sep 26, 2015

Another advantage is the auto updating and the automatic pushing of modified files.

Perhaps synctrayzor itself could be made as a service and then to have a separate user interface application/web browser access or part of Synchtrayzors functionality could be added in to Syncthing.

But if it's indeed a lot of work then I suppose I could work around it by having the server automatically log in and then lock the desktop (although it's a minor security risk)

@canton7
Copy link
Owner

canton7 commented Oct 6, 2015

Righty, multiple priority levels are in. You'll be able to download a build from here https://ci.appveyor.com/project/canton7/synctrayzor/build/artifacts shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants