Go to file
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
.github build(deps): bump github/super-linter from 6 to 7 2024-09-07 12:08:11 +08:00
arch arm64_syscall.c: Don't need to set register context during syscall 2024-09-10 23:23:21 +08:00
audio audio: migrate to SPDX identifier 2024-09-10 11:33:26 +08:00
binfmt binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
boards sim/alsa: update defconfig 2024-09-10 20:25:48 +08:00
cmake cmake: migrate to SPDX identifier 2024-09-10 11:34:40 +08:00
crypto nuttx/crypto: export Diffie-Hellman algorithm 2024-09-09 23:55:33 +08:00
Documentation doc: Add NuttX Simulation page from Confluence 2024-09-09 08:40:31 +08:00
drivers timers: add weak function up_timer_gettime() 2024-09-10 23:32:30 +08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs fs/inode: add reference to protect filelist of group 2024-09-10 15:16:19 +08:00
graphics graphics: migrate to SPDX identifier 2024-09-10 22:54:31 +08:00
include wdog: add API wd_cancel_irq() support 2024-09-10 23:32:30 +08:00
libs pthread/realtime: export interfaces about pthread ceiling priority 2024-09-10 01:26:31 +08:00
mm build: fix memory manager compile options for CMake 2024-09-10 16:00:56 +08:00
net net/udp: Fixed the issue of sending ICMP error when the destination address is broadcast/multicast. 2024-09-10 22:53:58 +08:00
openamp openamp: migrate to SPDX identifier 2024-09-10 22:54:05 +08:00
pass1 tools: migrate to SPDX identifier 2024-09-10 23:11:11 +08:00
sched wdog: optimize a bit speed in wd_start 2024-09-10 23:32:30 +08:00
syscall nuttx/syscall: delete getrandom in syscall.csv 2024-08-27 21:44:33 +08:00
tools tools: migrate to SPDX identifier 2024-09-10 23:11:11 +08:00
video build: add initial cmake build system 2023-07-08 13:50:48 +08:00
wireless nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
.asf.yaml
.gitignore .gitignore: Update .gitignore to include .aider* and fix newline issue 2024-09-10 16:22:02 +02:00
.pre-commit-config.yaml Created pre-commit config file 2024-08-19 21:40:56 +02:00
.yamllint
AUTHORS AUTHORS: add Tomek CEDRO to the list 2023-03-07 14:15:55 +01:00
CMakeLists.txt tools: migrate to SPDX identifier 2024-09-10 23:11:11 +08:00
CONTRIBUTING.md Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
INVIOLABLES.md
Kconfig make/disassembly: generate disassembly file 2024-08-16 15:22:25 +08:00
LICENSE libc/x86_64: port string functions from bionic 2024-07-02 23:59:18 +08:00
Makefile tools: migrate to SPDX identifier 2024-09-10 23:11:11 +08:00
NOTICE
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes Documentation: move ReleaseNotes 2023-09-26 20:41:00 +08:00

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.