A 20 Mb/s camera stream writes about 2.5 MB/s before video-container overhead. Put that stream on a Linux controller and the number that matters might be how late the controller wakes up while the recorder is finishing a segment. A drive can keep up with the average write rate and still leave you with a control loop that occasionally misses a deadline.

You can find out where the trouble starts with the board you already have. Keep the same camera, recording settings, and destination filesystem throughout the test. Changing the bitrate or moving the recording to a different drive halfway through makes a slow run harder to explain.

Time the controller first

Start with just the control service. If it runs every 20 ms, record how often each iteration starts late and how long the work takes once it starts. Use a monotonic clock and count missed deadlines as well as reporting a high percentile. A 99th percentile of 5 ms still leaves room for a single 150 ms stall, and that stall might be the one you care about.

Keep the samples in memory during a short run and write them out at the end. Otherwise the timing probe can add a second writer to the same drive every time it takes a measurement. If you need a longer run, batch the measurements and keep the batch size the same across runs.

Add capture and encoding next, with the output discarded if the software supports that. Then record to the actual filesystem and repeat. Use the same segment length you expect to deploy and leave the test running for several segment changes. The RK3568 and RK3576 comparison has the relevant encoder modes if you're at the point of choosing between them.

If running the encoder alone already causes late iterations, look at CPU use, frame copies, and the encoder path first. If the late starts appear only with recording enabled, time the segment rollover as well. Closing a file, flushing it, and opening the next one can bunch work up even when the rest of the minute looks fine.

Add a repeatable write load

A recorder adds some variation of its own. A file-based fio job gives you another run where you can control the write rate. Replace /mnt/recordings with your recording directory, check that the directory is actually mounted on that drive, and leave at least 256 MiB free for the file. Keep the real recorder stopped for this run.

workdir=$(mktemp -d /mnt/recordings/sbc-io.XXXXXX) || exit 1 fio --name=recording-write --filename="$workdir/probe.bin" \ --rw=write --bs=64k --ioengine=sync --direct=0 \ --fallocate=none --create_on_open=1 --size=256m --rate=2500000 --runtime=60 --time_based \ --group_reporting rm -f -- "$workdir/probe.bin" rmdir -- "$workdir" 

The job uses buffered writes and a cap of 2,500,000 bytes/s. The fio job option reference explains the rate and sync settings if you want to try the same run with explicit flushes. For example, if your recorder calls fsync on a schedule, add the corresponding sync behavior for a second run. The fsync option counts writes, so changing the block size also changes how much data accumulates between calls.

Keep timing the controller while the job runs. A flat throughput figure gives you very little to go on if a few control iterations were delayed. Read the timing samples alongside the recorder's segment timestamps from the real run. If only the recorder reproduces the problem, look at what else it does at rollover, such as updating an index or renaming a completed file.

Check the storage path before swapping boards

An NVMe drive can be wired differently from one board to the next. The RK3588 and A733 storage comparison shows an example with four PCIe 3.0 lanes at the KiwiPi 5 Pro's M.2 slot and a single lane through a ribbon adapter on the Cubie A7A. The latter also gives you one more cable and board to mount inside the enclosure.

If you move the application, bring over the same drive and camera where the interfaces allow it. Repeat the test with the recording folder partially full, and include a normal retention cycle that removes old segments. Use the control deadline and the actual recording settings in the acceptance check. Those are the numbers the replacement has to handle after the enclosure is closed and the board has warmed up.