LWN: Comments on "LCE: Realtime, present and future" https://lwn.net/Articles/524329/ This is a special feed containing comments posted to the individual LWN article titled "LCE: Realtime, present and future". en-us Fri, 12 Sep 2025 16:04:27 +0000 Fri, 12 Sep 2025 16:04:27 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Most systems also have no proof that a kernel panic won't occur. https://lwn.net/Articles/528592/ https://lwn.net/Articles/528592/ gmatht <div class="FormattedComment"> Even for a non-RT system there is usually no proof that a full system failure won't occur. E.g. Linux has no proof that a kernel panic won't occur. Systems that claim to conform to POSIX standards rarely have a proof of this. If some organisation can trace all the cases of system failure to hardware failures they may choose to trust claims made by software, including hard real time claims, without formal proof.<br> </div> Sun, 09 Dec 2012 07:41:50 +0000 Real time for what? https://lwn.net/Articles/526358/ https://lwn.net/Articles/526358/ mb <div class="FormattedComment"> <font class="QuotedText">&gt; doing so and posting benchamrk numbers showing latency doesn't matter</font><br> <p> Ehm what?<br> <p> <font class="QuotedText">&gt; what would matter is if there is anything showing that this makes a difference in the part being machined.</font><br> <p> If it would make a difference to the machined parts, either the previous RTAI based implementation or the new Linux-RT-preempt based implementation would be seriously broken.<br> <p> <font class="QuotedText">&gt; That page was big on the 'how to' but utterly lacking in the 'why go to this effort'</font><br> <p> We do this, because it simplifies the software a lot and gets rid of all those ugly RTAI kernel modules.<br> </div> Thu, 22 Nov 2012 13:35:24 +0000 Real time for what? https://lwn.net/Articles/526339/ https://lwn.net/Articles/526339/ mpr22 Naturally. There's a driving examiner in the front passenger seat; getting an accurate picture of someone's everyday driving in such conditions is more or less impossible. Thu, 22 Nov 2012 11:24:04 +0000 Real time for what? https://lwn.net/Articles/526338/ https://lwn.net/Articles/526338/ Otus <div class="FormattedComment"> <font class="QuotedText">&gt; Or the driving test is wildly insufficient to distinguish bad drivers.</font><br> <p> That's not the purpose of most driving tests. Usually the purpose is to see if someone is good enough that they'll learn the rest on their own without being too much of a danger to others.<br> <p> Realistically most people who pass a driving test are going to be bad drivers for a long while. (Unless they are testing for a license in another state/country and have already driven a lot.)<br> </div> Thu, 22 Nov 2012 11:17:01 +0000 Real time for what? https://lwn.net/Articles/526167/ https://lwn.net/Articles/526167/ ceswiedler <div class="FormattedComment"> Or the driving test is wildly insufficient to distinguish bad drivers.<br> </div> Wed, 21 Nov 2012 19:02:19 +0000 Real time for what? https://lwn.net/Articles/526024/ https://lwn.net/Articles/526024/ dlang <div class="FormattedComment"> doing so and posting benchamrk numbers showing latency doesn't matter, what would matter is if there is anything showing that this makes a difference in the part being machined.<br> <p> That page was big on the 'how to' but utterly lacking in the 'why go to this effort'<br> </div> Wed, 21 Nov 2012 09:40:26 +0000 Real time for what? https://lwn.net/Articles/526022/ https://lwn.net/Articles/526022/ mb <div class="FormattedComment"> There is a subproject for LinuxCNC Preempt-RT support:<br> <a href="http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Debian_Wheezy_Linux-Rt_Compile_LinuxCNC">http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Debian_Wheezy_Li...</a><br> </div> Wed, 21 Nov 2012 09:32:22 +0000 Real time for what? https://lwn.net/Articles/525711/ https://lwn.net/Articles/525711/ dashesy <div class="FormattedComment"> Actually I meant Data Acquisition (DAQ) with additional output channels.<br> </div> Mon, 19 Nov 2012 15:36:17 +0000 Real time for what? https://lwn.net/Articles/525664/ https://lwn.net/Articles/525664/ mathstuf <div class="FormattedComment"> I assume that "DAQ" is meant to be "DAW" (digital audio workstation)?<br> </div> Mon, 19 Nov 2012 03:20:37 +0000 Real time for what? https://lwn.net/Articles/525490/ https://lwn.net/Articles/525490/ Trelane <div class="FormattedComment"> NP. Glad you found it informative. :)<br> </div> Fri, 16 Nov 2012 21:07:59 +0000 Real time for what? https://lwn.net/Articles/525489/ https://lwn.net/Articles/525489/ jtc <div class="FormattedComment"> "At the Professional Hacker level or above:"<br> <p> Damn. I'm a "starving hacker". I'll have to upgrade once I find a job.<br> <p> Thanks for the info.<br> </div> Fri, 16 Nov 2012 21:06:09 +0000 Real time for what? https://lwn.net/Articles/525483/ https://lwn.net/Articles/525483/ Trelane <div class="FormattedComment"> <font class="QuotedText">&gt; I believe that as a subscriber you can disable advertisements.</font><br> <p> At the Professional Hacker level or above:<br> <a href="https://lwn.net/op/FAQ.lwn#subs">https://lwn.net/op/FAQ.lwn#subs</a><br> </div> Fri, 16 Nov 2012 19:12:23 +0000 Real time for what? https://lwn.net/Articles/525481/ https://lwn.net/Articles/525481/ dlang <div class="FormattedComment"> I believe that as a subscriber you can disable advertisements.<br> <p> LWN doesn't go after individual sponsors, they subscribe to an advertisement service that puts the ads in place based on their own criteria.<br> </div> Fri, 16 Nov 2012 18:40:31 +0000 Real time for what? https://lwn.net/Articles/525474/ https://lwn.net/Articles/525474/ jtc <div class="FormattedComment"> " The software running on your doctor's desktop PC could kill you if it displays the wrong notes and causes the doctor to prescribe the wrong medicine - yet this is not normally an application considered safety-critical where special software methods must be used to guarantee correctness."<br> <p> It's also requires neither a soft nor hard real-time kernel. :-)<br> <p> [On a complete tangent: Is anyone else getting completely sick of that constantly changing Perforce ad. that adorns the top and upper right side of almost every page on LWN. I find it quite distracting and have to move another window to cover the right side of the page each time I open a new lwn page, so that I don't have the ad. screaming at me all the time while I'm reading! They've been running this ad. for many weeks - it's about time the found a new sponsor. Argghh!]<br> <p> </div> Fri, 16 Nov 2012 18:29:38 +0000 Real time for what? https://lwn.net/Articles/525472/ https://lwn.net/Articles/525472/ jtc <div class="FormattedComment"> "what kind of applications require real time these days?"<br> <p> If Gleixner, when he quoted those download statistics ("About 30% of those went to European corporations, 25% to American corporations, 20% to Asian corporations, 5% to academic institutions"...), had also disclosed who those corporations were, this probably would give a good real-world answer to your question - or at least to the question: "What kinds of applications is the Linux realtime kernel being used or considered for these days?". Has he released this info? I suspect not - I suppose he's justifiably paranoid about being sued for breach of privacy or something like that.<br> <p> " Linux audio used to be mentioned often, but these days it appears that CONFIG_PREEMPT is enough; is it?"<br> <p> I can't answer that, but I will speculate that since music and MIDI recording and playback requires hard realtime capability, any companies considering using Linux for this would tend to favor the realtime kernel over the mainline kernel, since although the mainline kernel, perhaps, does fine x% of the time, the realtime kernel is likely (or certain, perhaps) to do fine y% of the time, where y% is significantly greater than x%.<br> <p> </div> Fri, 16 Nov 2012 18:20:07 +0000 LCE: Realtime, present and future https://lwn.net/Articles/525400/ https://lwn.net/Articles/525400/ dmk <div class="FormattedComment"> Try robotics, where you want to find out where your machine is located out of sensors (gyro, wheelticks). If you have a constant or small variance delay in the measurements, you can estimate it and compensate for it. but if you have high variance in the delay your position estimate will suffer.<br> </div> Fri, 16 Nov 2012 10:41:30 +0000 LCE: Realtime, present and future https://lwn.net/Articles/525258/ https://lwn.net/Articles/525258/ tglx <div class="FormattedComment"> I'm well aware that safety critical != hard real-time.<br> <p> Though hard real-time systems must be designed in a way that they guarantee not to ever miss a deadline, simply because missing a single deadline is considered a fatal full system failure. So how do you guarantee that by other means than by mathematical proof?<br> <p> <font class="QuotedText">&gt; And for a practical note: The theoretical upper boundary is not magnitudes higher than what you can measure in tests.</font><br> <p> None of those systems including Preempt-RT can specify their theoretical upper boundary, except in safe ranges which make them not at all different :)<br> <p> Thanks<br> tglx<br> <p> <p> </div> Thu, 15 Nov 2012 17:29:28 +0000 LCE: Realtime, present and future https://lwn.net/Articles/525178/ https://lwn.net/Articles/525178/ alejluther <div class="FormattedComment"> Thomas,<br> <p> That's a good point. But I talked about RTAI or RTLinux because the Xenomai reference. My experience is with RTLinux internals and the virtualization made there is just the simplest one, so you do not have isolation. You know there are today solutions based on full virtualization even with hardware help which, I guess, is a must for real full isolation.<br> <p> The good part of RTLinux technique (I think RTAI did not follow the rule of "keep simple" strictly) is you can use it with some microcontrollers which will not have support for hardware virtualization.<br> <p> Don't take me wrong. I think you are doing a fantastic job and with your mindset, maybe you prove me wrong in the future. I just wanted to point out the challenge (probably) needs another revolution regarding kernel design. By the way, the kernel modularity could be the starting point. <br> </div> Thu, 15 Nov 2012 13:24:50 +0000 LCE: Realtime, present and future https://lwn.net/Articles/525172/ https://lwn.net/Articles/525172/ simlo <div class="FormattedComment"> Everytime this discussion comes up I add a comment like this:<br> <p> Safety critical != hard real time<br> <p> Safety critical means that the system is certified and verified and maybe even mathematical proven to be correct. This implies small code and very often hard realtime.<br> <p> Hard real time means that there per design is an upper boundary to latency. But we all know that a system might not work as designed. Therefore a system can be hard real time by design but fail due to bugs.<br> <p> Thus by these definitions neither preempt realtime, RT-Linux nor Xenomia can be be safety critical but all can claim "hard real time" - but only if they have made sure that all code paths blocking scheduling of higher priority tasks and interrupts, have an upper boundary.<br> <p> And for a practical note: The theoretical upper boundary is not magnitudes higher than what you can measure in tests.<br> <p> <p> </div> Thu, 15 Nov 2012 13:00:19 +0000 Real time for what? https://lwn.net/Articles/525160/ https://lwn.net/Articles/525160/ epa <div class="FormattedComment"> Hmm, you're right. I would draw a distinction between the software running on the air traffic controller's desktop (which has often been Unix for decades now) and the microcontroller which controls the air intake to the engines. The former has fairly relaxed real-time requirements (the display has to update, but once a second might be acceptable) and I would call it 'soft safety-critical'. The software running on your doctor's desktop PC could kill you if it displays the wrong notes and causes the doctor to prescribe the wrong medicine - yet this is not normally an application considered safety-critical where special software methods must be used to guarantee correctness. By contrast, a failure of the jet engine microcontroller (assuming it has one, I am speculating) can cause instant disaster.<br> </div> Thu, 15 Nov 2012 11:34:10 +0000 LCE: Realtime, present and future https://lwn.net/Articles/525140/ https://lwn.net/Articles/525140/ tglx <p>Your assumption is, that Xenomai, RT-Linux and RTAI are fulfilling the requirements of hard real-time. I agree that the RTOS code base part of those is small, but it's complex enough that I have serious doubts about the ability to formally verify them.</p> <p>Aside of that all those systems are so interwoven with Linux itself, that you'll have a <b>real hard time</b> to prove that there is no undesired influence possible from the "idle task Linux" to the "safe RTOS". Just look at the obvious lack of fault isolation and explain me how that is fulfilling the requirements.</p> <p>While Preempt-RT might look more complex in the first place, I dare to claim that building an hybrid system, which fully relies on facilities of the "idle taks Linux" in all its glory without having full isolation in all aspects, is just introducing a different level of hard to understand and hard to verify complexity.</p> <p>As long as nobody can point me to real proof of why any of the above solutions is verifiably more real-timeish than Preempt-RT, I definitely stand to my word, that Preempt-RT will make those obsolete or already has done so at least partially.</p> <p>Thanks</p> <pre> tglx</pre> Thu, 15 Nov 2012 10:26:51 +0000 Real time for what? https://lwn.net/Articles/524928/ https://lwn.net/Articles/524928/ anselm <p> Some time ago I consulted for a leading machine tool manufacturer here in Germany for a day or two and, after my actual work was done, was invited to take a guided tour of the shop floor. I was surprised to find out that they had these huge CNC machines attached to Linux-based controllers. I asked the guy who was showing me around whether they were using real-time Linux, and the answer was no, the normal generic Linux kernel worked fine as far as they were concerned. Considering that they are selling these gadgets to clients all over the world, and that any failure would probably cost them dearly, that put things into perspective for me … </p> Wed, 14 Nov 2012 12:07:01 +0000 Real time for what? https://lwn.net/Articles/524923/ https://lwn.net/Articles/524923/ anselm <blockquote><em>I do think they will have to prove their safety far more rigorously than the average human driver, though.</em></blockquote> <p> I think a Turing-like test should suffice: If during a driving test, a driving license examiner cannot tell whether a computer or a person is driving the car, and it looks as if the entity in question ought to pass, then – if it was actually the computer driving – the setup is OK. </p> Wed, 14 Nov 2012 11:58:49 +0000 LCE: Realtime, present and future https://lwn.net/Articles/524867/ https://lwn.net/Articles/524867/ alejluther <div class="FormattedComment"> In another talk, Stephen Rostedt from Redhat explained the RT Preempt using his presentation from 2007 with updates in. Thomas Gleixner was there helping with explanations about how things have changed since 2007.<br> <p> At the end, there was a question to Thomas Gleixner "Do you consider RT Preempt will make other solutions like Xenomai obsolete?" <br> <p> "Yes, I do believe so" was the reply.<br> <p> The answer made me smile since it makes clear what is the mindset of people like Thomas: they love challenges whatever the complexity!<br> <p> I will not bet against him but moving the Fully-Preemptible Real-Time Linux kernel one step further means HARD real time. The main problems against is the kernel is too big and all we know bugs are out there. Xenomai and other solutions like RTLinux/RTAI are based on simplicity so bugs can be minimized. RTOS vs GPOS is all about determinism and RTOS can achieve this because the code is small enough for verification.<br> <p> RT Preemtp has brought some sort of revolution with design changes like IRQ threads. IMHO making the RT Preempt hard real time could just be achieved with another revolution which would make happy professor Andrew Tanenbaum (and Linus a bit grumpy). <br> </div> Wed, 14 Nov 2012 09:00:50 +0000 Real time for what? https://lwn.net/Articles/524767/ https://lwn.net/Articles/524767/ iarenaza <div class="FormattedComment"> I know of at least one Spanish company building protection, control and measurement equipment for electrical grids that use real time linux.<br> </div> Tue, 13 Nov 2012 23:01:49 +0000 Real time for what? https://lwn.net/Articles/524766/ https://lwn.net/Articles/524766/ dlang <div class="FormattedComment"> failing to shut off the plasma cutter has very little effect (other than possibly a small amount of damage to the piece being cut), if you go off the edge, the plasma isn't going to be sustained, if you leave the cutter in place, the plasma will eat a small amount around the location until the circuit can't be sustained any longer and the plasma will cut off.<br> <p> These things rely far less on precise timing than you think.<br> <p> Just about all of the DIY devices rely on stepper motors, which move a specific distance when pulsed, not normal motors run for a specific amount of time.<br> <p> If the pulses are late, things move a little slower. If there is enough momentum in the system, it's possible for that momentum to cause the equivalent of 'jumping a tooth on a gear' and being slightly out of position, the solution to this problem is to slow the machine down a bit.<br> <p> synchronization between different pieces is a matter of either moving one motor, then a different motor, then the first one again, or in setting up the movement for both motors and sending a 'move now' pulse. In either case, slight delays don't break anything.<br> </div> Tue, 13 Nov 2012 22:58:40 +0000 LCE: Realtime, present and future https://lwn.net/Articles/524763/ https://lwn.net/Articles/524763/ tdwebste <div class="FormattedComment"> CPU isolation looks useful particularly for safety certified linux-RT controllers. <br> IEC6150<br> <p> It would be very interesting to replace IEC61508 certified RTOS with linux-RT. <br> <p> <p> <br> <p> <p> </div> Tue, 13 Nov 2012 22:51:38 +0000 Real time for what? https://lwn.net/Articles/524762/ https://lwn.net/Articles/524762/ man_ls I was thinking more along the lines of plasma cutters or robots, also mentioned in the link: failing to switch off the plasma may have bad consequences. Or a cutting machine which needs precise synchronization between different pieces. But perhaps most of these machines are designed to be fail-safe. Tue, 13 Nov 2012 22:36:17 +0000 Real time for what? https://lwn.net/Articles/524752/ https://lwn.net/Articles/524752/ dlang <div class="FormattedComment"> <font class="QuotedText">&gt; Cool! Those look pretty critical to me: having catastrophic consequences if they fail -- at least causing damage to property, and probably to operators. </font><br> <p> I have built a CNC machine, so I have first-hand experience here.<br> <p> It depends how the system fails.<br> <p> If they fail by not scheduling for 100ms (or even 1s), there is probably no problem besides delaying the work.<br> <p> If they fail by sending the wrong commands out to the equipment, things can be worse.<br> <p> But these do not require real-time scheduling to operate.<br> </div> Tue, 13 Nov 2012 21:48:56 +0000 Real time for what? https://lwn.net/Articles/524737/ https://lwn.net/Articles/524737/ tbird20d <div class="FormattedComment"> At Sony we're using Linux realtime in digital cameras and camcorders, for control of hardware (things like autofocus).<br> </div> Tue, 13 Nov 2012 19:42:05 +0000 Real time for what? https://lwn.net/Articles/524698/ https://lwn.net/Articles/524698/ dashesy <div class="FormattedComment"> Well not if they are audited for a very narrow use case on dedicated long-life hardware, and fixed on a certain Kernel version without updates and with minimal applications (i.e. instruments).<br> <p> BTW, one more example I can add is DAQs.<br> </div> Tue, 13 Nov 2012 16:41:17 +0000 Real time for what? https://lwn.net/Articles/524692/ https://lwn.net/Articles/524692/ gregkh <div class="FormattedComment"> Hm, like MRI machines? Air traffic control systems? Airplane flight navigation? Coal fired power generators? Windmill controls? Yacht stabilizers? Spacecraft control systems? Laser welding robots? High-speed milling machines?<br> <p> I could go on and on. Linux is used for lots of things like this, and has been for years (something like over 85% of the US power production is controlled directly by Linux machines). A lot of these systems use the real-time patches, and others don't, but to think that Linux isn't being used in these type of situations is wrong.<br> </div> Tue, 13 Nov 2012 16:19:42 +0000 Real time for what? https://lwn.net/Articles/524684/ https://lwn.net/Articles/524684/ mpr22 <p>Heck, it'd probably have trouble in <a href="http://www.urbandictionary.com/define.php?term=Boston%20Left">Boston</a>, MA (which admittedly has one of the most European street layouts of any major city in the USA).</p> Tue, 13 Nov 2012 15:26:08 +0000 Real time for what? https://lwn.net/Articles/524683/ https://lwn.net/Articles/524683/ niner <div class="FormattedComment"> Well they could hardly do worse than human drivers... speaking as a cyclist who has to endure and survive them every day.<br> </div> Tue, 13 Nov 2012 15:23:04 +0000 Real time for what? https://lwn.net/Articles/524679/ https://lwn.net/Articles/524679/ rvfh <div class="FormattedComment"> Real test for machine is in difficult situations, where humans may 'feel' that something is not quite right...<br> Also, I am unsure these cars would work in Europe with crazy drivers and difficult-to-compute timings at some crossings.<br> <p> (disclaimer: I was born and have lived most of my life in Europe.)<br> </div> Tue, 13 Nov 2012 15:20:21 +0000 Real time for what? https://lwn.net/Articles/524674/ https://lwn.net/Articles/524674/ KSteffensen <div class="FormattedComment"> Let me qualify that. The first accident involving grave human injury and/or death. <br> <p> <p> I'm quite willing to believe that on the average these things are far more safe than human drivers since they so rarely have to text their girlfriends or fiddle with the radio or whatever. I do think they will have to prove their safety far more rigorously than the average human driver, though.<br> </div> Tue, 13 Nov 2012 15:02:19 +0000 Real time for what? https://lwn.net/Articles/524672/ https://lwn.net/Articles/524672/ hummassa <div class="FormattedComment"> Where have you been the last year? ;-)<br> <p> They already ran about 300,000 miles, with only two accidents: one, the autonomous driving system was offline (i.e., the car was being driven by the human driver) and two, the car was rear-ended. Apparently, they are safer than me (I usually go some 40,000 miles between minor crashes and scrapes, and I have some 400,000 miles total in twenty years of driving, with ten incidents).<br> </div> Tue, 13 Nov 2012 14:45:55 +0000 Real time for what? https://lwn.net/Articles/524671/ https://lwn.net/Articles/524671/ man_ls Cool! Those look pretty critical to me: having catastrophic consequences if they fail -- at least causing damage to property, and probably to operators. Tue, 13 Nov 2012 14:42:07 +0000 Real time for what? https://lwn.net/Articles/524669/ https://lwn.net/Articles/524669/ KSteffensen <div class="FormattedComment"> Cool! I did not know that. <br> <p> Next big hurdle will be the debate the first time one of these is involved in an accident.<br> <p> <p> </div> Tue, 13 Nov 2012 14:37:25 +0000 Real time for what? https://lwn.net/Articles/524666/ https://lwn.net/Articles/524666/ epa <div class="FormattedComment"> My guess would be systems which are real-time but not safety-critical. In principle, Linux is too complex for use in systems where a bug can cause deaths. In practice I daresay there will be those using it anyway.<br> </div> Tue, 13 Nov 2012 14:29:43 +0000