MPSOC VCU性能提升
alvin.lu@avnet.com
2020.09.12
软件平台:
Vivado 2019.1
PetaLinux 2019.1
Ubuntu16.04.6真机
硬件平台:
ZCU106 (ZynqMP)
默认情况下,大部分的中断都默认绑定到cpu0,所以cpu0的符合比较大,为了提升对中断的响应速度,可以手动把一些中断绑定到cpu1 2 3上去.
By default, all interrupts are served by cpu0 so that dmaproxy is used in the most optimized way (mostly in multi-stream use cases). It is recommended that you distribute zynqmp-dma interrupts across all CPUs.
root@zcu106_vcu_trd:/proc/irq/13# echo 2 > /proc/irq/13/smp_affinity
Tips:
1.13 is the number of zynqmq-dma interrput number.Use echo 2 > /proc/irq/13/smp_affinity
to change interrput from cpu0 to cpu1.
2.Find the zynqmp-dma interrupt used by dmaproxy in cat /proc/interrupts.