3 ms·
> it's just a VM. The disk usage doesn't automatically shrink with usage That's possible in theory, I've done it with libvirt/KVM. You have to enable discard o
by cesarb 7y ago
> it's just a VM. The disk usage doesn't automatically shrink with usage
That's possible in theory, I've done it with libvirt/KVM. You have to enable discard on all filesystems and swap on the guest, use a virtual disk interface which can pass the discard requests to the host, and configure the host to release the corresponding blocks on a discard request. I don't know if WSL2 comes configured to do all that, but if not, it shouldn't be too hard for them to add this functionality.
- mehrdadn 7y agoI imagine that could cause some awful fragmentation?