nuttx/sched/wdog
ligd 7ff7f6ec21 wdog: optimize a bit speed in wd_start
After these wdog refactor:
We conducted a latency measurement using the rt-tests/cyclictest (commit cadd661) on an x86_64 NUC12 equipped with an i7-1255U processor and 16GB of LPDDR5 memory. The specific command used for this microbenchmark was cyclictest -q -l 100000 -h 30000, which is designed to assess the responsiveness of the cyclic timer.

The findings from our benchmark are summarized below, highlighting the minimum, median, and maximum latency values for each operating system tested:

Operating System	Minimum Latency (us)	Median Latency (us)	Maximum Latency (us)
Linux	            48	                    53	                410
PreemptRT	        6	                    57	                148
Xenomai	            53	                    53	                64
NuttX	            64	                    626	                1212
NuttX (refactor)	1	                    1	                3
In this table, "Min" indicates the shortest latency observed, "Median" represents the middle value of the latency distribution, and "Max" denotes the longest latency encountered.

The systems tested were as follows:

Linux: ACRN version 6.1.80 (commit f528146)
PreemptRT: Linux kernel 5.4.251 with the 5.4.254-rt85 patch applied
Xenomai: Linux kernel 5.4.251 patched with ipipe-core-5.4.239-x86-13
These results clearly demonstrate the varying performance of different operating systems in terms of timer latency, the refactored NuttX showing particularly low latency values.

Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-09-10 23:32:30 +08:00
..
CMakeLists.txt
Make.defs
wd_cancel.c wdog: add API wd_cancel_irq() support 2024-09-10 23:32:30 +08:00
wd_gettime.c sched/wdog: Refactor wdog module 2024-09-10 23:32:30 +08:00
wd_initialize.c sched/wdog: move g_wdtimernested to wd_start.c 2024-09-10 23:32:30 +08:00
wd_recover.c
wd_start.c wdog: optimize a bit speed in wd_start 2024-09-10 23:32:30 +08:00
wdog.h sched/wdog: move g_wdtimernested to wd_start.c 2024-09-10 23:32:30 +08:00