Process latency in T4240 custom board

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

Process latency in T4240 custom board

849 次查看
appalanaidug
Contributor II

Hello,

We are working on T4240 custom board.

We have run the following code, to check the time taken by process to excecute.

main()

{

while(1)

{

    time1=gettimeofday();

   printf("\r\n time :%ld",time1);

}

}

We have observed that the time stamp difference is about 300 ms in regular intervals.

We have checked the kernel scheduling policy between the multiple cores in T4240 and found that it is

"SCHED_OTHER"

 

Help is requested on the following points:

1. Is the difference in timestamp (of 300ms) due to scheduling of processes between multiple cores?

2. If the difference is due to policy "SCHED_OTHER", how to change the scheduling policy of the kernel to avoid delay in processing.

 

thanks in advance.

 

 

 

 

 

0 项奖励
回复
1 回复

815 次查看
bpe
NXP Employee
NXP Employee


There is no guarantee that a routine consisting of two adjacent system
calls always take the same time to complete. There can be multiple reasons
for that, not necessarily related to task scheduling. If you wish to know exactly
where the processor spends time, profile your code. If the question is rather
about how Linux scheduling works, you can find plenty of information in
Linux kernel generic documentation.

 

Best Regards,
Platon

0 项奖励
回复