4 ms·
QNX has bounded latency. A standard test in the real time world is to hook a square wave generator up to an input that cause an interrupt, and run a program whi
by Animats 10y ago
QNX has bounded latency. A standard test in the real time world is to hook a square wave generator up to an input that cause an interrupt, and run a program which gets activated by the interrupt and turns on an output. You watch the input and output signals on an oscilloscope. If there are any outliers, it's not real time.
(A QNX rep once told me they'd had problems with x86 boards that did things in "system management mode", stealing CPU cycles from the real work and messing up the response time. They had a quiet blacklist of unacceptable embedded boards.)
Linux has a long history of long interrupt lockouts. It's gotten better.[1]
The phrase "95% real time" is used. Kernel drivers can lock out interrupts, so you have to watch for drivers that are not real-time qualified.
That's the trouble with doing real work in an interrupt handler. Usually you have to activate a thread after an interrupt anyway, so there's no overall performance gain in doing work at interrupt level.
[1] http://events.linuxfoundation.org/sites/events/files/slides/Real-Time-Linux-Comparison-Bridgers-ELC2015.pdf http://events.linuxfoundation.org/sites/events/files/slides/...
- jacquesm 10y ago> A QNX rep once told me they'd had problems with x86 boards that did things in "system management mode", stealing CPU cycles from the real work and messing up the response time. They had a quiet blacklist of unacceptable embedded boards. Ah, so that was the source of QNX informally suggesting we stick to certain brands of motherboards. I always wondered about that, since it seemed to work ok. I guess they didn't want to alienate those vendors outright so they chose to informally promote the ones they were sure were good. 95% real time is funny. It's real time or don't bother. I worked with and for the QNX dealership in NL long ago.
- Animats 10y agoYes. Some boards emulated a hard drive using flash, with BIOS code stealing cycles from the main CPU with code in system management mode. This caused what looked like random CPU stalls at the OS level.