microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.42k stars 822 forks source link

Request: kernel 6.8 for Ubuntu 24.04? #11345

Open oscarbg opened 7 months ago

oscarbg commented 7 months ago

Hi, Ubuntu 24.04 lts, it’s releasing soon, and comes with kernel 6.8.. will wsl include it by default, once 24.04 released?.. I say, because we are at 5.15 , and there was some wsl beta release with a 6.1 kernel but was scrapped.. https://github.com/microsoft/WSL2-Linux-Kernel/tree/linux-msft-wsl-6.1.y Thanks..

LukeTheEngineer commented 7 months ago

Is there a specific feature in Ubuntu 24.04 that you want included in WSL2?

zcobol commented 7 months ago

@oscarbg the Linux kernel released by WSL team has code that's not in the main kernel, and it might never be mainlined. That's something to consider!

maxboone commented 7 months ago

Considering WSL sticks to LTS kernels historically 5.15 is probably the version for the foreseeable future. You can always use a community build with the WSL patches, i.e.: https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling

That's very much unsupported though.

sboyd-m commented 7 months ago

LTS Kernels shouldn't really be something holding them to 5.15 considering 6.1 and 6.6 are also LTS. In addition, the shrinking of the LTS window to 2 years will probably force Microsoft's hand a bit.

That said, having 6.8 available would be outstanding. It is a big release.

maxboone commented 7 months ago

LTS Kernels shouldn't really be something holding them to 5.15 considering 6.1 and 6.6 are also LTS.

Fair point

fredizzimo commented 7 months ago

Updating the kernel would also fix at least these issues, that I personally have and are very annoying for me, and probably a lot of other issues as well.

The first issue was fixed for me in WSL 1.1.7, when Microsoft briefly switched to kernel 6.1 https://github.com/microsoft/WSL/releases/tag/1.1.7 a year ago, but for some reason they switched back https://github.com/microsoft/WSL/releases/tag/1.2.0 (Revert to the 5.15.90.1 version of the kernel while we debug a few issues). And newer upgraded again.

6.1, and I think some optimizations after that should also probably make it possible to optimize the file system performance https://www.phoronix.com/news/Linux-9p-10x-Performance, but I believe that it also needs some kind of Windows side implementation to be effective.

c8ef commented 6 months ago

For optimal performance with new features like multi-shot accept or ring-mapped buffers in io-uring or liburing, it is advisable to use a newer kernel version. Therefore, I recommend using a newer kernel version in WSL, such as Ubuntu 22.04 with kernel 6.8.

Trass3r commented 6 months ago

https://github.com/nathanchance/WSL2-Linux-Kernel used to be a good source of a bleeding edge kernel, also focused on building with clang and LTO. Are there any WSL-specific code changes left that haven't been upstreamed? Or is it just a special config?

Stanzilla commented 6 months ago

Do not update to Ubuntu 24.04, I made that mistake yesterday.

https://twitter.com/stanzillaz/status/1783274242995290244

oscarbg commented 6 months ago

Is there a specific feature in Ubuntu 24.04 that you want included in WSL2?

not really..

linghengqian commented 4 months ago
Trass3r commented 4 months ago

Looks like it's now a bit easier to see what they changed: https://github.com/microsoft/WSL2-Linux-Kernel/commits/linux-msft-wsl-6.6.36.3/ Could try a rebase onto a newer version. Edit: https://github.com/Trass3r/WSL2-Linux-Kernel/tree/6.8-rebased