-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
pikaur constantly use 100% CPU on WSL #317
Comments
And the original pstat file from the profiler: |
please run pikaur with |
but profiling results are confusing for me,
it saying what each acquiring of the lock was taking more than 2 seconds can you reproduce it in any other environment? i don't have windows for reproducing it |
also please check if setting |
Yes, this solves the issue. |
so, either threadlock implementation or just from the information you provided -- the first is more possible |
If I take the 2 functions out (see this gist), the CPU usage is normal (nearly 0) |
Is there any difference if you replace sleep to something what will be
actually executing in that thread, for example print smth each second?
…On Fri, 30 Nov 2018 at 19:58, wangqr ***@***.***> wrote:
If I take the 2 functions out (see this gist
<https://gist.github.com/wangqr/76752502264b371befa763fb173608ba>), the
CPU usage is normal (nearly 0)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#317 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlDdVIjJBVGvv-UM_WW9oT3dBaNV4wLks5u0X--gaJpZM4Y62Ro>
.
|
I tried various functions. I found that this issue can be reproduced with this example on my computer. |
in i have an idea what in your environment nested ThreadPool could behave differently in order to debug this please try:
|
No, this doesn't make any difference. |
if debugging with |
if you don't mind i am closing this since the issue is also reproducible with gzip |
Archlinux is running on Windows Subsystem Linux, on windows 10 1809.
Attached log:
Just leave it there without answering anything. Open htop and I can see that pikaur is using 100% CPU (full of a single core).
caffe
can be changed to any package.I ran pikaur with PyCharm profiler, and get the following image:
The text was updated successfully, but these errors were encountered: