TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to use Linux as a quasi real time system

3 pointsby FrojoSover 6 years ago
I've heard, that e.g. SpaceX use Linux on many of their flight computers. For instance, what hardware and what software tweeks are used to allow sampling of sensor data with a fixed frequency?

3 comments

serenover 6 years ago
You can use Linux with the Preempt RT patch or Xenomai, which is using a kind of micro kernel in addition to the Linux Kernel. The downside is you have to rewrite your drivers for Xenomai.<p>I thought that the latter was better in terms of performance but the article below seems to affirm they are not that big. (but it is coming from the Preempt RT side)<p><a href="http:&#x2F;&#x2F;linuxgizmos.com&#x2F;real-time-linux-explained&#x2F;" rel="nofollow">http:&#x2F;&#x2F;linuxgizmos.com&#x2F;real-time-linux-explained&#x2F;</a>
PaulHouleover 6 years ago
The basic tweak is overprovisioning. If the computer is not busy it will get tasks done on time and not freeze up. If it has too much work to do in a time frame than it is not going to get it all done. The one thing it can really do differently is abort a task early when it is clear that that task can&#x27;t be done on time, but then you will get complaints from the people whose tasks are responsible from that task completing.
Jack000over 6 years ago
for PCs you can try the jitter measurement from linuxcnc <a href="http:&#x2F;&#x2F;wiki.linuxcnc.org&#x2F;cgi-bin&#x2F;wiki.pl?Latency-Test" rel="nofollow">http:&#x2F;&#x2F;wiki.linuxcnc.org&#x2F;cgi-bin&#x2F;wiki.pl?Latency-Test</a>