RT Linux 中的快速周期性任务

发布于 2024-08-16 16:50:00 字数 319 浏览 2 评论 0原文

RT Linux 执行(实时)周期性任务的最短间隔是多少?

我正在研究科学数据采集应用程序的硬件与软件解决方案。要求包括以大约 40kHz 的频率对生理过程进行实时反馈控制。有硬件解决方案(使用可编程 DSP 芯片),但我很好奇实时 Linux 任务是否可以处理整个问题。任务很简单:从 A/D 板读取样本,执行一些简单的算术并将样本写入 A/D 板。 RT Linux 能否以 40k 次/秒的速度调度此任务,或者这是一个不合理的速度?

如果我们可以在 CPU 上执行周期性任务,我们就可以编写不依赖硬件的应用程序。如果没有,我们将不得不使用混合 CPU/DSP 系统。显然,我希望是前者。

What is the shortest interval at which RT Linux can execute a (real-time) periodic task?

I'm investigating hardware vs. software solutions for a scientific data acquisition app. The requirements include real-time feedback control of physiological processes at approximately 40kHz. There are hardware solutions (using programable DSP chips), but I'm curious whether a real-time linux task could handle the entire problem. The task is simple: read a sample from the A/D board, perform some simple arithmetic and write a sample to the A/D board. Can RT Linux schedule this task 40k times/second or is that an unreasonable speed?

If we can perform the periodic task on the CPU, we can write the app without a hardware dependency. If not, we'll have to use a hybrid CPU/DSP system. Obviously, I'm hoping for the former.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三生一梦 2024-08-23 16:50:00

根据 http://www.ibm.com/developerworks /linux/library/l-real-time-linux/,即使是像样的处理器上的非 RT Linux 也可以提供平均 20μs 的计时器间隔,相当于 50kHz。同一篇文章提到,2.6 内核中的高分辨率定时器和一些 RT mods 可以提供 1μs 间隔,或 1000kHz。因此,我认为期望 RT 内核能够可靠地提供 40kHz 频率并不是不合理的。

According to http://www.ibm.com/developerworks/linux/library/l-real-time-linux/, even non-RT linux on a decent processor can deliver on-average 20μs timer interval, which corresponds to 50kHz. The same article mentions that high-resolution timers in 2.6 kernel w/ some RT mods can deliver 1μs intervals, or 1000kHz. So I don't think it is unreasonable to expect a RT kernel to be able to deliver 40kHz reliably.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文