Skip to content

Instantly share code, notes, and snippets.

@nmelihsensoy
Created June 15, 2022 18:04
Show Gist options
  • Select an option

  • Save nmelihsensoy/52298c79f2763c0ddaebe191f71541c2 to your computer and use it in GitHub Desktop.

Select an option

Save nmelihsensoy/52298c79f2763c0ddaebe191f71541c2 to your computer and use it in GitHub Desktop.
My .wslconfig file
[wsl2]
memory=6GB
swap=6GB
# My custom kernel. Source can be found here https://github.com/nmelihsensoy/WSL2-Linux-Kernel
kernel=C:\\WINDOWS\\System32\\lxss\\tools\\mykernel
# Disables the mitigations and creates /sys/block/zram[0-5] block devices.
kernelCommandLine = zram.num_devices=6 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment