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

Pausing syncthing using the menu, causes almost 200% cpu usage. #182

Open
vext01 opened this issue Nov 23, 2016 · 11 comments
Open

Pausing syncthing using the menu, causes almost 200% cpu usage. #182

vext01 opened this issue Nov 23, 2016 · 11 comments

Comments

@vext01
Copy link

vext01 commented Nov 23, 2016

Hi,

Noticed that qsyncthing tray pegs cores when you pause syncthing.

This is version qsyncthingtray-0.5.5rc1 on OpenBSD. Can you repro?

P.S.

qsyncthingtray is an OpenBSD package now, thanks!

http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/net/qsyncthingtray/

@sieren sieren added the bug label Nov 23, 2016
@sieren
Copy link
Owner

sieren commented Nov 23, 2016

sweet! thanks! 👍

And yeah, technically I dont get 200%, but I do get blocking on the main thread for a while.
Does it stay on 200% indefinitely for you?

Either way, this will be fixed as part of #176 (comment) - the process handling isnt in a good state and I need to rewrite it completely and move it out of the Connection Handling. It doesn't belong there and the only reason it actually is, was because I've been a bit lazy when I started QST.

@vext01
Copy link
Author

vext01 commented Nov 23, 2016

Yeah it climbs to near 200 and stays there.

@mulander
Copy link

I can confirm buggy behavior on 0.5.5rc1 CPU climbing up when pause is clicked from r-click menu. In my case I observed it climbing up to about 97% cpu usage on a 4 core machine and staying there.

Running OpenBSD -current amd64

@sieren sieren added this to the QSyncthingTray 0.5.7 milestone Nov 23, 2016
@sieren
Copy link
Owner

sieren commented Nov 23, 2016

Ah, bummer. Either way though, this is the next thing I'll be working on. In fact I already started, but it takes a while.

@sieren
Copy link
Owner

sieren commented Nov 27, 2016

If you want to help out, mind checking out this PR #184 and see if it's still an issue?

@sieren
Copy link
Owner

sieren commented Jan 7, 2017

This has gone to master by now. Any chance you can check this again? Else I might close this.

@vext01
Copy link
Author

vext01 commented Jan 27, 2017

Sorry, been so busy! Will give it a go now.

@vext01
Copy link
Author

vext01 commented Jan 27, 2017

Well, it gets stuck at 100% instead of 200% now :)

qst

@vext01
Copy link
Author

vext01 commented Jan 27, 2017

This was today's master built with:

cmake  -DCMAKE_PREFIX_PATH=/usr/local/lib/qt5/cmake -DCMAKE_CXX_COMPILER=eg++ -DCMAKE_C_COMPILER=egcc -DQST_BUILD_WEBKIT=1 ..

@mulander
Copy link

I can confirm reproducing the same issue (100% CPU usage)

tested on commit:

@sieren
Copy link
Owner

sieren commented Jan 27, 2017

Seems OpenBSD specific :/ Guess there's no way around for me setting up OpenBSD and getting to the root of this.

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

3 participants