Part Number: PROCESSOR-SDK-AM57X
Hello,
Software: PROCESSOR-SDK-LINUX-RT-AM57X V04.03
Hardware: AM574X-IDK
I m measuring the overhead of context switch by lat_ctx which is mentioned on this page. The result show that it spends around 10~15us on context switch each time which is more than I expected. Is the number reasonable? If it is, do we have any ways to optimize the overhead? Like increasing CPU clock, or upgrade Linux version? Thanks for any comment.
root@am57xx-evm:~# uname -a Linux am57xx-evm 4.9.65-rt23-g7069a470d5 #2 SMP PREEMPT RT Mon Mar 26 12:04:24 EDT 2018 armv7l GNU/Linux
root@am57xx-evm:~# ./lat_ctx -s 0 processes 2 4 8 16 20 "size=0k ovr=6.05 2 10.13 4 13.85 8 14.26 16 14.16 20 13.68 root@am57xx-evm:~# ./lat_ctx -s 0 processes 2 4 8 16 20 "size=0k ovr=6.14 2 10.25 4 13.12 8 14.34 16 14.65 20 14.32 root@am57xx-evm:~# ./lat_ctx -s 0 processes 2 4 8 16 20 "size=0k ovr=6.24 2 10.08 4 12.83 8 13.90 16 14.02 20 13.94