DEV Community

Anguo
Anguo

Posted on Originally published at github.com

Pinning NPU cores on RK3588 buys you 5% — and costs the big model 10%

Follow-up to the rk-bench leaderboard (same RK3588, same frozen protocol: PERF_RUN hardware timing, per-layer CPU-fallback verdicts, median of 3 independent process sessions). v0.3.0 added a --core-mask option — rkbench run --core-mask 0_1 calls rknn_set_core_mask after load and records the setting in the report's protocol block, so a masked run can never be mistaken for a default one. Then I measured what core assignment actually does to the board's anchor models (all FP):

Model default core 0 only cores 0_1 cores all (0_1_2)
YOLOv8n 37.50 ms 37.52 ms 35.65 ms 35.62 ms
YOLO11n 43.67 ms 44.20 ms 42.51 ms 41.58 ms
YOLOv8s-seg 104.53 ms 114.55 ms 102.15 ms 100.62 ms

All runs stayed NPU_ONLY, and session spreads were tight (the one 107 ms outlier session inside the seg core-0 run is exactly why the protocol takes medians).

Three readings

Pinning to one core is free for small detectors and costly for the big one. YOLOv8n and YOLO11n don't notice a single core (within noise). YOLOv8s-seg gets 9.6% slower. If you pin cores to keep concurrent models out of each other's way, the largest model is the one that pays for it.

Two cores capture nearly everything. Going from cores 0_1 to all three adds 0.1–2.3% — for these single-stream graphs, the third core is mostly decoration.

The gain over default is real but small. all beats the runtime's default assignment by 3.7–5.0%. Interesting in itself — the default apparently does not spread one model's graph across all three cores — but keep the hierarchy straight: on this same board, INT8 quantization was a 1.4–2.0× lever (measured last time). Core assignment is what you tune after precision, not instead of it.

The practical rule

  • Multi-model deployment? Pin each model to its own core(s) for isolation — just never pin a heavy model to exactly one core and expect default performance.
  • Single-model latency chasing? --core-mask all is worth its ~5%, and now you can measure your own model under any mask with the setting recorded in the report.

The leaderboard itself is unchanged: its rows are all default-assignment numbers, and masked runs live in the study doc, not on the board — mixing the two would make every row quietly incomparable.

Full study: docs/CORE_MASK_STUDY.md in the repo (data source: data/leaderboard.json).

(Disclosure: rk-bench is my own project, Apache-2.0; every number reproduces from the repository.)

Top comments (0)