WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Lower CPU usage with 1.13.14

Open Frozaccio opened this issue 3 years ago • 7 comments

Windows Version

Windows 11 pro 22621.1992 22H2

WSL Version

1.13.14

Are you using WSL 1 or WSL 2?

  • [ ] WSL 2
  • [X] WSL 1

Kernel Version

No response

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

I am using WSL1 for long time. When passing from 1.13.11 to 1.13.14, CPU usage is divided by 2. This can be reproduced with any calculation code / compiler / script. I downgraded to 1.13.11 and my CPU usage went back to 100 % (instead of 56 % with 1.13.14). Note that I do parallel calculation on multiple cores. I have an intel core 13th gen i9-13980HX. Maybe that is linked with the way WSL manages the E cores and the P cores. I did not test with WSL2

Expected Behavior

CPU usage 100 %

Actual Behavior

CPU usage 50 %

Diagnostic Logs

No response

Frozaccio avatar Jul 20 '23 04:07 Frozaccio

Thank you for reporting this @Frozaccio. Which process is taking the extra CPU for you in 1.3.14 ?

Is the CPU being used in Linux, or by a Windows process ?

OneBlue avatar Jul 25 '23 21:07 OneBlue

I was performing a calculation with the simulation code GEANT4 using multiple threads but I tested other parallelized codes with the same result of not being able to go beyond ~50 %. The CPU was used in Linux (WSL1) and almost not used by windows (just standard background usage).

Frozaccio avatar Jul 25 '23 22:07 Frozaccio

Thank you @Frozaccio. Is this simulation using wslg / GUI apps ?

OneBlue avatar Jul 25 '23 23:07 OneBlue

Yes it has a user interface based on QT. I can try to execute it without the user interface if it helps

Frozaccio avatar Jul 25 '23 23:07 Frozaccio

Yes, that would help us understand if the issue comes from wsl or wslg

OneBlue avatar Jul 25 '23 23:07 OneBlue

@OneBlue, I reinstalled WSL 1.3.14 to perform the test we talked about with the user interface. I do not succeed to reproduce the issue. Everything goes smoothly with the simulations now, even when the user interface is activated. I guess I did a mistake during my first installation ?!.... sorry for the time lost...

Frozaccio avatar Jul 26 '23 05:07 Frozaccio

Ok thank you for the sharing the results. Closing since the issue is gone.

OneBlue avatar Aug 08 '23 18:08 OneBlue