Chapter 1. Installing RHEL for Real Time
Many industries and organizations need extremely high performance computing and may require low and predictable latency, especially in the financial and telecommunications industries. Latency, or response time, is defined as the time between an event and system response and is generally measured in microseconds (μs).
For most applications running under a Linux environment, basic performance tuning can improve latency sufficiently. For those industries where latency not only needs to be low, but also accountable and predictable, Red Hat developed a 'drop-in' kernel replacement that provides this. RHEL for Real Time is distributed as part of RHEL 9 and provides seamless integration with RHEL 9. RHEL for Real Time offers clients the opportunity to measure, configure, and record latency times within their organization.
Before installing RHEL for Real Time, ensure that the base platform is properly tuned and the system BIOS parameters are adjusted. Failure to perform these tasks may prevent getting consistent performance from a RHEL Real Time deployment.
1.1. RHEL for Real Time for optimizing latency Copy linkLink copied to clipboard!
RHEL for Real Time is designed to be used on well-tuned systems for applications with extremely high determinism requirements. Kernel system tuning offers the vast majority of the improvement in determinism.
For example, in many workloads, thorough system tuning improves consistency of results by around 90%. This is why, before using RHEL for Real Time, we recommend that customers first perform system tuning of standard RHEL to see if it meets their objectives.
System tuning is just as important when using the Real Time kernel as it is for the standard kernel. Installing the Real Time kernel on an untuned system running the standard kernel supplied as part of RHEL is not likely to result in any noticeable benefit. Tuning the standard kernel will yield 90% of the possible latency gains. The Real Time kernel provides the last 10% of latency reduction required by the most demanding workloads.
Before tuning Real Time kernel systems, ensure that the base platform is properly tuned and the system BIOS parameters are adjusted. Failure to perform these tasks may prevent getting consistent performance from a RHEL Real Time deployment.
The objective of the Real Time kernel consistent, low-latency determinism offering predictable response times. There is some additional kernel overhead associated with the real time kernel. This is due primarily to handling hardware interrupts in separately scheduled threads. The increased overhead in some workloads results in some degradation in overall throughput. The exact amount is very workload dependent, ranging from 0% to 30%.
1.2. Installing RHEL for Real Time using DNF Copy linkLink copied to clipboard!
In addition to installing the real-time kernel with dnf, you can download it along with all other downloadable components of Red Hat Enterprise Linux from the Download Red Hat Enterprise Linux portal. Select the appropriate version from the Version menu.
Prerequisites
- The latest version of RHEL 9 is installed on an AMD64 or Intel64 system. The real-time kernel runs on AMD64 and Intel 64 (also known as x86_64) server platforms that are certified to run Red Hat Enterprise Linux.
- Your machine is registered and RHEL is attached to a RHEL for Real Time subscription.
Ensure that the base platform is properly tuned and the system BIOS parameters are adjusted.
WarningFailure to perform the prerequisite tasks before installing the real-time kernel might prevent a consistent performance from a RHEL for Real Time kernel deployment.
Procedure
Enable the RHEL for Real Time repository.
# subscription-manager repos --enable rhel-9-for-x86_64-rt-rpmsInstall the RHEL for Real Time package group.
# dnf groupinstall RTThis group installs several packages:
-
kernel-rtincludes the RHEL for Real Time kernel package. -
kernel-rt-coreincludes the core RHEL for Real Time kernel package. -
kernel-rt-develincludes the RHEL for Real Time kernel development package. -
kernel-rt-modulesincludes the RHEL for Real Time kernel modules package. -
kernel-rt-modules-extraincludes the RHEL for Real Time kernel extra modules package. -
realtime-setupsets up the basic environment required by RHEL for Real Time. -
rtevalevaluates system suitability for RHEL for Real Time. -
rteval-loadsprovides source code forrtevalloads. -
tuned-profiles-realtimeincludes the additionalTuneDprofiles targeted to real-time.
-
Optional: Additionally, the
tunapackage contains a tool that helps tune the real-time kernel workload, greatly automating CPU isolation and thread affinity operations from the command line or the GUI. This package is available in the base RHEL 9 repository.# dnf install tuna
When the RHEL for Real Time kernel is installed, it is automatically set to be the default kernel and is used on the next boot. You can also configure other existing kernels variants, such as, kernel, kernel-debug, or kernel-rt-debug as the default boot kernel. For more information, see Configuring kernel-rt as the default boot kernel.
Verification
Check the installation location and verify that the components have been installed successfully.
# rpm -ql realtime-setup /etc/security/limits.d/realtime.conf /etc/sysconfig/realtime-setup /etc/udev/rules.d/99-rhel-rt.rules /usr/bin/realtime-setup /usr/bin/rt-setup-kdump /usr/bin/slub_cpu_partial_off /usr/lib/.build-id /usr/lib/.build-id/a4 /usr/lib/.build-id/a4/da77908aa4c6f048939f3267f1c552c456d117 /usr/lib/systemd/system/rt-entsk.service /usr/lib/systemd/system/rt-setup.service /usr/sbin/kernel-is-rt /usr/sbin/rt-entsk
1.3. Installing RHEL for Real Time from a local repository Copy linkLink copied to clipboard!
If your system does not have network access to the Red Hat Content Delivery Network (CDN), you can install the RHEL for Real Time kernel from a local repository by using the RHEL Binary DVD ISO image as the package source. This method is suitable for disconnected or bandwidth-constrained environments.
Booting from a RHEL for Real Time ISO performs a full operating system installation. To add the real-time kernel to an existing RHEL system without reinstalling, use the local repository method described in this procedure.
Prerequisites
- The latest version of RHEL 9 is installed on a 64-bit x86 system.
-
You have downloaded the RHEL 9 Binary DVD ISO image that contains the
kernel-rtpackages from the Download Red Hat Enterprise Linux portal. - The ISO image is accessible on the local file system or removable media.
Procedure
Create a mount point for the ISO image:
# mkdir -p /mnt/rhel-isoMount the ISO image on the mount point:
# mount -o loop,ro /path/to/rhel-{ProductNumber}-x86_64-dvd.iso /mnt/rhel-isoReplace
/path/to/rhel-9-x86_64-dvd.isowith the actual path to your ISO file.Create a repository configuration file that points to the mounted ISO:
# cat > /etc/yum.repos.d/rhel-local.repo << 'EOF' [rhel-local-baseos] name=RHEL {ProductNumber} Local BaseOS baseurl=file:///mnt/rhel-iso/BaseOS enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-local-appstream] name=RHEL {ProductNumber} Local AppStream baseurl=file:///mnt/rhel-iso/AppStream enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-local-rt] name=RHEL {ProductNumber} Local RT baseurl=file:///mnt/rhel-iso/RT enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release EOFNoteThe directory names within the ISO (
BaseOS,AppStream,RT) depend on the specific ISO variant you downloaded. Verify the directory structure of your mounted ISO and adjust thebaseurlpaths accordingly.Clear the
dnfcache to pick up the new repositories:# {PackageManagerCommand} clean allVerify that the RT repository is available:
# {PackageManagerCommand} repolistThe output lists
rhel-local-rtamong the enabled repositories.Install the RHEL for Real Time package group:
# {PackageManagerCommand} groupinstall RTOptional: After the installation completes, unmount the ISO:
# umount /mnt/rhel-isoIf you plan to install additional packages from the ISO in the future, keep it mounted or add an entry to
/etc/fstabto mount it persistently:/path/to/rhel-{ProductNumber}-x86_64-dvd.iso /mnt/rhel-iso iso9660 loop,ro 0 0Reboot the system to use the real-time kernel:
# reboot
Verification
After reboot, verify that the real-time kernel is running:
# uname -rThe output contains
rtin the kernel version string.Verify that the RT packages are installed:
# rpm -qa | grep kernel-rt
1.4. Available RPM packages in the RHEL for Real Time repository Copy linkLink copied to clipboard!
The Red Hat Package Manager (RPM) for RHEL for Real Time repository includes the following packages:
-
kernel-rtpackage, which is the RHEL for Real Time kernel package. - RHEL for Real Time kernel test packages, which contains test programs for the real-time kernel.
- RHEL for Real Time debugging packages, which are for debugging and code tracing.
| RPM package name | Description | RT-specific | Required |
|---|---|---|---|
|
| Low latency and preemption functionality | Yes | Yes |
| RPM package name | Description | RT-specific | Required |
|---|---|---|---|
|
| Headers and libraries for kernel development | Yes | No |
|
| RHEL for Real Time kernel with debugging functions compiled in (slow) | Yes | No |
|
| Headers and libraries for development on debug kernel | Yes | No |
|
| Utilities for measuring system latencies and for proving that priority-inheritance mutex functions properly | No | No |
The debugging packages are provided to use with the perf, trace-cmd, and crash utilities for analyzing kernel crash dumps. The debugging packages include symbol tables and are quite large. For this reason, the debugging packages are separately delivered from the other RHEL for Real Time packages. You can download the debugging packages from RHEL for Real Time - Debug RPMs repository.
| RPM package name | Description | RT-specific | Required |
|---|---|---|---|
|
|
Symbols for profiling and debugging use, such as | Yes | No |
|
| Symbols for profiling and tracing | Yes | No |
1.5. Post installation instructions Copy linkLink copied to clipboard!
After you install the real-time kernel ensure that:
- To achieve optimal low-latency determinism, you perform RHEL for Real Time specific system tuning.
- You know about the module compatibility of the real-time kernel and the standard kernel.
-
To enable
kdump, you must configure RHEL for Real Time to provide crash dump information by enablingkexec/kdump. - Verify that the Real Time kernel is the default kernel.
UEFI Secure Boot support
The RHEL for Real Time kernel (kernel-rt) is signed by Red Hat and supports UEFI Secure Boot. No additional configuration is required to run the real-time kernel on Secure Boot-enabled systems.
Module compatibility of the real-time kernel and the standard kernel
The real-time kernel differs substantially from the standard Red Hat Enterprise Linux 9 kernel. As a consequence, third-party kernel modules are incompatible with RHEL for Real Time.
Kernel modules are inherently specific to the kernel they are built for. The real time kernel is substantially different from the standard kernel, and so are the modules. Therefore, you cannot take third-party modules from Red Hat Enterprise Linux 9 and use them as-is on the real-time kernel.
If you must use a third-party module, you must recompile it with the RHEL for Real Time header files, which are available in the RHEL for Real Time development and test packages.
The third-party drivers for the standard Red Hat Enterprise Linux 9 but do not currently have a custom build for RHEL for Real Time are:
- EMC Powerpath
- NVidia graphics
- Advanced storage adapter configuration utilities from Qlogic
The user space syscall interface is compatible with RHEL for Real Time.