Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: kernel 6.8 for Ubuntu 24.04? #11345

Open
oscarbg opened this issue Mar 22, 2024 · 12 comments
Open

Request: kernel 6.8 for Ubuntu 24.04? #11345

oscarbg opened this issue Mar 22, 2024 · 12 comments
Labels

Comments

@oscarbg
Copy link

oscarbg commented Mar 22, 2024

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
Copy link

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

@zcobol
Copy link

zcobol commented Mar 22, 2024

@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
Copy link

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
Copy link

sboyd-m commented Mar 22, 2024

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
Copy link

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

Fair point

@fredizzimo
Copy link

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
Copy link

c8ef commented Apr 21, 2024

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
Copy link

Trass3r commented Apr 25, 2024

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
Copy link

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

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

@oscarbg
Copy link
Author

oscarbg commented Apr 29, 2024

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

not really..

@linghengqian
Copy link

@Trass3r
Copy link

Trass3r commented Jul 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants