On windows 11, when my server reboots (when saving a file) it takes ca. 8 seconds.
On linux (fedora) it takes less than 0.5 seconds.
This is both on the same PC (dualboot).
On my laptop, which has worse hardware, it takes ca. 4 seconds to reboot the same project.
I want to switch back to Windows on my main PC, but the 8 second reboot time is really killing my productivity and making it stressful to work.
How can I fix this?
I’m guessing the performance issues come from the fact that the project is stored on the windows filesystem and not linux.
Some threads like these recommend putting the project directly in your WSL linux filesystem, but that doesn’t seem to be a good option when looking at this thread
I’ve already tried making a .wslconfig with:
# Settings apply across all Linux distros running on WSL 2
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=4GB
# Sets the VM to use two virtual processors
processors=2
Edit:
One thing I noticed is that creating these routes (server logs) take 10-30ms on average. On linux it takes 0-1ms
Last updated: