i.MX8MM GUI cause huge latency

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX8MM GUI cause huge latency

1,705 次查看
EthanSu
Contributor I

Hello,

       Platform info : i.mx8mm, ddr4 1Gb. linux 4.19 ,xenomai 3.1. bootcmd add isolcpus=2,3.

       We use fec directly to realtime communicate,  we got good prefermance without GUI. But  a GUI operating(like change QT tab) will cause a huge latency(200-300us).

       We have done many tests, finally there are two simple examples which may tell the issue distinctly.

       Two example have same calculating load, one data size is larger than l1, another is smaller than l1. It’s doing the calculation pre 1ms, printing avgerage time using and max time using pre 1sec. the one which has lager data size will caused huge latency by GUI operating, the small one will not be affected by GUI operating.   

       Zip file contained makefile and source code for the two example.

       Video files record two example, you’ll see the max_in_1sec will increase to 200-300us, and 130us is the regular result.   

 

0 项奖励
回复
4 回复数

1,698 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Ethan

 

reason may be insufficient  memory, one can try to test it on i.MX8M Mini EVK with

2GB memory using latest Linux 5.10.35_2.0.0

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 项奖励
回复

1,690 次查看
EthanSu
Contributor I

Hi Igo,      

       I have tested offical image on imx8mmevk board , and got the similar prefermance. The one with cachemiss cause huge latency by GUI operation, another one does not be affected by GUI operation. The two examples don't need massive memory, neither of them need more than 1MB. So I think it is not about insufficient  memory, but more tend to be the bus competition.

0 项奖励
回复

1,682 次查看
igorpadykov
NXP Employee
NXP Employee

for low latency applications may be recommended  Real-Time Edge Software

https://www.nxp.com/design/software/development-software/real-time-edge-software:REALTIME-EDGE-SOFTW...

 

Best regards
igor

0 项奖励
回复

1,676 次查看
EthanSu
Contributor I

Hi Igor,

    May be we have a misunderstanding here. Our application is based on realtime, but this issue is not about the schedule or timer. We are measuring a fix loading calculation time using. And the test is running on a core exclusively, but still be affected by GUI operation.   

0 项奖励
回复