How to choose between preempt-rt & non-preempt-rt linux kernel for an IoT application?

ε祈祈猫儿з 提交于 2019-12-08 06:24:32

问题


I am working on an IoT project for which I have to decide between linux kernel 4.8 preempt-rt or non-preempt-rt. Quickly running the Linux RT benchmarking test:

cd /usr/lib/rt-tests/ptest/rt_bmark.py

which essentially runs

cyclictest -S -p 99 -q -i 100 -d 20 -l 30000

led to the following results:

  1. For preempt-rt:

6:12:51: Cyclictest completed. Actual execution time:0:01:38 Min: 3 us Avg: 6.0 us Max: 61 us Max list: [12, 13, 15, 22, 22, 61] PASS

  1. For non-preempt-rt:

5:56:42: Cyclictest completed. Actual execution time:0:01:38 Min: 3 us Avg: 5.0 us Max: 2025 us Max list: [11, 16, 22, 46, 207, 2025] PASS

The results have clearly tempted me to use the prempt-rt kernel as there is an overwhelming difference in Max Latency between the two.

I wanted to know if this is a sufficient benchmark criteria to decide between the two? Thanks in Advance!

来源:https://stackoverflow.com/questions/40649490/how-to-choose-between-preempt-rt-non-preempt-rt-linux-kernel-for-an-iot-applic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!