What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello, when i am using WSL2, the setup is painfully slow. It even runs into timeouts. Compared to th
Hello,
when i am using WSL2, the setup is painfully slow. It even runs into timeouts.
Compared to this, my working WSL1 is much faster.
I am using Ubuntu 20.04 LTS, installed docker-compose and dockerForWindows is setup to use WSL2, has experimental Features on, as well as "buildkit".
The sourcecode is not hosted inside the WSL-Machine.
So what am i doing wrong here?
Comments
-
what are the specs of your machine?
0 -
What exactly do you mean by saying the sourcecode is not hosted in the WSL machine?
0 -
i7-8850H, 32GB, Win10 Pro 2004 - 19041.508
WSL receives 12GB and 8 cores, no swap
The sourcecode is accessed by /mnt/d/....
0 -
By setup you mean
docker/sdk up
?0 -
yes. Composer is really slow and comparing the NodsJS-Installing i can see, that WSL2 is 10x slower than WSL1 and thus runs in to multiple timeouts
Even the setup of the containers gets stuck, because docker-compose is not found anymore oO0 -
docker-sdk is 1.21.0
0 -
Spryker-B2C 202001
0 -
that is odd. I have experienced some very strange behavior with docker for desktop though, too. What has helped in the past is using absolute latest docker for desktop. Edge Version
0 -
hm... i haven't used the edge version yet... i can give it a try...
0 -
It not always helps, and i have not seen the problems you are having, yet, but it has sorted out some problems in the past. Might be worth a try
0 -
Also, corporate AV and the likes might also be a factor
0 -
wouldn't that also interfer with the wsl1 setup?
0 -
from the changelog of docker-edge i don't think it will help
0 -
AV related issues are pretty much a black box and i have seen all kinds of strange things happening that nobody could explain.
0 -
Just the process of elimination, right?
0 -
yep
0 -
i can confirm though, that this is not a general issue, since wls2 + docker runs well on my machine
0 -
and i am one of the "lucky"-ones, that can use WSL1 π
0 -
never got WSL1 to work on my machine, so yes, you are lucky, indeed π
0 -
hm... AV is silent and doesn't do anything...
but i also got a small container running with windows-cmd and not an wsl-machine and it seems... i have general problems with wsl2 π0 -
i have looked a bit. This seems to be a general problem, when the files are not stored inside the WSL2-Container π
0 -
This general problem with wsl2: https://github.com/microsoft/WSL/issues/4197
0 -
I use Kali-GUI from Windows. I installed phpstorm (in Kali) and checked out spryker (in my user home at Kali). That works and I have no performance problems.
https://www.youtube.com/watch?v=nXThnFxwH9c0 -
it is important that spryker code is no longer in windows mount (/mnt/*)
0 -
so the solution could be opening project from
\\wsl$
drive (which exists inside Linux)In this case the application will work on the full speed,
but PhpStorm will work with the files using network file system, which is OK.0 -
BTW @UNYG3HRDZ thanks for the link, this is really great comment https://github.com/microsoft/WSL/issues/4197#issuecomment-604592340
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 930 Developer Corner
- 788 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random