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

High CPU usage from plugin #182

Open
SkebbZ opened this issue May 19, 2022 · 4 comments
Open

High CPU usage from plugin #182

SkebbZ opened this issue May 19, 2022 · 4 comments

Comments

@SkebbZ
Copy link

SkebbZ commented May 19, 2022

I purged the settings file and set it to "drm-free" only.

It connects properly now, but after connecting the entire GOG client slows to a crawl and uses 100% CPU on the "GalaxyClient
Helper Application". If I terminate that process the GOG client sort of reloads and imports everything normally after a few seconds.

Seems to work OK, until I restart the client. Then it starts to use around 10-12% CPU on the Python process related to the Humble plugin. I know this because when I terminate it, it says "Humble plugin crashed".

logs.zip

Side note:
The entire client was always a bit unstable. Perhaps I just have too many games. If I import my steam account, the entire client crashes or becomes unusable due to having over 4k games there...

At least on Humble I only had 397 drm-free games when I unticked everything else.

Originally posted by @SkebbZ in #177 (comment)

@SkebbZ
Copy link
Author

SkebbZ commented May 19, 2022

Skjermbilde 2022-05-19 122247

Here's a screenshot from task manager. It keeps going like this forever. The top Python process is the Humble plugin one. System otherwise at idle, and client has been open for about 5 minutes.

For reference I have an Intel i7-8700K running on full Turbo.

@EffortlessFury
Copy link

EffortlessFury commented Oct 29, 2022

I wanted to add my two cents to this issue as I came here looking for others with similar issues. I did a little digging and using the ever lovely "Everything" file system search tool, I think I found the culprit. Though the plugin itself has stopped performing operations (as all that's being appended are ping log lines), I found that what the Galaxy client is doing is populating the webcache for all of the games the plugin imported. It's slowly downloading files and updating a DB file for games that the plugin reported were imported minutes beforehand.

I think ultimately how GOG handles the importing process is the culprit and the poor performance is a consequence of having and importing a large library.

@UncleGoogle
Copy link
Owner

@EffortlessFury it's true, but it does not explain high CPU usage on plugin side.

@SkebbZ sorry for the silence, I forget to answer. I've scanned logs and everything seems smooth. I've scanned code and don't have idea about the culprit. But if you are still interested I can try to add more logs and share that plugin version for pair debugging.

@EffortlessFury
Copy link

I had high CPU usage as well, but I think it's not ACTUALLY the plugin. I think the high CPU usage is coming from GOG's caching process.

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

No branches or pull requests

3 participants