Skip to content
New issue

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

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

Already on GitHub? # to your account

Kolibri 0.15.x running on Windows 10 - Python high CPU utilization #9908

Open
pcenov opened this issue Dec 12, 2022 · 4 comments
Open

Kolibri 0.15.x running on Windows 10 - Python high CPU utilization #9908

pcenov opened this issue Dec 12, 2022 · 4 comments
Labels
OS: Windows P1 - important Priority: High impact on UX TAG: performance User-facing performance

Comments

@pcenov
Copy link
Member

pcenov commented Dec 12, 2022

Observed behavior

In Windows 10 one can notice that when running Kolibri 0.15 this is causing high CPU utilization of up to 35-50% even when Kolibri is not in use.
This was initially internally discussed here: https://learningequality.slack.com/archives/CAUTAU14Y/p1665777085135879
And is now reported in the community forum here: https://community.learningequality.org/t/python-high-cpu-utilization/2665

Expected

It should be further investigating what is the root cause of the issue and the CPU usage should be minimized.

Steps to reproduce the issue

  1. Install Kolibri v0.15.x on a Windows 10 device.
  2. Monitor the Python CPU usage.

Screenshots

1c1de90d27ae9bb73b34521f76c85d8a470481cf

Usage Details

Windows 10 and Ubuntu 20 - Chrome, Firefox

@pcenov
Copy link
Member Author

pcenov commented Dec 12, 2022

@radinamatic

@radinamatic radinamatic added P1 - important Priority: High impact on UX TAG: performance User-facing performance OS: Windows labels Dec 12, 2022
@radinamatic
Copy link
Member

Suggested by @rtibbles:

The possibilities that come to mind are:

  • The background task runner is somehow running amock.
  • The magicbus thread manager is running amock.
  • Something funny is happening with the pingback task.
  • Version of Python used if installer is signed by Github action vs manually in the signer VM, and whether that might mean that the Python cryptography package had its C extensions installed or not.

cc @marcellamaki for planned patches and iteration planning

@marcellamaki
Copy link
Member

@pcenov and @radinamatic - as you begin integration testing for 0.16, can you confirm if this continues to be a problem on windows 10 for the newer release? Thank you!

@pcenov
Copy link
Member Author

pcenov commented Nov 2, 2023

Hi @marcellamaki - I confirm that this is still the same in Beta 7:

2023-11-02_18-30-59

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
OS: Windows P1 - important Priority: High impact on UX TAG: performance User-facing performance
Projects
None yet
Development

No branches or pull requests

3 participants