r/kernel • • 15d ago

Options for real-time kernel support on RHEL

I'm currently using Red Hat Enterprise Linux (RHEL), and I need to improve the timing precision and reduce jitter for periodic events.

I'm interested in using a PREEMPT_RT kernel, but I don't currently have access to a Red Hat subscription.

Since I need to keep RHEL as my operating system, I'd like to know what options are available.

Is it possible to build and install a PREEMPT_RT kernel from source on RHEL? Are there any officially supported or community-supported alternatives?

I'd appreciate any guidance or documentation.

Thanks!

3 Upvotes

3 comments sorted by

3

u/Ill-Quit6803 15d ago

If you don't want to pay for a subscription why not build it?

The kernel is one of the few things that has a really strong backward compatibility guarantee. You should be able to build it and have it work.

If you need support, Red Hat offers that.

2

u/ParsaAftabi 15d ago

I would check the kernel version you plan to build first. Since Linux 6.12, PREEMPT_RT is in mainline, so it is a config option rather than a separate patch set, while an older RHEL kernel needs the patch series that matches that exact version. That version match is the part that usually trips up a from-source build.

2

u/Dashing_McHandsome 14d ago

Just build it yourself. It isn't very hard. Whenever I have to build a kernel on a new machine I just basically look at the output from lspci to see what I need. I build in everything I need and don't really use many modules, it any. If you include the drivers you need for booting you don't even need an ititrd.