wangtao13 commented on issue #19370: URL: https://github.com/apache/nuttx/issues/19370#issuecomment-4931109315
Thanks for sharing the scheduler internal, it really helps me understanding the Nuttx scheduling. I changed the `RR interval` to 20 mseconds (the HZ is 100), and I got a littler `better` result as follows, ``` Low task 1 count: 1743344 Low task 2 count: 1801614 Total operations: 3544958 ``` Then I configured the HZ to 1000 (1ms per tick), I got following result. ``` Low task 1 count: 1261959 Low task 2 count: 1204638 Total operations: 2466597 ``` The other RTOS has the HZ of 1000, and its result is as follows (and almost constant). ``` Low task 1 count: 1519473 Low task 2 count: 1519472 Total operations: 3038945 ``` Here comes several questions: 1. It seemed the overhead of 1000Hz is big, which causes the counting has 30% off than 100Hz, is it expected? 2. With the 1000Hz, it seemd that Nuttx scheduling performance is 80% of the other RTOS with the same 1000Hz. 3. Is there benchmark of Nuttx scheduler (and comparison with other RTOS, e.g. FreeRTOS, Zephyr, RT-Thread and etc)? 4. Is there any other right and precise way to test OS scheduler? Thanks, -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
