Orin Nano latency

Hi, Nvidia teams.

I’m currently testing camera latency on Jetson Orin Nano.

SW: jetpack 6.2.2

HW: orin nano 8gb super config, custom carrier board, IMX568 sensor camera(1920x1080@30fps, YUV422 UYVY)

Monitor : LG 27MR400 (GtG 5ms)

The camera block diagram is shown below.

When displaying the video via gstreamer, the measured latency is approximately 112ms.
gst-launch-1.0 v4l2src device=/dev/video0 ! xvimagesink sync=false

Regarding these test results, I have the following questions:

  1. Is 112ms a reasonable latency? If not, are there any ways to reduce latency?
  2. Is there a way to reduce the time it takes for camera data to reach the Orin Nano’s CSI port?

Thanks for your help.

Do you boost the clocks to try.


sudo jetson_clocks
sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee  /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate

Hello, Shane

Thanks for the suggestion. I applied jetson_clocks and locked vi/isp/nvcsi/emc to max rate as you described, but It doesn’t work much.

I also wrote a custom DRM-based zero-copy V4L2 capture tool. With this tool, the end-to-end latency is 87ms,

  • Sensor → FPGA → ISP stage: 45ms
  • ISP → Orin Nano CSI transfer stage (SOF→EOF): 31ms
  • Orin Nano internal processing latency (Kernel DMA completion → DRM VBlank): 17ms
    • (EOF→DQBUF consistently under 1ms; DQBUF→VBlank varies 0–16.67ms depending on PageFlip timing relative to the 60Hz VBlank period)
  • HDMI monitor’s latency: 2–3ms

A couple of follow-up questions:

  1. Is 87ms a reasonable end-to-end latency figure to expect on the Orin Nano?
  2. Is there any buffering at the driver level, and if so, are there ways to optimize it?

Side note: I noticed the V4L2 buffer timestamp on this driver is TSC-based (CNTVCT_EL0) even though it reports the V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC flag.

Thanks for your help.

87ms is reasonable for me.

Thanks

Hello, Shane

Could you please answer the question, “Is there any buffering at the driver level, and if so, are there ways to optimize it?"

Thanks for you help.

I don’t think so.