-
Notifications
You must be signed in to change notification settings - Fork 26
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
CPU ressources #38
Comments
Hello @RonLinu This is interesting. I checked CPU resource using top command while I connect Scratch on FireFox and my micro:bit via pyscrlink.
I see the process "Isolated Web Co" uses high CPU resource. Is this same as your environment? According to ps command, this process is part of firefox. The 2nd highest CPU resource eater is another firefox process. And the 3rd process is python, which runs pyscrlink. I measured CPU usage with Chromium instead of Firefox.
Result is similar. Chromium consumes high CPU usage. So, it looks the CPU resource is consumed on browser processes, not by pyscrlink. I'm not sure what can be done by pyscrlink to reduce the CPU usage. |
Yes, Chromium or Firefox can take non-neligeable ressources but when I look in my System Monitor window, I see a specific entry for 'scratch_link'. I took two screenshots (coudn't figure out yet how to just copy/paste the text ): This first screenshot is during a connection to a running Scratch program: This second screenshot is after I terminated the Scratch program. This is where it goes a bit crazy. My computer fan starts to spin fast, this is how I found out about this behavior. But from what you said, maybe 'scratch_link' is not directly ressource hungry and, instead, inadvertently affect another process once a Scratch program is terminated. |
Hi,
I installed your 'pyscrlink' on Linux Mint. It works fine.
However when I checked in System Monitor, I found out it can use non-negligeable CPU ressource, it can go to 10% and more. And it can reach up to 50% (and stay there) when I stop a Scratch program using my Micro:bit.
I wonder if there is any way to lower the cpu usage? Changing the priority does not help.
The text was updated successfully, but these errors were encountered: