8

As the title already states, I want to limit the disk usage of the Linux subsystem. I'm trying to build huge projects on the WSL while using Windows normally...

I already limited the RAM and CPU usage using the .wslconfig file, but I don't know how I can limit the disk usage without changing my Windows installation. I already found this thread about limiting disk usage per application, but this won't work here, because the WSL accesses the file system using the Windows system, meaning the high disk usage is registered as "System". Limiting that would slow down my whole Windows environment.

So how can I limit the disk usage of WSL without affecting any other programs? Thanks for any help.

2
  • Any solutions ? – Markoo91 Apr 11 at 19:00
  • @Markoo91 No, still haven't found a solution for this. – MonsterDruide1 Apr 13 at 4:47
-1

This is probably not ideal and hopefully not the best solution, but you could create a VM using built-in Hyper-V (or whatever VM software you prefer) with the limits you prefer. That way, it is limited by the VM disk settings. I'll look around for other solutions when I get home and maybe we can find something.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.