ArmSoM
← All stories

Benchmarking Cold and Warm RKNN Startup on CM7s

A kiosk running continuously and a sensor that wakes on demand pay different costs for starting inference. For an RK3588S CM7s project, measure how long it takes to produce the first usable answer as well as the latency of later calls.

ArmSoM CM7s compute module product photo

ArmSoM CM7s compute module · ArmSoM

Put timestamps around ownership changes

Start the timer where the user action occurs. Mark process creation, model file open, runtime initialization, first input ready and first result delivered. Then run several more inputs in the same process. Restarting the application may leave the model file in the operating system cache, so describe application restarts and full device boots separately.

Use three labels in the results: first request after power-on, first request after worker restart and next request in the same worker. Otherwise a cached read can be mistaken for faster initialization.

If initialization dominates and memory permits, a persistent worker is a candidate. Check idle memory and recovery after restarting that worker. If camera startup dominates instead, keeping the model resident will achieve little for the first result.

Reference material

ArmSoM CM7s hardware documentation

Rockchip RKNN-Toolkit2 and model conversion resources

Related ArmSoM guide

CM7s RK3588S NPU edge AI Raspberry Pi CM5

Explore ArmSoM CM7s