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

Add FCOS variant to use rt-kernel now that PREEMPT_RT is merged into 6.12 #1843

Open
tkarls opened this issue Nov 27, 2024 · 6 comments
Open

Comments

@tkarls
Copy link

tkarls commented Nov 27, 2024

Describe the enhancement

I would like to be able to use FCOS with kernel compiled with the RT patches (PREEMPT_RT) now that this is merged into the mainline kernel (but still require to be compiled with the proper config) to better support latency critical applications.

System details

This would only be feasible once FCOS starts to ship with kernel 6.12 - I don't expect to have any external patches applied.

Additional information

No response

@jlebon jlebon added the meeting topics for meetings label Nov 28, 2024
@jlebon
Copy link
Member

jlebon commented Nov 28, 2024

I think this probably makes most sense to discuss in the context of #1726. Having multiple FCOS variants adds a lot of complexity unfortunately. One approach is to provide the definitions for it like centos-bootc does and let users build it themselves with podman build. Another approach, which while not great definitely has its benefits, is to swap out the kernel in a layered build (see e.g. https://github.com/coreos/layering-examples/blob/main/kernel-rt/Containerfile, but a lot of the bits there can be made cleaner soon).

That said, for now, it should also work to use rpm-ostree override replace to do this client-side. See e.g. the RHCOS unofficial docs for this: https://github.com/openshift/os/blob/master/docs/faq.md#q-how-do-i-replace-the-current-kernel-with-kernel-rt-or-a-new-kernel-version-in-rhcos.

@Nemric
Copy link

Nemric commented Nov 30, 2024

I think that could be related : https://bugzilla.redhat.com/show_bug.cgi?id=2329409

@travier
Copy link
Member

travier commented Dec 2, 2024

My understanding is that now that it's merged in the upstream kernel, once https://bugzilla.redhat.com/show_bug.cgi?id=2329409 is enabled, there will be a single kernel build and the real time part would be enabled with a kernel argument likely, so there would be nothing for us to do here to have it.

@travier
Copy link
Member

travier commented Dec 2, 2024

Reading https://www.kernelconfig.io/CONFIG_PREEMPT_RT?q=PREEMPT_RT&kernelversion=6.12.1&arch=x86, maybe it's not the case yet and Fedora will have to build two kernels to get it.

@tkarls
Copy link
Author

tkarls commented Dec 3, 2024

Yes, it is merged into the kernel. But my understanding is that it is a compile time switch and not a boot time switch. So it would require two separate built kernels.

@LorbusChris
Copy link
Contributor

This might require a Fedora Change proposal to get the kernel-rt RPM built then

@jlebon jlebon removed the meeting topics for meetings label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants