nuttx-apps icon indicating copy to clipboard operation
nuttx-apps copied to clipboard

ostest RR scheduler testing

Open TaiJuWu opened this issue 2 years ago • 3 comments

I have a question about RR scheduler

https://github.com/apache/nuttx-apps/blob/d73e6412b7d8453b25c91f324c81d88f8abbcd51/testing/ostest/roundrobin.c#L227 The comment shows thread_1 and thread_2 should start and complete at about the same time. But I did not see any assert condition about it.

Is it needed to modify or it is correct? I try to add some assert to this problem at https://github.com/TaiJuWu/nuttx-apps/blob/30038063e2b9958202118d4b4c3724eec7069622/testing/ostest/roundrobin.c#L254 Im not sure it's useful and is this method great? If anyone can give me some suggestion, I will be very grateful.

TaiJuWu avatar Aug 22 '23 15:08 TaiJuWu

@TaiJuWu I think this could be a good idea! We need more people testing RR SCHED. Did you have chance to test RR with Tickeless mode?

acassis avatar Oct 18 '23 14:10 acassis

No. I just used nsh:smp as my default setting. I will try using tickless mode this weekend.

TaiJuWu avatar Oct 18 '23 20:10 TaiJuWu

@TaiJuWu I think this could be a good idea! We need more people testing RR SCHED. Did you have chance to test RR with Tickeless mode?

It also can work on qemu-armv8a:nsh_smp_tickless but why we need to use tickless mode? Actually, I can't image what condition will make this test fail....

TaiJuWu avatar Oct 20 '23 18:10 TaiJuWu