Hi Adrian,
On 8/21/2023 3:58 PM, Adrian Rossiter wrote:
> I only use it occasionally, just to check if the Antiprism packages for
> Ubuntu are working on it. That is strange about the long exit time
> for native executables.
I've tried a number of things, one as drastic as completely
uninstalling/reinstalling WSL but the problem remains.
https://superuser.com/questions/1762576/why-are-exe-very-slow-when-run-from-wsl2-filesystem
The problem seems to be that exe files which are executed inside the
filesystem are much slower. I've been able to confirm the example.
roger@interocitor:~$ time /mnt/c/WINDOWS/system32/whoami.exe
interocitor\roger
real 0m0.091s
user 0m0.000s
sys 0m0.002s
roger@interocitor:~$ cp /mnt/c/WINDOWS/system32/whoami.exe .
roger@interocitor:~$ time ./whoami.exe
interocitor\roger
real 0m20.143s
user 0m0.001s
sys 0m0.000s
One thing I learned along the way is that I still had WSL 1 installed.
If no longer needed, it can be uninstalled by unchecking 'windows
subsystem for linux' in the Programs and Features/Windows Features
sub-panel.
WSL 2 is no longer stock and is installed from the Windows store.
The problem above occurred in Ubuntu and Debian installs, then I
discovered the issue was not in the distributions.
I am running Windows 11.
Roger