13

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 Answers2

-1

You could try limiting the disk I/O from within the Linux subsystem instead of trying to do it from the Windows side of things:

Raven
  • 149
-2

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.