[JetPack 6.2][AGX Orin 64GB][PREEMPT_RT] Large cyclictest latency variation between different modules, up to 90+ us even with CPU isolation

Hi NVIDIA team,

We are evaluating the real-time performance of the NVIDIA Jetson AGX Orin 64GB module for an industrial real-time application.

We are currently using:

  • Jetson AGX Orin 64GB module

  • JetPack 6.2

  • Jetson Linux / L4T 36.4.3

  • PREEMPT_RT kernel

  • cyclictest for latency measurement

  • CPU cores 8-11 isolated and dedicated to the real-time test

We have observed a significant and unexpected difference in real-time latency between different AGX Orin 32GB modules.

Problem description

We have tested multiple AGX Orin 64GB modules using essentially the same software environment and test configuration.

On one module, the cyclictest latency is very stable and the maximum latency is approximately 10 us, which meets our industrial real-time requirement.

However, on another AGX Orin 64GB module, using the same JetPack version, RT kernel and test method, the latency behaves very differently.

The maximum latency quickly exceeds 50 us and can reach 90 us or higher.

This difference is reproducible between the two modules.

For example:

Board A:

Typical latency: ~10 us
Maximum latency remains low and relatively stable

Board B:

Latency quickly exceeds 50 us
Maximum latency can reach 90+ us

I have attached screenshots of the cyclictest results from the two modules for comparison.

CPU isolation

To reduce interference from the Linux scheduler and other normal workloads, we isolated CPU cores:

CPU8
CPU9
CPU10
CPU11

and used these four isolated cores for the real-time latency test.

The kernel boot parameters include CPU isolation settings for these cores, for example:

isolcpus=8-11
nohz_full=8-11
rcu_nocbs=8-11

However, even after CPU isolation, the problematic module still cannot reliably keep the cyclictest maximum latency below 50 us.

Therefore, CPU scheduling interference alone does not appear to explain the difference.

RT kernel verification

The system is running the PREEMPT_RT kernel.

For example:

uname -a
cat /sys/kernel/realtime
zcat /proc/config.gz | grep PREEMPT_RT

The RT kernel is correctly enabled.

We will provide the exact output of these commands if required.

Cyclictest

We use cyclictest to evaluate scheduling latency on the isolated CPUs.

The test is pinned to the isolated CPU cores 8-11.

The exact cyclictest command is:

# Please replace this line with our actual cyclictest command
sudo cyclictest ...

The same command and test conditions are used on both modules.

What is concerning to us

The main issue is not only that the latency can exceed 50 us.

What concerns us more is the large board-to-board difference between AGX Orin modules of the same model.

With essentially identical:

  • AGX Orin 32GB modules

  • JetPack 6.2

  • PREEMPT_RT kernel

  • kernel boot parameters

  • CPU isolation configuration

  • cyclictest command

  • carrier board

  • power supply

  • peripheral configuration

  • test workload

we see approximately:

Board A: ~10 us maximum/peak latency under our test condition
Board B: 50-90+ us latency under the same test condition

For our industrial application, we need the worst-case scheduling latency to remain reliably below approximately 50 us.

The behavior of Board A shows that the platform seems capable of meeting this requirement, but we currently do not understand why Board B has significantly worse deterministic behavior.

Questions for NVIDIA

Could NVIDIA please help us understand the following?

  1. Is this level of real-time latency variation between different AGX Orin 64GB modules expected?

  2. Are there any known silicon, firmware, BPMP, power-management, thermal-management, interrupt-routing, or hardware-revision differences that could cause significantly different PREEMPT_RT latency between modules?

  3. Are there any specific interrupts, firmware threads, SMMU events, thermal events, BPMP activities, or other non-maskable/non-preemptible activities on Tegra234 that could cause periodic latency spikes of 50-100 us even on isolated CPU cores?

  4. Besides:

isolcpus
nohz_full
rcu_nocbs

are there additional NVIDIA-recommended settings for achieving deterministic latency on Jetson AGX Orin?

  1. Should IRQ affinity also be manually moved away from CPU8-11? If so, is there an NVIDIA-recommended IRQ affinity configuration for PREEMPT_RT applications?

  2. Do you recommend disabling CPU idle states, DVFS, or other power-management features for real-time applications?

  3. Should we run:

sudo nvpmodel -m <mode>
sudo jetson_clocks

during the latency test? Are there any additional clocks or power-management settings that need to be fixed?

  1. Is there an NVIDIA-recommended procedure for tracing the source of a latency spike on AGX Orin? For example, using:
ftrace
trace-cmd
rtla timerlat
rtla osnoise

If so, could you provide the recommended tracing configuration?

  1. Are there any known differences between AGX Orin module hardware revisions that may affect worst-case RT latency?

If NVIDIA recommends any additional tracing or diagnostic commands, we can run exactly the same test on both modules and provide the comparison results.

Our main goal is to understand why two AGX Orin 64GB modules with the same software configuration show such a large difference in worst-case PREEMPT_RT scheduling latency, and how we can ensure tha

t the latency remains consistently below 50 us for industrial real-time applications.

Thanks in advance for your help.

Hi,
The deviation between the two modules are huge. This not not expected. Do you do the profiling on our developer kit? We would suggest do it on our developer kit in Jetpack 6.2.2 r36.5. If the issue still appears, please run the command on the two modules and share the prints for reference:

$ sudo i2cdump -f -y 0 0x50