Slashdot Mirror


RT Linux Patches

sally bitter writes "Linux 2.6 kernel Real-Time? It is going to happen soon. Montavista developers submitted patches today to LKML to begin testing all the low latency task preempt and interrupt stuffs they're introducing."

170 comments

  1. Desktop Usage? by Anonymous Coward · · Score: 1, Interesting

    Will this affect desktop usage for the better?

    1. Re:Desktop Usage? by Anonymous Coward · · Score: 0

      Probably just as much as all the other kernel features that reportedly do to everyone else (OMG IT TOTALLY BLOWS WINDOZE OUT THE WATER NOW!!) but suspiciously make no difference when I try them, Like pre-empting.

    2. Re:Desktop Usage? by meowsqueak · · Score: 2, Informative

      Probably not - realtime operating systems are primarily for embedded systems, not desktop systems. Think 'if this task doesn't run in the next NN microseconds then [hundreds of people will die]/[millions of dollars will be lost]/[the software will crash]/[bad things will happen]/[etc]'...

    3. Re:Desktop Usage? by JVert · · Score: 2, Funny

      THAR IS BOMB ON COMPUTAR

      everyone stay calm, if the game drops below 55 frames per second this user will die. Or at least kill alot of people in a fit of rage.

    4. Re:Desktop Usage? by lphuberdeau · · Score: 1

      From the second paragraph of the article...

      Our objective is to enable the Linux 2.6 kernel to be usable for high-performance multi-media applications and for applications requiring very fast, task level reliable control functions.

      I don't know how long it will take until it's delivered in the default kernel and some applications actually use it, but it will sure be a good thing.

      --
      Qui ne va pas à la chasse n'a pas de gibier
      PHP Queb
    5. Re:Desktop Usage? by julesh · · Score: 1

      Kernel pre-empt is only really useful if you are doing something with your PC that is highly sensitive to latency. Example applications that benefit are real-time audio processing (taking sound in one sound card channel, processing it, then outputing it on another immediately), video capture with high frame rates, running a VOIP/ISDN exchange, or similar I/O intensive time-critical operations.

      For desktop use you're unlikely to notice much difference. Improved disk cacheing/swap management is a much more critical feature for this case.

  2. Benefits? by 0racle · · Score: 2, Interesting

    Would the benefits of this be just for embedded devices, or would more traditional uses also benefit from these changes?

    --
    "I use a Mac because I'm just better than you are."
    1. Re:Benefits? by CaptainFrito · · Score: 4, Informative

      There are a few non-embedded applications that would indeed benefit. Automated test and measurement is one that I can think of right off the bat. RT probably the last big advantage to VxWorks, so maybe now's a good time to dump your WindRiver stock.

    2. Re:Benefits? by iotaborg · · Score: 5, Interesting

      It is also very useful in science/engineering fields. At my lab, we use RTAI linux currently, and this allows us to acquire data from our systems in real time, giving us a reliable way to compare our data with time in our systems.

    3. Re:Benefits? by mdlbear · · Score: 5, Informative

      The main beneficiary of the low-latency patches will be multimedia -- audio and video demand consistent scheduling and minimal interference from interrupts. (That's why many audio workstations are still running on Windows 98.)

    4. Re:Benefits? by Nazadus · · Score: 5, Interesting

      My employer had to choose Windows over Linux becuase Linux lacked true realtime support. Windows doesn't either, however their is third party software and developing projects is (supposedly) easier with Windows. Our sales dudes also wanted to be able to say "We use Windows!"... We looked at Linux but Linux was just too slow. We are currently moving away from QNX 4.25 (yeah, I know... really old... we are even on the f patch... I finally convinced them to goto g for the server, so I could do backups.. otherwise cp would crash after 64k of files...). We currently build custom industrial robots, so we *have* to have real time or else things could suck. Although I think Linux is a while from where Tenasys InTime (our current third party software) level, it's nice to know people are still working on it... so Linux may become a chance in 8 or so years... when we want to move to another platform. I wonder if the medical field would be intersted in RT Linux... I don't know if they require some special stuff because of legallity or something though...

      --
      "Do or do not. There is no try." -- Master Yoda (Half man, half muppet)
    5. Re:Benefits? by Nazadus · · Score: 1

      I forgot to add, XP Embedded also allows you to cut stuff out. So the Linux being modular doesn't help very much in this case... (Aside from the monetary value)

      --
      "Do or do not. There is no try." -- Master Yoda (Half man, half muppet)
    6. Re:Benefits? by Samedi1971 · · Score: 4, Informative

      Commercial flight simulation.

      I work with quite a few (11) FAA level D flight simulators running linux with realtime patches. Realtime ability is a must in flight sims because glitches and slowdowns are not tolerated. A realtime or at least psuedo-realtime OS allows us to guarantee that the simulation processes will always have priority over non-essential tasks (even OS tasks that aren't necessary to the simulation).

    7. Re:Benefits? by grozzie2 · · Score: 4, Interesting
      hehe, 'not tolerated' is actually a considerable understatement. A Level D sim actually has to be run thru a validation sequence on a daily basis. That sequence must validate that the skew between display motion and platform motion is 100ms or less (its 200 ms for a Level C device). I cant remember offhand the skew allowed between control input and start of motion, but I belive it's also on the order of 'within 200ms of the response of the aircraft being simulated', with the aircraft values taken from in flight measurements. I've been in them a couple of times when the display/motion is out of wack, and it's really quite an awful experience, really the only time I've ever suffered from 'airsick'. 29 years of flying, an airpane has never made me sick, but the simulator has done it 3 times.

      I've flown a lot of sims over the years (annual recurrency for multiple types adds up to a lot of simulator time). I'm really curious now who's building them on linux, wondering if I've actually flown one of those.

    8. Re:Benefits? by bheading · · Score: 1

      I'd not call time on Windriver yet.

      Linux on embedded devices isn't 100% there yet. The kernel itself is absolutely fine, I've never had any problems with it, but it's the tools, libraries and APIs that surround it that are the issue. The large embedded Linux providers still use the standard GNU C libraries, which are huge (uClibc is out there, but the big players don't seem to be running with it yet). GCC is an incredible tool but it is designed for cross-platform portability first, rather than small code size. Threading on Linux isn't the best their is on all architectures - LinuxThreads is a nasty hack and has several significant drawbacks (NPTL should improve this but how long will it take to make that stable across the board? Other OSs have it today). The GNU debugger is a bit of a joke really at the best of times - again on x86 it's fine but on other architectures it's very unstable, very easy to make it dump core. The debugging data required by GDB and the data produced by GCC during compilation are in a constant state of flux. On embedded we don't want new whiz-bang features, we just need it to work.

      With VxWorks or other RTOSs such as Integrity or ThreadX, your RAM and flash (persistent) storage usage is much smaller as you've got way smaller binaries and a designed-in commitment to speed and small code size on small boxen. True, I much prefer developing on Linux, it's easier to port existing code to it, and your UNIX programmers can get to work straight away, but on VxWorks the basic OS stuff always behaves predictably and reliably.

      Horses for courses folks. Using GNU/Linux on embedded gives good results, and in some circumstances may get you to market faster, but with compromises on stability and code size.

    9. Re:Benefits? by vettemph · · Score: 1
      "I've been in them a couple of times when the display/motion is out of wack, and it's really quite an awful experience"

      You should never let your wack tank go below 25%.

      --
      The government which is strong enough to protect you from everything is strong enough to take everything from you.
    10. Re:Benefits? by Samedi1971 · · Score: 1

      CAE and NLX both produce linux-based sims. I think the first was certified in 2000, so if you've flown anything built since then, there's a chance it was powered by linux.

      As for the FAA spec, the latency validation is only run once per year, and we get 150ms on both level C and level D. From the point of control input we have 150ms to get a reaction from motion, visuals, and instruments. The motion must respond before the visual or simultaneously.

    11. Re:Benefits? by jasno · · Score: 1

      For the record, the default compiler for VxWorks/Tornado is GCC. As of 2 years ago, it was an outdated version as well. IIRC, the debugger is basically gdb as well. Sure, its probably got a few custom patches, but its more or less the standard version.

      I agree with the parent, having sold my WRS stock long ago. Years ago I remember having an argument with a manager at WRS about embedded linux. He laughed it off, swearing it wasn't going anywhere. Now they've seen the light and are trying to support embedded linux... go figure.

      --

      http://www.masturbateforpeace.com/
    12. Re:Benefits? by bheading · · Score: 1

      The default compiler for VxWorks these days is Diab, I think that has been the case for the past two years. I might add that it was GCC 2.95. Most of the modern Linux distros are shipping GCC 3.x.

      The current commercial Linux distros just can't generate compiled code that's as small as that when you use a purpose-built RTOS. The reasons for this are obvious; Linux and the GCC compiler set aren't designed for RTOS use. These problems may become less relevant as RAM and flash storage prices fall.

    13. Re:Benefits? by grozzie2 · · Score: 1
      As for the FAA spec, the latency validation is only run once per year, and we get 150ms on both level C and level D.

      FAA is somewhat more lax than Transport Canada in this regard. I haven't check recently, but I was looking at specs about 9 months ago as defined in the CARs. One of the requirements that really stuck in my mind, was that they require daily logs (hard copy) of the latency checks. there were a few other requirements in there that made is start to rethink the whole concept. We were comparing the costs of owning/operating our own, vs the current practise of sending folks out to somebody else for simulator sessions.

      A couple of our guys are engineers, and a few of us have been running a software development operation as well as flying for the last 10 years. We work almost exclusively in process control, so it's been a pet idea around the office for a long time to just start from scratch, build a sim, and certify it. At least once a year, normally right after 4 of us get back from a few days simming, we dig up the regs, and spend an evening over beers debating how much work it'll actually be.

    14. Re:Benefits? by Anonymous Coward · · Score: 0

      I've flown a lot of sims over the years (annual recurrency for multiple types adds up to a lot of simulator time). I'm really curious now who's building them on linux, wondering if I've actually flown one of those.

      Well, one of the LKML posters that has been testing Ingo Molnar's voluntary preempt patches has a raytheon.com (US defense contractor) address. Simulation seems like a likely application, as they would be using an RTOS for all of the critical systems.

    15. Re:Benefits? by jovlinger · · Score: 1

      Can your robots be hacked, like the register was reporting recently? (see the 32bit vs 8bit /. article for a link: many CDC machines are too underpowered to have any security built in)

    16. Re:Benefits? by Nazadus · · Score: 1

      Unfortunelty my employer isn't all that worried about seurity. If someone is trying to hack our robots, it's not going to be all that difficult to break things and the real benefit is nill. We plan on trying to limit some stuff, but I lack faith in my employers paranoia level and intelligence in security. It wouldn't surpise me if he isn't even following good secure programming... but he is great for learning things, his coding is shit when it comes to the real deal (I have yet to hear someone say his code is clean.... EVER). So, back on to the topic of security: I think we will dumb down Windows so they can't do much (such as access the start menu, no right-click / context menu on the desktop, etc) and I think we will through a hardware firewall (cheaper) infront of our mini-network, only allowing VPN and remote connecting in/out. Our robot code can only be compiled with a certain dongle / key, or so I'm told that will be the end result. Thusly your tow main fears (A) stupid/ignorant users and (b) network attacks are halted to a grind by blocking all but those ports. Obviously thier are some security issues with VPN (PPTP I think) and remote connection, and one would be foolish to believe they are completly secure, but this should get rid of a stupid IT Tech who thinks they can dork with the system... the IT Tech is what we fear more, they are *always* the ones braking the system more often than the users. Since we are going to Windows (From QNX) we have an even higher fear.

      --
      "Do or do not. There is no try." -- Master Yoda (Half man, half muppet)
  3. Real time? by Eudial · · Score: 4, Funny

    Does this mean i won't have to adjust my clock any more? ;)

    --
    GAAH! MY PRINTER IS ON FIRE!!! PUT IT OUT! PUT IT OUT!
    1. Re:Real time? by 3D+Monkey · · Score: 0

      Not if you were on surreal time to begin with..

    2. Re:Real time? by flok · · Score: 5, Informative

      For that, you should use NTP.

      --

      www.vanheusden.com - home of Multitail, HTTPing, CoffeeSaint, EntropyBroker, rsstail, bsod, listener, nagcon, nagi
    3. Re:Real time? by aonifer · · Score: 1

      I don't think his keyboard's really on fire.

    4. Re:Real time? by island_tux · · Score: 0

      What clock ? I don't see any clock in my console !!!

      --
      What Sig
  4. Good news, folks by drinkypoo · · Score: 3, Informative

    Combined with the ability to remove portions of the linux kernel that you aren't use, this is one more step toward world domination by Linux. Currently the same linux kernel can be used for everything from non-realtime embedded projects (typically implying a certain amount of horsepower, but these days, not an MMU!) up to NUMA-based multiprocessor workhorses. With Linux running (or capable of running) on many of the most powerful systems on the planet it is easy to forget about the other end of the spectrum which is no less important. This is a step necessary to get Linux into applications like engine management systems, besides the applications (like GPS) cited in the linked article.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    1. Re:Good news, folks by WillerZ · · Score: 5, Funny

      I, for one, don't like the idea of Linux running as the OS for my engine-management system.

      The first pile-up after they're introduced and slashdot'll be covered in "So that's what a beowulf cluster of Linux EMUs looks like".

      --
      I guess today is a passable day to die.
    2. Re:Good news, folks by drinkypoo · · Score: 2, Interesting

      If you're stripping out the parts of the kernel that you're not using and you're only running a single process or doing everything through drivers/modules, there's very little to go wrong. Linux's broad hardware support using the same source tree must be quite appealing to any developer, since their project can be "trivially" moved to basically any other processor that has enough power if they decide they want to switch. Your most highly-optimized code will probably always be written in assembler or in very very simple C that takes the hardware into account and uses few functions not defined in the program itself, focusing mostly on direct hardware access, but this will be a minimum of the project in general.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    3. Re:Good news, folks by WillerZ · · Score: 2, Insightful

      On a serious note, the design decisions for a general-purpose desktop/server OS are very different than for a safety-critical embedded system like an ECU. There is often no reason to have a pre-emptive multitasking OS in application-specific systems, as they only do one thing.

      There are embedded OSs for which every line of code has been checked and audited. I think that's a good thing where lives are at stake. For Linux to meet those requirements would require a massive slow-down to the development effort, which would reduce how useful it is as a desktop platform.

      Phil

      --
      I guess today is a passable day to die.
    4. Re:Good news, folks by sn0wflake · · Score: 0, Offtopic

      This is not a troll post. I don't think Linux will dominate the world as long as some games, like The Sims 2, doesn't work. Check out Transgaming for more information.

    5. Re:Good news, folks by WillerZ · · Score: 2, Insightful
      ...there's very little to go wrong.
      "very little" is more than I want to be going wrong in my car at 70MPH. Phil
      --
      I guess today is a passable day to die.
    6. Re:Good news, folks by jericho4.0 · · Score: 1
      (OT)

      What is this constant facination with the desktop? People switch to Linux when they get sick of Windows. Developers sometimes contribute to it. Linux gets better. What does it matter what % of the market linux holds?

      And most people who buy and use computers are not gamers (suprise!), although games do have a driving effect on linux development.

      --
      "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
    7. Re:Good news, folks by drinkypoo · · Score: 1

      The issue is that these things are getting more complicated all the time and eventually they're all going to end up using operating systems because the amount of power they use is only going up. The companies are kind enough to segregate your average car's functionality into several separate computer modules because they know that the world is a harsh place and they're cheaper to replace that way but in the interests of reducing the price of the car all of those computers are eventually going to be some tiny computers that read sensors and put data on a low-voltage or even fiberoptic bus (using fiber would be beneficial primarily for the electrical isolation provided, not because a higher level of bandwidth is needed) and all of it is going to go to a central computer which will handle all of the management functionality of the vehicle. It's only a matter of time, really. Wouldn't you rather that computer be running Linux than NT/Embedded?

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    8. Re:Good news, folks by drinkypoo · · Score: 1

      I agree that Linux cannot dominate without more attention being paid to gaming. However, I go a step further than you do, because I think it can't do it while you need special software to actually play the games. The games are going to have to be Linux native before it can really happen. I figure the way to get there is to use Linux on gaming platforms. Someone should really do a game console that runs Linux, uses OpenGL and SDL to do its output, and which has hardcore DRM, as much as I hate to say it, because if it doesn't people will never pay for a single damned game. We saw it happen to Dreamcast, and while that wasn't the only thing that killed it, it had to hurt. Piracy never really affected the Sega CD, which has no copy protection at all, because no one had CD burners.

      Anyway the Xbox is just a way to lock developers into the Microsoft world, because soon the games that you write on Xbox will be portable to Windows without any effort whatsoever, and the Windows games will be portable to Xbox without too much trouble either. That's going to be a strong lure for many developers, and the more power they get this way, the more developers they can browbeat into making games exclusively for their platforms.

      Now is the time for a Linux-based game console. If Infinium labs ends up self-destructing like I figure it will, maybe someone can buy their wreckage and use that hardware and their contacts to develop the platform, but I suspect it'll be hopelessly dated by the time any legal encumberance is gone, so an independent effort is called for.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    9. Re:Good news, folks by WillerZ · · Score: 3, Insightful

      Not necessarily. Those aren't the only two choices: Realtime Solaris and QNX RTOS are also possibilities. Even better, they could stop trying to add DVD players to my engine-management unit. I don't feel there's anything compelling missing from my current car, which has a number of separate systems and a fairly simple (so far as I can tell) EMU which co-ordinates their efforts,

      The linux (kernel.org) codebase is not really stable enough to meet the needs of embedded systems. If someone wants to build an embedded controller for a car they'll need a stable embedded OS for at least 9 months before they start production -- 6 months to write the software and testcases, and 3 months to test and debug at a minimum. During this time, there is no benefit to selecting linux -- you aren't getting the new features because you've frozen the kernel; however, there is a downside to selecting linux -- bugs which surface later (perhaps in the testing phase) will not be fixed in the form of a patch to your level.

      That suggests you need to buy your linux embedded from a commercial venture, to ensure it's supported. At which point, linux needs to be judged against the commercial competition; it will probably lose that battle because the commercial ones will be certified compliant to a myriad standards, and linux won't be. Certification is important to establish a chain-of-blame should anything go wrong.

      Phil

      --
      I guess today is a passable day to die.
    10. Re:Good news, folks by drinkypoo · · Score: 1
      While I recognize the validity of your points I do think Linux can be successful even given those considerations. I do not think it is impossible for someone to develop a certified realtime linux for which support costs money, provided they can get sufficient contracts to pay for certification testing. There is still a benefit in that most of the work has been done for them. At this point it's [mostly] bug fixes, testing, and more bug fixes, followed by more testing, et cetera ad infinitum.

      Each new kernel version can bring a new version of the product, with the upgrade coming well into the new kernel's life. Obviously it's not necessary to follow the Linux release schedule.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    11. Re:Good news, folks by WillerZ · · Score: 2, Insightful

      I agree. It would probably now be easier for a company with an existing RTOS which is massively out-of-date to dump that and fix-up linux, rather than develop their own product further. New entries to the market will still find it very difficult as the path to certification is painful if you haven't trodden it before.

      I hope this happens, as a lot of the work they would need to do to get certified would benefit desktop linux, particularly in the realm of hardcore POSIX conformance.

      Phil

      --
      I guess today is a passable day to die.
    12. Re:Good news, folks by sloanster · · Score: 1

      So are you saying that you're a luddite, or that you'd be more comfortable with something like ms windows? (gives a whole new meaning to "crash" and "blue screen of death" doesn't it?)

      Seriously, I can't think of any OS I'd trust more than linux for the really critical stuff.

    13. Re:Good news, folks by provolt · · Score: 2, Interesting

      Linux has been evaluated and certified for safety critical applications. LynuxWorks and Rockwell Collins worked together to certify a specific Linux kernel and distribution to
      DO-178B Level A certification.

      DO-178B is the standard for software on commerical aircraft. It's difficult and expensive to do, but it's required by the FAA. Level A is the highest level of certication. Level A certification is required for critcal components like the displays, fight controls and the auto-pilot.

      There really aren't any software certification standards that are more rigorous than DO-178B, and Linux already has been certified.

    14. Re:Good news, folks by ZorinLynx · · Score: 3, Funny

      >Piracy never really affected the Sega CD, which has >no copy protection at all, because no one had CD >burners.

      Piracy never really affected the Sega CD, because no one actually bought the thing. }:)

      -Z

    15. Re:Good news, folks by vaeder · · Score: 1

      Actually, something like this is happening:
      http://games.slashdot.org/article.pl?sid=04/10/06/ 140247

    16. Re:Good news, folks by raj2569 · · Score: 1

      hey,

      This is interesting, do you have any links to back this up ?

      raj

      --
      Sarovar.org Hosting for open source projects in Indi
    17. Re:Good news, folks by provolt · · Score: 2, Informative

      Yup. I must have entered in the HTML incorrectly when I posted originally.

      Here is the link I indended to include originally.

      Here is a recent press release about a Rockwell Collins Program that is going to use it.

      Here is a press release from when it was first announced.

    18. Re:Good news, folks by BostonPilot · · Score: 2, Informative

      Actually, I think you are a bit confused. LynxOS is NOT Linux. The company (LynuxWorks) sells two operating systems, their own hard-realtime OS (LynxOS) and also Linux. They tend to do a bait-and-switch thing: you bring them in to buy Linux and they try to talk you into using their LynxOS operating system instead. Depending on what you are doing, LynxOS can be a fine hard realtime OS. I just don't appreciate the whole bait-and-switch thing. As for DO178B, (I've worked on a DO178B avionics project) it is indeed very difficult to achieve level A certification. WindRiver's VxWorks is level A certifiable (which means if you give them a large percentage of a million dollars they will help you get your VxWorks implementation certified to level A). What you should realize about how DO-178B works for software, however, is that it is mostly about having a documented process for software development. You come up with a process, and then show through a paper trail that you have followed the process. You can sort of do it backwards by reverse-engineering the paperwork (which is what WindRiver tends to do) but that is perverting the aim - to improve software engineering quality by having and following a good process for developing software). In any case, DO-178B would be a difficult process for Linux. It's certainly not impossible, but it would be wildly expensive. DO-178B is not very compatible with a fast moving, ever changing development process. (In fact, it's pretty much designed to prevent just that!). Level-A certification is probably best left to the small dedicated RTOS market, but Level C might be possible for Linux if there was enough interest. Level D is for stuff like coffee pots and would probably be easy (but I don't remember the details for Level D, so I'm just talking out of my ass about it). The main DO-178B RTOS market is Enea's OSE (which we used), VxWorks, and now LynxOS. There are probably others that I'm not aware of, but it's a pretty small community of OSs.

    19. Re:Good news, folks by Anonymous Coward · · Score: 0

      As a Software Engineer working on the ECUs in the Auto industry (Electronic Control Units, an Engine Control Unit is a type of ECU), I can assure you that neither Linux nor Windows, or any other general-purpose operating system is ever used in an Engine Control Unit.

      Ever.

      It's all custom C code. Whether that is good or bad is another matter, its just that the job doesn't allow for general purpose OSes. Hell, most of the ECUs in the car don't even have 32bit cores. Most of the 30 or so (average number) ECUs run on simple 16bit or 8bit micros.

      To reply to another post, DVD player functionality is not part of the Engine Control Unit. It would be a separate ECU, probably not even on the main CAN network.

  5. Re:Frist Prost! by The+Clockwork+Troll · · Score: 5, Funny

    Your attempt was pre-empted by a higher priority post. I guess the RT patches work.

    --

    There are no karma whores, only moderation johns
  6. I wonder if it's true real-time by AaronW · · Score: 5, Interesting

    Where I work we did a project using Timesys Linux which implements true real-time support and has some really cool scheduler options. For example, with Timesys, you can, for example, guarantee that a task will get a minimum of 15.7ms execution time every 31ms. It even allows you to set priorities for interrupts, such that an interrupt can be scheduled at a lower priority than a user thread. And finally, they added support for priority inheritance to avoid the problem of priority inversion, which occurs when a low priority thread has acquired a semaphore and a high priority thread blocks on it.

    Not only can you reserve CPU bandwidth, but also network bandwidth. Of course it also has all the other standard features one would expect of a real-time OS.

    Sadly, Timesys has not applied their patches yet to the 2.6 kernel at this time.

    -Aaron

    --
    This post is encrypted twice with ROT-13. Documenting or attempting to crack this encryption is illegal.
    1. Re:I wonder if it's true real-time by AaronW · · Score: 2, Informative

      I hate to respond to my own post, but reading the article (what, someone rtfa) it seems that they did add priority inheritance to the kernel mutexes avoid priority inversion. For proper real-time support, hopefully they also made this available to user-space threads.

      -Aaron

      --
      This post is encrypted twice with ROT-13. Documenting or attempting to crack this encryption is illegal.
    2. Re:I wonder if it's true real-time by Thing+1 · · Score: 1
      with Timesys, you can, for example, guarantee that a task will get a minimum of 15.7ms execution time every 31ms.

      What if three tasks told the system "I need a minimum of 15.7ms execution time every 31ms."

      Would the third one get an error? (Well, the second should actually because after the first takes his chunk, there is only 15.3ms every 31ms.)

      Just wondering how robust it is...

      --
      I feel fantastic, and I'm still alive.
    3. Re:I wonder if it's true real-time by aardvarkjoe · · Score: 1
      What if three tasks told the system "I need a minimum of 15.7ms execution time every 31ms."
      I refuse to be impressed until it can give the time to all three.
      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
    4. Re:I wonder if it's true real-time by aminorex · · Score: 1

      No, they'd just get scheduled on multiple CPUs.

      --
      -I like my women like I like my tea: green-
    5. Re:I wonder if it's true real-time by kinema · · Score: 1

      Be aware that there has been some question weather or not Timesys is violoating the GPL. I don't have the links on me but if you search the LKML for "Timesys" you will find at least a couple of messages questioning their proprietary scheduler work. --adam

    6. Re:I wonder if it's true real-time by Samrobb · · Score: 3, Informative

      Not to be rude - but I'm pretty sure you're mistaken. I've been a developer at TimeSys for several years, and I've never heard anything of the sort mentioned by anyone here. Searching LKML via Google, I can't find anything that accuses TimeSys of violating the GPL, or anything remotetly simiilar to that.

      If you have something specific you want to point out, please do so.

      --
      "Great men are not always wise: neither do the aged understand judgement." Job 32:9
    7. Re:I wonder if it's true real-time by B1gP4P4Smurf · · Score: 2, Informative

      Be aware that there has been some question weather or not Timesys is violoating the GPL. I don't have the links on me but if you search the LKML for "Timesys" you will find at least a couple of messages questioning their proprietary scheduler work.

      This is BS. The Timesys people have posted lots of quality GPL'ed code to LKML. They have never been accused of violating the GPL by anyone credible.

      Troll.

    8. Re:I wonder if it's true real-time by Anonymous Coward · · Score: 0

      >> Would the third one get an error?

      Yes. A task asks if the OS can accept the scheduling request, when the system reaches capacity, you'd get an error back saying so.

  7. When will these be merged? by Adam+Avangelist · · Score: 2, Insightful

    Do you all think these will be merged and ready before 2.6.9 is released?

    1. Re:When will these be merged? by Anonymous Coward · · Score: 2, Insightful

      When it's tested, and works. And when Al Viro are done with
      his rants over the code.
      My bets are by 2.6.18, any takers ?

    2. Re:When will these be merged? by stor · · Score: 1

      Hehe I don't think so :)

      According to the announcement the patches cause failures during high load and low memory conditions. There are other known problems.

      These patches will require a lot of vetting before they're merged imnsho. They'll probably spend a few months in -mm in the very least.

      Cheers
      Stor

      --
      "Yeah well there's a lot of stuff that should be, but isn't"
  8. Re:what will LINUX look like in 2010? by BlackShirt · · Score: 1

    op. system that boots in a second (would be quite useful for a home user) :)

  9. Does RT == Better Synch? by flushtwice · · Score: 1, Interesting

    Will Flash animation files finally have audio and video synchronized? Of course I'm actually starting to believe they are all probably out of synch for stylistic reasons... Anyone else get that way too?

    1. Re:Does RT == Better Synch? by Anonymous Coward · · Score: 1, Informative

      Every video player out there can sync sound and video on linux. If they can do it just fine with today's kernel, why would flash be so special?

      Cleary it's sloppy programming on Macromedia's part.

  10. and by BlackShirt · · Score: 1

    RT LINUX will be used for what?

  11. RTAI Already Does this by Anonymous Coward · · Score: 0

    RTAI has provided hard real time support for the 2.6 kernel since may!

  12. gethrtime() ? by ScreamingSlave · · Score: 1

    Does this finally mean Linux will have something like Solaris' gethrtime()?

    1. Re:gethrtime() ? by David+M.+Andersen · · Score: 2, Informative

      Looks like it.

      This function is a non-portable RTLinux extension. gethrtime returns the time in nanoseconds since the system bootup. This time is never reset or adjusted. gethrtime always gives monotonically increasing values. hrtime_t is a 64-bit signed integer.

      The actual resolution of gethrtime is hardware-dependent. It is guaranteed to be better than 1 microsecond.

      Odd that RT Linux is the first hit in google actually.

    2. Re:gethrtime() ? by WillerZ · · Score: 1
      gethrtime returns the time in nanoseconds since the system bootup. This time is never reset or adjusted. gethrtime always gives monotonically increasing values. hrtime_t is a 64-bit signed integer.


      Thus limiting uptime to about 270 years. What's wrong with gettimeofday? Assuming this is a system call, the variation in the time required to execute the syscall will render the extra resolution worthless.

      Look at all the work it has to do: context switch (into kernel) + rdtsc + memory access (to get the original tsc value, unless they are counting time from power-on) + subtraction (unless they are counting time from power-on) + division (to scale from CPU ticks to nanoseconds) + context switch (out of kernel).

      Phil
      --
      I guess today is a passable day to die.
  13. Responsiveness by Guidlib · · Score: 0

    Fantastic news for the future of Linux's responsiveness. I can't wait to see things like X being improved significantly in terms of responsiveness because of this. It won't only benefit embedded systems.

    1. Re:Responsiveness by WillerZ · · Score: 2, Interesting

      Understand this:

      These and other real-time patches do not reduce the average time required to do a system-call on your system (they probably increase it slightly).

      Real-time priority only has an absolute meaning if you have a single-process system.

      What real-time means is that a process or thread with a real-time scheduler (SCHED_RR or SCHED_FIFO) and higher-priority than any other process/thread in the system will complete its work in the shortest possible time. You can use the POSIX real-time calls to eliminate multiprocessing: set the scheduler to SCHED_FIFO and the priority to max on every process in the system and bingo, batch processing.

      If you want your gnome or kde desktop to respond more rapidly, you probably need to make several processes real-time. The more real-time processes you have, the less real-time means -- if you set everything to realtime priority you're back to where you are now. Judicious use of SCHED_RR and balancing priorities might net you some improvement, but probably not enough to notice.

      There are possibly some benefits to making multimedia apps such as xine run real-time, but unless you have playback problems now you won't notice the difference.

      Phil

      --
      I guess today is a passable day to die.
    2. Re:Responsiveness by Anonymous Coward · · Score: 1, Interesting

      There's one very big field of use in using linux as audio platform. Previously Ingo Molnar's Voluntary Preemption patches and now also this RT linux stuff (which seems to partly build on top of the VP stuff) enable linux users to run audio applications with latencies down to the sub 1ms range.

      Threaded and nonthreaded IRQ handlers are available with Ingo's VP patches today. Average kernel latencies around 10 - 80us are possible today, too. No garantees made about the worst case though with VP, but in day to day use i seldom see a non preemptible critical section longer than 200-300us.

      And with the help of the realtime lsm which enables (certain) non root users to use the SCHED_FIFO scheduler class (and to mlock application memories), linux beats the sh*t out of ms windows and is easily on par with mac os x wrt to achievable latencies.

      Jackd and other linux audio apps are still a bit rough and sometimes a bit buggy, but stuff is really starting to stabilize and get really really useful.

      Man, i waited 10 years for linux to become my ultimate audio workstation OS and now it's finally happening. RT linux will only make it even better!

      P.S.:

      Check out the apps section on the JACK pages to see what's available today:

      http://jackit.sf.net/apps

    3. Re:Responsiveness by fireboy1919 · · Score: 1

      Sadly, while the apps are getting there (I especially like ardour), the hardware support isn't.

      You've got a choice of about 4 cards if you want to buy a multichannel (more than two channels) sound card for ALSA, and even then it's a pain to configure.

      It's happening...but only if you're willing to record everything in Windows first. :(

      --
      Mod me down and I will become more powerful than you can possibly imagine!
  14. What is Real Time exactly? by Elecore · · Score: 2, Interesting

    Can this be run on my Pentium4? What is it?

    1. Re:What is Real Time exactly? by 0x0d0a · · Score: 4, Informative

      Real time refers to a system where tasks completing by a certain deadline is more important than just about anything else. Real time systems are less efficient than non-real-time systems -- they trade efficient scheduling for bounded scheduling.

      This is generally split into hard real time and soft real time.

      In a hard real time system, if a task misses a deadline, the task has failed. You might as well not do it. This sort of thing is important for, say, control systems that determine what thrusters to fire when on the Space Shuttle.

      In a soft real time system, you have some penality if a task isn't finished by a certain time.

      One kind of real-time functionality that a system might provide (and Linux does and has for a while) is a "real time priority level". To simplify things a bit, when a process is marked as "real time", that process runs and every other process is ignored. This is important if that process has a task that *must* complete. As a negative side effect, it means that another task (which might only want a tiny bit of CPU time, just enough to keep copying a file from disk to disk) can't run at all and all the disk activity stops. As a result, the time required for all the work the system must do increases, and the system runs more slowly. However, the one process that *must* gets time continues to get it.

      It's not something that a desktop or server user is going to benefit much from.

    2. Re:What is Real Time exactly? by norkakn · · Score: 1

      You could, but you don't want to. RT is normally done in order, and the P4 would be pretty slow if you ripped out the OoOness of it.

    3. Re:What is Real Time exactly? by nathanh · · Score: 2, Informative
      Can this be run on my Pentium4? What is it?

      Real Time means that you can write a program that is guaranteed to get say 100 CPU cycles every second, without fail, no exceptions. You usually need Real Time OSs when you're writing things like factory robot controllers and other cool stuff like that.

      The downside of Real Time is that it can make the system less efficient overall (more time is spent idling the CPU while waiting for a realtime deadline). So for a desktop or a server, there usually isn't any need. For people building Tivos and high-end audio workstations, it might have more value.

      But it's not a simple checkbox. The software has to be written to use the realtime features. Think of this as an incredibly cool thing for the embedded Linux developers but absolutely nothing that you or I need to worry about. It's newsworthy because this is Linux encroaching on a lucrative market once dominated by QNX and VxWorks. Linux is well on track for World Domination in 2005! 8-)

  15. Time to be a troll by Anonymous Coward · · Score: 0, Troll
    Sorry to say that but, do you really want to use rtlinux? I mean, linux is not real time at all, it is too big (about 1Mb) and rtlinux is just a true RTOS running linux as it lowest priority thread. So, if you want to use some linux service, it is goint to be executed in the lowest priority level. At the end what you win?

    I will stand using a true RTOS link=www.rtmes.com .

    1. Re:Time to be a troll by deanj · · Score: 3, Interesting

      It completely depends on what they mean by "real-time', since it depends on a whole bunch of things.

      Personally, I'd be satisfied if they (or someone) semaphored everything at a low enough granularity to allow multiple processes in kernel context at the same time.

      Modcomp did that back in the late 80s or early 90s, and their real-time UNIX kicked ass (Real/ix). Too bad that company's not doing much with it now.

    2. Re:Time to be a troll by flithm · · Score: 5, Informative

      Sorry to say but, you don't really understand the concept of real time.

      First of all, an OS being RT has nothing to do with its size. It could be 18 terabytes, or 4 kilobytes and still qualify as real time, as long as it did a few things within certain thresholds.

      To be a simplistic about it as possible, the only thing a real time operating system needs to do is to emphatically guarantee that it will respond to interrupts within a pre-determined amount of time. Even this time isn't exactly important, obviously it should be small, but as long as the time constant is known and guaranteed it qualifies as a real time operating system.

      Real time linux is NOT "a true RTOS running linux as its lowest priority thread." That doesn't even make sense! You've obviously never done any kernel programming, or bothered to do any basic knowledge gathering on operating system design at all.

      Note that several companies/vendors/instutions have provided incarnations of real time linux in the past (and currently). They do this by modifying the kernel source to make sure program ISR's get called within a set threshold. For example FSMLab's RTLinux has a worst case response rate of 12 microseconds.

      Real time operating systems are not for everyone. Your system will be slower, but will feel more responsive. Strict server operating systems such as FreeBSD, and the Windows Server class OS's have a much higher ISR response rate. Windows Server is as high as 120 ms. This is done on purpose! They do it to get every bit of performance out of the server they can. Remember, more ISR calls means more interruptions in the CPU pipeline, and more instructions executed per second. On a pentium 4 with its huge pipeline, interrupts are disasterous to execution speed.

      Personally I welcome a real time freely available linux kernel. I wouldn't mind sacrificing a little speed for real time operation. If you've ever used a real time operating system, you know what I mean. It's a great experience. But having said that, most people probably won't want that. And that's fine... but having the option is great.

      Anyway... before you spout your mouth off and try to sound like you know what you're talking about... learn something first!

    3. Re:Time to be a troll by faragon · · Score: 0

      First of all, RTLinux doesn't mean "Linux having RTOS" but "some weird trick^H^H^H^H^H^H^H^H^H^H^H software that runs Linux on his spare time, able to comunicate with it". After this puntualization, it is fair to say that RTLinux it is useful for a wide spread of applications requiring not only real time response but also very short response time; i.e., on 10-20 us requeriments, RTLinux it is still better than VxWorks or LynxOS, as has a very thin harness. By the way, in the real world, these critical tasks are driven by little MCUs (8 or 16 bit ones), not by an powerful 32 bit system. For 32/64 bits systems, driven by a UNIX (or UNIX-like) RTOS (real time operating system), you should have enough with 50 us to 10ms respose times.

      Commercial UNIXes, as LynxOS, are able to give to you a table with a relation of response times for every aspect of the OS (scheduling, OS primitives, IRQ dispatching, etc.).


      From my point of view, Linux has two major handicaps:

      1) Archieve fully POSIX compliance in both process/thread identification/handling and inprocess signal routing (actually it is painful to migrate complex POSIX apps to Linux).

      2) True hard real time response archievement; after this goal, winning the "RTOS" label (and bringing joy to my heart; sorry for the subjective parenthesed comentary).

    4. Re:Time to be a troll by B1gP4P4Smurf · · Score: 2, Funny

      Personally, I'd be satisfied if they (or someone) semaphored everything at a low enough granularity to allow multiple processes in kernel context at the same time.

      RTFA. Or (god forbid) the code.

      Linux has allowed multiple processes in kernel context at the same time for ages. It's called SMP and/or CONFIG_PREEMPT.

    5. Re:Time to be a troll by 0x0d0a · · Score: 2, Insightful

      Your system will be slower, but will feel more responsive.

      You do not need a real time system to "feel more responsive". In most systems, kernel locks simly do not tie things up for anything approaching human-perceptable times.

      This stuff is important not for the server or the desktop, but things like control systems.

    6. Re:Time to be a troll by JKR · · Score: 2, Interesting
      Ahem.

      Real time linux is NOT "a true RTOS running linux as its lowest priority thread." That doesn't even make sense! You've obviously never done any kernel programming, or bothered to do any basic knowledge gathering on operating system design at all.

      Perhaps you might like to tell certain large Japanese A/V companies about that, since they do EXACTLY that (run Linux as a task under a uITRON RTOS). I think you maybe need to learn something, too.

      Jon.

    7. Re:Time to be a troll by Anonymous Coward · · Score: 0

      Real time linux is NOT "a true RTOS running linux as its lowest priority thread." That doesn't even make sense!

      Hmmmm... Actually, this is pretty much what RTAI does. The RTAI module actually replaces the interrupt calls, and becomes a micro-kernel. When it is safe to do so, it calls the linux kernel scheduler, which in turn calls the programs it is supposed to run.

      The RTAI module becomes the controlling micro-kernel until it is no longer needed, and re-registers the linux kernel interrupt handlers so the normal Linux kernel can now be the real kernel.

      I have done work with the RTAI kernel patches... this is how it works.

    8. Re:Time to be a troll by ClosedSource · · Score: 2, Insightful

      "They do this by modifying the kernel source to make sure program ISR's get called within a set threshold. For example FSMLab's RTLinux has a worst case response rate of 12 microseconds."

      Although you described real-time issues correctly in most of your post this paragraph implies something that is not true of real-time. Real-time is not about being fast, it's about being consistent.

      In the toughest real-time situation, the important thing would not be that the response rate is 12 microseconds vs. 12 msec, but that it is exactly 12 microseconds or 12 msec within the resolution of the system. (Obviously the system speed has to be fast enough to meet minimum timing requirements, but that's a speed issue, not a real-time one.)

      The easy test to determine if a particular system has hard real-time requirements is to ask yourself if speeding up the system will solve all the problems. If it does, it's simply a performance issue, if not, it's a real-time issue.

  16. O/T: Linux gaming by WillerZ · · Score: 0, Offtopic

    It may not be a troll, but it is off-topic.

    Continuing the same off-topic-topic, I have a question: Are there figures on the percentage of PCs used to play games? I get the feeling most of the companies pushing linux are pushing it for business use, which suggests that the business market is larger...

    Phil

    --
    I guess today is a passable day to die.
  17. Re:what will LINUX look like in 2010? by 0racle · · Score: 4, Funny

    Windows.

    --
    "I use a Mac because I'm just better than you are."
  18. What Real Time is and what you can do with it. by Anonymous Coward · · Score: 5, Informative

    Real time means that processes can have an absolute time where they have to be finished. Mainly, because that means they produce output, and that output is needed THEN, not 'later'. For example, an automatic flight manager in an airplane needs his data by time to adjust in time, and needs to run at least every once and then to check if everything goes well. If the 'system' has a lot of work to do and gives the automatic-pilot-process to little time, the plane WILL hit that mountain you're heading at. RealTimeOS's account for that and make sure certain processes are excecuted more often than others since they have an higher priority.

    For the more techies: this is not like priorities in non-rt-kernels where an higher priority results in more timeslices in the round robin algorithm, it means that it isn't interrupted until it reaches a certain 'done'-state. And if a process depends on an other process (radar automatic pilot relationship-like) that process will be run prior to the automatic pilot process, to assure the automatic pilot gets new data, and no old data or old/new mixed data.

    It is a nice addition to the linux kernel. Not very usefull for the every-day-workstation, but very usefull for the portability of it. A couple of whole new markets suddenly now have the possibility of choosing for linux. (unfortunately, those markets don't just 'switch', same reason as nasa using 8086's in their spaceshuttles)

    - waccolodian.blogspot.com

    1. Re:What Real Time is and what you can do with it. by Anonymous Coward · · Score: 0

      Would the realtime stuff benifit, say, digital music workstation?

      Like when your mixing music and are trying to cooridinate all the different apps so that the output will be in proper sync?

      Stuff like what the JACK plugin is suppose to accomplish.

      So could you run JACK at the realtime priority and make sure that there is very little, or at least a set amount/predictable of lantency?

      Seems it would be a boon for all those digital "disc" jockeys.

    2. Re:What Real Time is and what you can do with it. by faragon · · Score: 0

      For the more techies: this is not like priorities in non-rt-kernels where an higher priority results in more timeslices in the round robin algorithm, it means that it isn't interrupted until it reaches a certain 'done'-state. And if a process depends on an other process (radar automatic pilot relationship-like) that process will be run prior to the automatic pilot process, to assure the automatic pilot gets new data, and no old data or old/new mixed data.

      My "techie" friend, RTOSes have, if you wish, and usually as default, round robin scheduling policies. A RTOS, and by extension, any OS, doesn't cares about your application, his main target it is to comply with their white paper specification. Id est, if the vendor say that their RTOS have a list of N response times for N circumstances, it is your responsability to solve your problem with the RTOS as a tool. The main and only difference between a RTOS and a non RTOS is that a RTOS gives to you a list of acotated response times related to the OS responsability, don't care if the units are microseconds or years. Of course, as example, if you have to deal with servomechanisms you'll need, at least millisecond precission. The quantification of the time response for a RTOS is the variable that allow that you could say "this RTOS, as tool, will work with my software application to solve the requested engineering problem".

    3. Re:What Real Time is and what you can do with it. by Anonymous Coward · · Score: 0

      In particular, the summary seems to blur the idea. Realtime does not mean "low latency", it means "guaranteed latency." It's possible that a non-realtime system has lower latency, but not predictably. Sometimes that's more useful, sometimes not.

      If .1% of the time your system clock is 30 seconds late but otherwise it's really accurate, that's ok. If .1% of the time your artificial heart beats 30 seconds late but otherwise it's really accurate, that's bad.

    4. Re:What Real Time is and what you can do with it. by Tough+Love · · Score: 1

      "It is a nice addition to the linux kernel. Not very usefull for the every-day-workstation"

      Audio and video are realtime problems. Unless you have a realtime solution, you will never get rid of dropouts and stutters.

      --
      When all you have is a hammer, every problem starts to look like a thumb.
    5. Re:What Real Time is and what you can do with it. by B1gP4P4Smurf · · Score: 1

      Mod parent up! I wish more Linux developers understood this. You would be surprised how many apps still don't support ALSA properly because the developers insist on the old "cat file.wav > /dev/dsp" model. This is a neat trick but it ignores the realtime nature of audio.

  19. Re:Wait a sec by jericho4.0 · · Score: 1
    Well, we're either about to throw away 10 years of work to get a stable kernel, or you read it incorrectly.

    --
    "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
  20. Re:Wait a sec by Anonymous Coward · · Score: 0

    [Reuters] At 7:29PM on Saturday, October 8th, geneticists at the University of Southern California released evidence that shows conclusively that the world had officially created a better idiot, as per the idiom, codenamed "Project CodeDark". This news comes just hours after the second nationally-broadcast presidential debate, leading some to draw the obvious connection between the two. Film at 11.

  21. Re:Wait a sec by Code+Dark · · Score: 0

    I'm not saying that we'd throw away the kernel, but rather that if it updates itself there may be bugs in the patch itself.
    But I probably misread parts of it, too. Sorry for any confusion.

    --
    - Code Dark
  22. Re:what will LINUX look like in 2010? by Anonymous Coward · · Score: 0

    When my computer boots, it's mostly just the harddrive grinding. Unless the kernel can make my harddrive spin faster, I doubt you'll see much change in boot times.

  23. Compare this to Ingo Molnar's 'Voluntary Preempt' by Theovon · · Score: 1

    How does this patch set compare to Ingo's voluntary preempt patch set? Is one better than the other? Could they be combined in a useful way?

  24. Coming soon: SCO vs. Montavista by peloy · · Score: 1

    And of course, Montavista stole all this code from SCO since there is no other way Linux could have gotten real time capabilities that were already present in System V Unix. SCO to sue Montavista, film at eleven.

  25. they can dream by quelrods · · Score: 1, Insightful

    Linux is a monolithic kernel. To be an rtos you usually start with a microkernel: Qnx, VxWorks, Hurd. In order to turn linux into an rtos they would have to rework it from the ground up. In addition they would have to completely break backward compatability. A popular RTOS that can be consumed by the masses would be nice. It would allowing upgrading the OS without rebooting, guaranteed processor time, nearly instant booting, better security, better reliability, and tons more. All the patches appear to do is attempt to get linux to pre-emtively multitask correctly. This by no means will make linux a real time os.

    --
    :(){ :|:&};:
    1. Re:they can dream by Anonymous Coward · · Score: 0

      Linux already multitasks correctly (a hell of a lot better than certain other OSs I could mention).

      This is about giving guaranteed response and timeslots to realtime projects. The other things you mention have nothing to do with RT.

    2. Re:they can dream by drinkypoo · · Score: 4, Informative

      It would allowing upgrading the OS without rebooting, guaranteed processor time, nearly instant booting, better security, better reliability, and tons more.

      The only one of those that is a requirement for calling linux a genuine realtime OS is the guaranteed scheduling. However, you can already replace the kernel in memory with another kernel, linux has security models in the kernel these days, the boot time is pretty much dependent only on hardware initialization... If linux can get the scheduling to something people are willing to call realtime, that's pretty much the only thing missing.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    3. Re:they can dream by Anonymous Coward · · Score: 3, Informative
      To be an rtos you usually start with a microkernel

      No, you don't. In recent time that's been true, but that's generally because the big RTOSs are often used in by vendors who need five nines of availability as well. An air traffic management application not only has scheduling requirements, but it simply cannot crash either, and a microkernel is one design to help pursue that.

      A microkernel is not required. In some senses old time sharing systems were RTOSs because they guarenteed whoever paid X amount of money got Y amount of processor, throughput, etc. Those certainly weren't microkernels.

      I always worried that my filesystem may get starved by an aggresive real time process in an microkernel based RTOS, but in my experience that's never been an issue. I should look up some research on that one of these days.

      A popular RTOS that can be consumed by the masses would be nice.

      Define masses? For almost all definitions of that term QNX's desktop version (free as in beer) seems to fit the bill. For most others TRON (or is that Tron?) seems to be what you're after. Are there any "masses" that these two OS's don't meet?

      It would allowing upgrading the OS without rebooting, guaranteed processor time, nearly instant booting, better security, better reliability

      I think you're talking about a microkernel there, except for the guaranteed proc time. Everything else is one of the (debateable) advantages of the microkernel design.

      All the patches appear to do is attempt to get linux to pre-emtively multitask correctly.

      Actually, it's talking about kernel preemption, which isn't exactly pre-emptive multitasking in the usual sense of the term. When that audio demuxers says "give me the processor!" in an RTOS, then it gets the processor, even if it has to preempt the kernel.

      At heart RT is a schduling thing, mainly the processor scheduler. As the RT concept has matured, there has been a desire from ISV to see RT style scheduling of disk accesses, of bandwidth allocation, yadda yadda. These aren't needed to be a RTOS strictly speaking, but they are needed to be competitive. There have existed patches to make Linux a true, hard, RT kernel for quite a while, or to have "soft" RT as well. So, Linux being (at least, being capable of being) a RTOS is in some senses old news.

    4. Re:they can dream by AaronW · · Score: 2, Interesting

      I'm not sure I would call VxWorks a microkernel. In VxWorks, everything is in the same address space. There's basically no memory protection (unless you count the bastardized VxWorks AE). Think of VxWorks as the ultimate monolithic environment, where everything goes into the kernel.

      --
      This post is encrypted twice with ROT-13. Documenting or attempting to crack this encryption is illegal.
    5. Re:they can dream by Anonymous Coward · · Score: 0

      you can already replace the kernel in memory with another kernel

      I didn't know that. How?

    6. Re:they can dream by Anonymous Coward · · Score: 0

      "An air traffic management application not only has scheduling requirements, but it simply cannot crash either"

      Sometimes.

      (and yes, MS-Windows computers were involved)

    7. Re:they can dream by renoX · · Score: 1

      You're sure?

      AFAIK this isn't true.. Do you have links?

    8. Re:they can dream by drinkypoo · · Score: 1

      Sorry, there's so much mailing list crap on the web now that I can't find anything without remembering some better search terms, and compounding the problem is that it's a feature which was introduced several years ago. I remember saying "Gee, that's neat" and moving on because I had no use for it.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    9. Re:they can dream by Ayanami+Rei · · Score: 1

      http://www.xmission.com/~ebiederm/files/kexec/

      Apparently they have an experimental patch wherein you can boot a "panic" kernel if you get a kernel panic.
      Sounds like a neat idea -- configure your UP kernel as the panic kernel for emergency situations. The machine would "reboot" on it's own, much faster than if a watchdog triggered and cycled the power.

      --
      THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  26. Not a problem anymore by Kristoffer+Lunden · · Score: 1

    Since version 7 the audio and video has no synchronizing problems that I've seen, and that is on various boxes. It was a big problem with v6 though, maybe you want to try and upgrade? It has been available for months now...

    Another possible reason would be if you are using arts or esd. Sound daemons can mess up sync pretty badly, never ever got it to work properly with mplayer or flash as examples, so now I'm using dmix instead. Which, in turn, has other issues, the one that annoys me being that I have to stop playing all other sound sources before starting firefox if I want to hear sound in flash movies. And no, piping firefox via various translating programs alsa/arts/oss you name it, does not work. Usually that just makes everything crash. ;-)

    1. Re:Not a problem anymore by flushtwice · · Score: 1, Interesting
      Actually, I am using version 7 right now. Got it as soon as it was available in fact. I'm also using alsa sound since I upgraded to Mandrake 10. The OSS was just dropping out completely on me under 9.1.

      Most of the time I don't have too much trouble with it, but it doesn't synch up. Having seen a few of these files on someone else's computer, it's made it all the more obvious to me.

      Someone above you mentioned that it was Macromedia's fault, and that may be. With each release, the player seems to get a little better (at least they are watchable on sites like Newgrounds and Atom Films now), but the audio and video still don't line up quite right.

      Of course Judging from the mod slap I just got, I get the impression that RT Linux wouldn't be the right tool to solve audio synch problems in such cases...

  27. Mod parent up pls by WillerZ · · Score: 1

    Good question. Answer: it doesn't. Unless you're RedHat, Novell, IBM, or one of the other organisations with a commercial interest in it.

    The problem, as I see it, is that we need these guys on board because they plough a lot of resources into linux and that ultimately benefits us. Thus we need to pretend that the market-share of linux matters, while continuing to realise that it's a worthless metric.

    Phil

    --
    I guess today is a passable day to die.
  28. Re:Compare this to Ingo Molnar's 'Voluntary Preemp by B1gP4P4Smurf · · Score: 5, Informative

    This incorporates some aspects of Ingo's VP patches that are prerequisites for any kind of RT support the kernel. These include offloading all softirqs to ksoftirqd (normally softirqs run immediately unless the load gets too high in which case they hand off to koftirqd) and IRQ threading, which created a separate thread for each irq and offloads hardirqs (aka the "top half" of an interrupt handler) to that thread. If you stop here the latency is about as good as OSX.

    This is where the two approaches diverge. The VP approach uses normal kernel preemption, with the addition of scheduling points with optional lock break inside spinlocked code. But you still cannot preempt code that is holding a spinlock. This becomes the lower bound on latency.

    MontaVista goes even further, replacing spinlocks with priority inheriting mutexes, so you now can preempt code that would not be preemptible with VP.

    In practice VP gives better latency right now by about half. But as another poster pointed out this is probably due to debugging overhead and probably a few bugs, the VP approach has reached the limit while this is capable of improving worst case response times by a few more orders of magnitude. This is a great development.

  29. Re:Wait a sec by WillerZ · · Score: 0, Offtopic

    How did he get 0, Troll and not +4, Funny?

    Okay it might mislead newbs, but this is /., AOLers are gonna be confused enough anyway.

    Phil

    --
    I guess today is a passable day to die.
  30. Re:Compare this to Ingo Molnar's 'Voluntary Preemp by Theovon · · Score: 1

    Thank you very much for your informative explanation.

    Does OSX have this latency because of its semi-microkernel nature? Otherwise, what is it about OSX that makes it have relatively low latency?

    Given this new development, do you think Ingo will change tactics and adopt the new approach into what he is doing? Or are there any reasons why he shouldn't?

  31. MOD PARENT UP! by gokeln · · Score: 1

    Excellent commentary. Unfortunately, blocked by /. indentation scheme...

    --

    There's no time to stop for gas, we're already late.
    1. Re:MOD PARENT UP! by B1gP4P4Smurf · · Score: 1

      Not sure what you mean, it all looks fine on my machine.

  32. Re:Desktop Usage? Why not?! by faragon · · Score: 4, Interesting

    Actually, there are RTOS UNIXes running desktops. From three years ago, I'm used to run the Posix Desktop over LynxOS 3.0.1 (nowdays on 4.0.0), running gvim, emacs, xmame, and so on. The only missing thing was USB and sound card support (still not supported on v. 4.0.0). There is also XFree support, at least for LynxOS, but may be too for QNX et al.
    There are, of course, disavantatges, you can not archieve the same disk throughput on current RTOS compared to Linux or Windows. From my experience, both ethernet and IDE throughput it's far from being optimal on a RTOS (think about 60-80%). But that it is commonsense, if you want kick ass response times, you'll lose a bit of throughput and viceversa.
    There is other important points, usually, on RTOS the disk-cache has a fixed size, processes are limited to a relatively low number (usually 100 to 500), and many other limitations.

    The resume it's quite easy, if you want to have a RTOS you should be sure you have, at least:

    1) Preemptible kernel
    2) Inverted priority detection (to avoid thread stalls; this point it is not 100% solved on most commercial RTOS)
    3) Acotated resources
    3.1) Deterministic disk cache (usually fixed length on most -current- implementations)
    3.2) Limited process handling (that point may will be specially good for Linux and the O(1) scheduler, as other RTOS have poorest scheduling scheemes; could be amazing having thousands of threads without penalization... beating commercial RTOSes (!))

    (This thread it's amazing, but I'm tired; 2:30 am here, I have to leave without adding a more complete comment, sorry).

  33. RT is useful for data acquisition by vijayiyer · · Score: 1

    I have used Linux with the RTHAL patches for data acquisition at high data rates synchronized by an external clock. A specialized application, yes, but useful nevertheless. Having this functionality completely rolled into the kernel will be nice.

  34. Soft real-time Vs Hard real-time by WillerZ · · Score: 5, Informative

    There are two types of real-time, soft and hard. This is how you distinguish the two:

    Hard real-time says "Do this within the next ## seconds or you might as well not bother as we'll all be dead". Soft real-time says "Do this within the next ## milliseconds if you can, otherwise the sound on the DVD playback might skip".

    The parent is talking about hard real-time scheduling, which is what these patches help with. Hard real-time has sharp deadlines, enormous penalties for missing a deadline, and (relatively) long periods between deadlines. Of course, there are short-deadline hard real-time systems, like ABS controllers in cars; however these tasks will usually be handled by dedicated hardware.

    Soft real-time is a more interesting topic for desktop Linux, because you aren't usually in a situation where your desktop machine can kill you by inaction. Soft real-time has fuzzy deadlines, small or no penalties for missing deadlines, and (relatively) short periods between deadlines. DVD playback is a good example: if a frame is delayed by a small amount or even skipped entirely the viewer is unlikely to notice provided it doesn't happen too often. Same for games.

    Phil

    --
    I guess today is a passable day to die.
    1. Re:Soft real-time Vs Hard real-time by B1gP4P4Smurf · · Score: 1

      There are two types of real-time, soft and hard. This is how you distinguish the two:

      Hard real-time says "Do this within the next ## seconds or you might as well not bother as we'll all be dead". Soft real-time says "Do this within the next ## milliseconds if you can, otherwise the sound on the DVD playback might skip".


      There is actually a significant and interesting grey area in between. Operating the control rods in a nuclear plant would clearly be hard realtime. Desktop audio playback imposes a soft realtime constraint (because there will be gaps if you dont keep up). But what about the Mt. St. Helens example mentioned in the article? Or, what about audio playback/mixing where you are connected to a sound system loud enough that a pop or a click would damage people's hearing?

    2. Re:Soft real-time Vs Hard real-time by TheLink · · Score: 1

      Well if I'm _recording_ something live, skips and delays = lost data.

      You can't always repeat the event to do another recording.

      --
    3. Re:Soft real-time Vs Hard real-time by WillerZ · · Score: 1

      If you have a situation where the stakes are high, no hard real-time system can guarantee to keep up, and the statistical assurance of soft real-time systems is not good enough; then you need to find another solution, probably not one involving an O/S: custom hardware, custom software "on the metal", or not using a computer.

      Modern hard real-time systems can guarantee responses in scales of milliseconds, and modern soft real-time systems need to be measured in microseconds. The gap is still there, but the odds are that very few real-world tasks are in there...

      Phil

      --
      I guess today is a passable day to die.
  35. Real-time support for 2.6 by jd · · Score: 5, Informative
    I believe RTAI were the first to produce real-time support for 2.6. Last time I looked, there was some problem with using preempt with RTAI, and it didn't like module versioning. These may have been fixed by now, though.


    Timesys were next. I used Timesys at the last place I worked - it's good, but it's also inconvenient. They only seem to provide pre-patched kernels, and there's quite a bit of support stuff that's not GPL.


    RT-Linux uses a similar technique to RTAI, to achieve real-time. There is a questionable software patent on the precise technique they use, which is (in theory) to prevent non-FOSS companies from obstructing real-time Linux work. It's unclear as to whether the patent could be used by hostile companies as "proof" of the IP "dangers" of Linux and FOSS in general, but there's always that risk. The problem with minefields is that they don't care who steps in them.


    For those using older kernels, and only requiring "soft" real-time, then the real-time scheduler patch on Sourceforge might be sufficient.


    That brings me to my other point. "Real-time" is a gradation, not a binary state. True "hard" real-time is extremely difficult to achieve, as it must be impossible to block any kernel thread or any interrupt. Your clock device also needs to be stable. The more exacting your requirements, the less you can afford to have even the smallest amount of drift.


    The 2.6 preempt work, from what I understand, covers the bulk of the kernel but is not absolute. In other words, some things are simply going to block, like it or not, and that in turn means that you cannot absolutely guarantee a process a controlled time-slice.


    For most real-time stuff (eg: basic multimedia stuff, etc) you don't need anything like as fancy as "hard" real-time. You simply aren't going to notice if a DVD is skewed by a couple of milliseconds - or even a couple of seconds - over a playing time of maybe 1-3 hours.


    For that kind of stuff, "soft" real-time is certainly adequate. It smoothes things out to the level any person is likely to care about, but doesn't go much further.


    Now, if you're in charge of a nuclear reactor or are designing the fly-by-wire systems for a Mach 10 aircraft, then any blocking is probably going to be unacceptable. (On the other hand, if you're in charge of a system like that, what are you doing reading Slashdot? Hey, what's that blinking red light, over your left shoulder? Uh-oh...)


    There are patches for Linux, which give it nanosecond granularity. I don't know of any real-time patches which can make use of this level of precision, but there may well be projects where you really do require accuracy at that level. (Again, though, DVD playing is probably not one of them.)


    It's great to see RT-Linux enter the 2.6 series, but it really isn't the first. That should not detract from users, though, because (frankly) who cares? If you're an admin or a user, you're concerned with whether it works, and the RT-Linux folks certainly know what they're doing.


    Linux is progressing nicely in many of the top areas of high-end computing. Clustering, real-time, pre-empt, journalling filesystems, high availability, distributed shared memory, LVM, gigabit and ten gigabit ethernet, network QoS, nanosecond precision, etc. On the other hand, M:N threads seem to be dead, OpenMP is restricted to commercial software for Linux and many of those areas which are, in some way, being developed are disjoint and don't always work well together.


    In other words, there is (as always) room for improvement, but what there is is certainly extremely impressive. Linux is rapidly developing a solid reputation in the high-end markets, and deservedly so. I look forward to seeing what happens next.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:Real-time support for 2.6 by wolftone · · Score: 1
      If you're an admin or a user, you're concerned with whether it works, and the RT-Linux folks certainly know what they're doing.

      So what if I'm I'm a user who wants to use RT-Linux for audio work, but don't have the time and/or energy to roll my own kernel (which I still haven't figured out how to do without panics)? I don't want this to sound confrontational, as I'm interested in overcoming this problem.

  36. Medical and aviation already using Linux by r00t · · Score: 1

    Dude, Linux scans your brain!

    There are indeed legal issues, but they are
    solvable. The FAA now lets Linux do everything
    except operate the controls. The FDA is OK with
    various X-ray things made by Siemens Medical.

    I suspect your Windows RT provider is in violation
    of the RT Linux patent. What will you do if they
    get sued by TimeSys and discontinue the product?
    You'd be much safer using Linux. At least then,
    your code would stay portable. You wouldn't need
    to worry about losing your ability to ship product
    so much -- worst case, you choose another one of
    the many UNIX-like systems. For Linux alone you
    can choose: TimeSys RT Linux, RTAI, Montevista's
    Hard Hat Linux, Concurrent's Red Hawk Linux, and
    of course roll-your-own Linux.

    1. Re:Medical and aviation already using Linux by Nazadus · · Score: 2, Interesting

      Could you give some quantifiable reasons why you think Tenasys is in violation of the RT Linux patent?

      --
      "Do or do not. There is no try." -- Master Yoda (Half man, half muppet)
    2. Re:Medical and aviation already using Linux by Voivod · · Score: 1

      I suspect your Windows RT provider is in violation of the RT Linux patent.

      FSMLabs, Inc owns the RT Linux patent. Timesys has unrelated technology based on patching the stock kernel, similar to what Montevista does but not as good.

    3. Re:Medical and aviation already using Linux by r00t · · Score: 1

      First, excuse me, it's FSM Labs that owns
      the patent. TimeSys does other stuff. Sorry.

      The patent covers running a regular OS as
      the low-priority task of an RT OS. Either
      your Windows RT provider does that (some do)
      and you're in violation, or your Windows RT
      provider does do that and doesn't work right.

      Pigs will fly, given sufficient thrust, and
      the RT Linux patent is the thruster you need.
      Windows alone is not even close to being an RT OS.

      The whole point of the RT Linux patent was to
      block Windows from using the technique, so you
      certainly can consider the legal problems real.

    4. Re:Medical and aviation already using Linux by Nazadus · · Score: 1

      I believe the way Tenasys works is that they use a driver that hogs *all* the process, and lets Windows run when it has some spare CPU to give back to Windows. This effectivly allows you (a) to hurt yourself through stupid programming (as any RT programmer will tell you..) and (b) to aquire real time programming without the chance of thinking sucking. This is becuase Windows can't really be trusted as a "low priority" and the other proeccess set to "real time priority" becuase Windows sets itself to be higher. So I think in this instance, they are safe from the patent. How ironic, the reason Windows sucks (in the RT field) is the reason Tenasys is saved. Humor anyone? :-)

      --
      "Do or do not. There is no try." -- Master Yoda (Half man, half muppet)
    5. Re:Medical and aviation already using Linux by r00t · · Score: 1

      That looks like the patent to me.

      The "driver" is the RT kernel. It's a Windows
      driver, but not a normal one. It must load as
      a driver to get the required hardware access.
      (just like VmWare pretends to be a driver)

      This "driver", really an RT kernel, is trusted
      to run tasks with proper priority. Windows itself
      gets the lowest priority.

      I think you'd best plan for what to do when a
      lawsuit comes along. Note that, since this is
      a patent, a mere user (you) would be in trouble.
      If FSM Labs wanted to be jerks, they'd sue you.
      It's must more likely they'd just put Tenasys
      out of business though, for PR reasons.

  37. Re:Compare this to Ingo Molnar's 'Voluntary Preemp by B1gP4P4Smurf · · Score: 3, Informative

    Does OSX have this latency because of its semi-microkernel nature? Otherwise, what is it about OSX that makes it have relatively low latency?

    From reading the I/O Kit docs (the driver writers guide for OSX, google for it) it looks like OSX does it the same way as Linux with Ingo's patches, they have a preemptible kernel and a realtime scheduling class for multimedia apps, and IRQs appear to be threaded, though the exact mechanism is unclear. The Mach ancestry helps in other areas, Mach ports on OSX are allegedly are a faster IPC mechanism than even Linux FIFOs.

  38. Re:Frist Prost! by Chris_Mir · · Score: 1

    Seems your 'r' is also pre-empted and echo-ing as a side effect.

  39. So what is the verdict? by Anonymous Coward · · Score: 0

    Lots of background noise but nothing specific.

    So if someone can sumarize:

    Are there any benefits for the senior noob who can patch and compile the kernel with the RT features.

    What is the latest verdict with preemption (and how would the RT patch play along with it)? To enable or disable... it was never settled.

    http://kerneltrap.org/node/view/3966

    http://kerneltrap.org/node/view/2702

    1. Re:So what is the verdict? by 0x0d0a · · Score: 4, Insightful

      Are there any benefits for the senior noob who can patch and compile the kernel with the RT features.

      No. Real time functionality is not just "better latency". Real time stuff is generally significantly less efficient than traditional schedulers. It's useful for specialized work -- this is not "better desktop" or "better server" for anything approaching the typical Linux end user.

      If you're doing control work with Linux, then you might be interested.

  40. Re:what will LINUX look like in 2010? by Anonymous Coward · · Score: 0

    Windows 2015 that is!

  41. Mod parent down, -1 troll/-1 clueless by WillerZ · · Score: 1

    So a blue-screen is worse than a panic now?

    There are operating systems other than Windows, Linux, *BSD, Unix, MacOS, OS X, OS/390 and z/OS which are far better suited to running the software which controls my car than any of the aforementioned.

    This is because an OS designed from the ground up for real-time, safety-critical tasks will always beat an OS designed for running word processors, compilers, business applications, games, or multimedia editing software when it comes to controlling my car.

    Phil

    --
    I guess today is a passable day to die.
  42. What is the name? by Anonymous Coward · · Score: 0
    When we say Linux then we are saying GNU/RT-Linux.

    open4free ©

  43. Re: RT-Linux for my Athlon64 FX-55 (= 2.4GHz) by Anonymous Coward · · Score: 0
    /* periodically switch the context each 10 us */
    #define HZ 100000
    ...
    It's for build a missile that shoots to the target in 23.73 miliseconds exactly, with a precission-error of 0.18 milimeters.

    open4free ©

  44. Embedded or not embedded? by kinema · · Score: 1

    What does embedded mean anymore? It's hard to define. An MCU in a microwave is defintly embedded but what about the processor in a new high end digial oscilliscope? IMHO test and measurement would usually be considered embedded, it is deffinitly real-time. If a scope doesn't acuratly record/display the data it is monitoring acuratly as a function of time then it is useless.

    1. Re:Embedded or not embedded? by CaptainFrito · · Score: 1

      I was speaking more of automated test systems where multiple intruments are coordinated using an external controller.

  45. Damn, I miss working there... by cduffy · · Score: 0, Offtopic

    ...though I don't miss the Bay Area at all.

    [Abridged version: I took a two-week vacation to Austin TX, and never got around to going back. The "oh, hey, I'm a remote employee now" bit was, entirely understandably, not well-received]

    MontaVista's engineering department is absolutely the best place I've ever had the privilege of working. Really, really good people; clueful management (though I hear they've lost their VP of Engineering since I left -- that's a shame; I still haven't had a better manager); lots of opportunities to learn and do new things and come up with (and follow through on) R&D projects.

    Not that my new job sucks, by any means -- I'm now the (pretty much only) systems-level generalist at a Java shop making a next-generation EMR system -- but it's not quite the same as spending ones' days hacking and debugging C (and Python, for some internal tools) surrounded by folks doing the same.

    1. Re:Damn, I miss working there... by Anonymous Coward · · Score: 0

      wtf are the moderators doing!?!
      Mod this post, err.. the parent post, down

  46. RTLinux vs RT Linux confusion by Voivod · · Score: 3, Informative

    I wish they'd use a different name for this. The product "RTLinux" already exists, and it's not related at all to what Montevista is doing. It's the microkernel based "run Linux as a thread" approach taken by Victor Yodaiken at FSMLabs. According to this article it was first released in 1995, predating the existence RTAI and Montavista by many years.

  47. Re:Wait a sec by kazoosandinstruments · · Score: 1

    Perhaps Linus is in talks with Valve to distribute kernel patches via Steam! Har har har ...

  48. Some info about vendor. by Anonymous Coward · · Score: 0

    MontaVista is a good vendor which primary occupation is developing Linux distros with RealTime kernels for various embedded platforms. And by the way, they are RTOS developers in past.

  49. Hooray for music on linux.. by jedimark · · Score: 1

    Didn't 2.4 kernels already have these patches? or is it just a gentoo thing?
    I've been using the stock gentoo 2.4.26-r9 kernels with realtime scheduling option selected for a bit now, getting 5ms or less latencies without problems with my software synthesizers (5ms is not technically realtime, but it's the lowest setting there is in (my current) qSynth (uses fluidSynth & Jack), and I can actually mute the piano now and play through the computer without delays, last time I hooked it up it was 450ms on a winshame box)
    I've got nowhere near 5ms on 2.6's yet. Which is a shame because the hardware support in general is getting damn good.
    With this scheduling hopefully becoming standard, I think it's time I write some guitar effects software... :-)

  50. NTP = Insecurity by Anonymous Coward · · Score: 1, Interesting

    The NTP protocol is over-engineered for what is fundamentally a relatively simple problem. The NTP implementations 4.2.x have at least two -- probably many more -- currently unreported heap and buffer overflows which should be remotely exploitable.

    1. Re:NTP = Insecurity by Anonymous Coward · · Score: 0

      Wow.

      So what you're saying is, you've found heap/buffer overflows in the NTP implementation, and you're not reporting them, because... why? Then you wouldn't be able to complain about how cruddy the implementation is?

    2. Re:NTP = Insecurity by Anonymous Coward · · Score: 0

      I have absolutely no further interest in an absurdly over-engineered protocol like NTP which is an invitation to careless C programmers to write insecure code. Fixing a few overflows is not the long-term answer.

  51. multiprocessor by celeritas_2 · · Score: 1

    Wouldn't multi-processor systems be ideal for a real time operating system? One (or more) for real time processes and another for OS processes.

    --
    -- Checking emails and kicking cheats `till the day I die.
  52. low-latency multimedia kernel - Planet CCRMA by Ignominious · · Score: 1

    It'd be great to see realtime capabilities in the vanilla kernel - though in the meantime for a low latency Linux multimedia system I recommend the Planet CCRMA low latency kernel based on Fedora/Red Hat - this has a huge repository of compatible software, much of which is of very high quality. See Ardour (Digital Audio Workstation) for instance. Planet CCRMA uses the Advanced Linux Sound Architecture (ALSA) drivers (which have OSS emulation).

  53. Probably not by Andy+Dodd · · Score: 1

    I don't think the RT Linux patches for the 2.4 series were EVER merged.

    --
    retrorocket.o not found, launch anyway?
  54. I call shenanigans on that by WillerZ · · Score: 1

    LynxOS is not Linux. It can run linux programs natively, which is pretty impressive, but it is not a certified real-time safety-critical variant of Linux.

    Phil

    --
    I guess today is a passable day to die.
  55. Re:low-latency multimedia kernel - DeMuDi by mdlbear · · Score: 1
    For those who prefer the Debian side of things, I recommend DeMuDi. Like Planet CCRMA, it uses the low-latency patches and ALSA. It had a very smooth install, and unlike Planet CCRMA it managed to detect and correctly set up both of my sound cards (the one on the MB, and the M-Audio Delta-66). Basically ready to use out of the box; Planet CCRMA required a lot of tweaking.

    On the other hand, there are a number of differences in what they install. Get both, and dual-boot.

  56. Off-topic? by cduffy · · Score: 1

    Why?

    The topic is $COMPANY_A making a contribution to the Linux Kernel. I'm reminiscing a bit about having worked for $COMPANY_A actually doing all that great stuff. (Well, not quite -- I was mostly userland, though there was a bit of kernelspace work as well).

    I think it's reasonably topical.

  57. maybe I'm stupid.... by endersdouble · · Score: 1

    but it seems to me that, if I'm understanding what this does correctly, it to some extent increases the vulnerability of the system. What happen if a virus, say, preempts the entire rest of the system and takes up all the execution time?

  58. But DeMuDi is stuck on 2.4.25 by wolftone · · Score: 1

    Because DeMuDi is stuck on 2.4, certain pleasantries of the desktop environments (like udev) are missing. On the other hand, the 2.6 alsa integration fails to set up my sound cards properly. More specifically, it doesn't allow me to set them up the way I want, although it is fairly likely that I just haven't figured it out.

    One thing I don't understand about DeMuDi and Planet CCRMA is the default of Gnome. I'm personally pretty ambivalent about DE choice, but it seems to me that it would be a good idea to use the environment most fitting for the tools offered in the distro. All of the nice GUI sequencer/notation programs are qt/kde programs.

    1. Re:But DeMuDi is stuck on 2.4.25 by mdlbear · · Score: 1
      apt-get install kde Planet CCRMA is based on RedHat; GNOME is what they default to. KDE is there; just install it. DeMuDi is a slightly more interesting case: they wanted to make the entire install fit on one CD, so things like KDE (which I don't use) and Emacs (which I can't live without) have to be installed separately. Big deal. DeMuDi also gives you the option of Fluxbox as a WM. Personally, I use ctwm .

      As you say, 2.6 alsa has some problems; it also doesn't have all the low-latency patches.

    2. Re:But DeMuDi is stuck on 2.4.25 by wolftone · · Score: 1

      I understand the political reasons, I just wonder if the connection was made between the software to be used and the environment in which it would be used. Perhaps, as I'm really only interested in a small number of the apps that Demudi and the people at Stanford have to offer, I haven't noticed much of the gtk2/gnome software.

      I only open up KDE to run Qt/KDE apps such as rosegarden, LyX, and K3B (though in the last day or two I've been a little irked at how buggy it is) -- I don't like waiting for kdelibs to load... takes forever on my box -- and I generally run UDE/UWM instead.

    3. Re:But DeMuDi is stuck on 2.4.25 by mdlbear · · Score: 1
      Load time may be part of it -- KDE software drags in a lot of KDE baggage when it starts up, while Gnome stuff usually runs fine in KDE. Part of the startup time problem may be that Qt is C++ and gtk is C. Also, things like Firefox, Ardour, and so on are basically Gnome apps.

      Actually the stuff I use (Audacity, qjackctl, envy24control...) runs OK in both environments. And I've recently given up on xcdroast and switched to a one-line shell script for most purposes.

  59. "penality" by Anonymous Coward · · Score: 0

    best. typo. ever.