Why is Windows not considered suitable for real time systems/high performance servers? [closed]
Asked Answered
K

5

12

I hope this question isn't too subjective, but why is Windows considered an unsuitable operating system for real time systems and high performance servers? Are there any technical papers or studies that gauge it's performance compared to *nix alternatives?

I've never actually heard any explanation of why developers are against using Windows for these types of systems, aside from the extremely common 'Windows is not a real time operating system' statement, as if it's some kind of well known fact that doesn't need to be justified.

Note that I'm asking about Windows CE/Windows Server, not the desktop versions of the operating system.

Kampmann answered 1/6, 2011 at 19:1 Comment(7)
What does Windows CE have to do with this?Rowles
High performance? I believe this very site uses Windows and I'm sure their servers are performing highly :)Sierrasiesser
Windows CE/Windows Server? What do those two have in common?Lotz
Windows CE was developed with real time systems in mind, I believe. It's not so much what they have in common, but that they're suitable for real time systems and high performance systems, respectively.Kampmann
msdn.microsoft.com/en-us/library/ms834197.aspx Summary: This paper lists eight prerequisites for the operating system used in real-time systems and describes how the Microsoft® Windows® CE 2.1 operating system was designed to meet those requirements. I'm asking after having a large number of interviews with well known companies in this area and getting a unanimous 'We don't use Windows because it's not suitable for {high performance,real time} systems' without any reasoning. I was under the impression it was some kind of well known fact, but couldn't find anything for or against.Kampmann
@dauphic: ah, so you knew the answer to your question already?Lotz
I'd just like to clarify that I'm asking for something that clarifies why it's not suitable, or just a simple 'Yes, it's suitable.' The argument that it is suitable is from Microsoft, and of course they aren't going to say 'We designed it to be suitable, but it's actually not'Kampmann
P
11

A real-time OS needs a certain amount of deterministic behavior. You want to be able to set up specific task priorities that are always honored and have interrupts that have a specific priority. You can't have an OS that might decide to give priority to a daemon or task that is outside your application. Depending on your system microseconds might matter, an OS that goes off for 50 usecs to handle a daemon outside your application might be deadly.

Now, with that said it doesn't mean you can't use Windows for a real time application. In fact I've done it several times, it's just the real-time aspects were handled by hardware cards and buffering built into the system. If the OS was hundreds of milliseconds late it just meant the display might have a perceptible hiccup in the data. No data was ever lost or not collected. We were also able to avoid problems by customizing what other tasks were running (pretty much the same thing hard core gamers do).

Alternately, I had a recent request to do a real-time system where the real-time hardware would issue a callback that the windows code would see and then send out a USB message. The message had to be sent within microseconds and whatever the delay was it HAD to be deterministic so that the system receiving the USB message could compensate for the delay. This struck me as something that Windows is not suited for and the design was reworked.

Even though this question is now closed I thought I would udpate this response with a link to lengthier blog post I wrote on the topic.

Pelagi answered 1/6, 2011 at 19:19 Comment(0)
J
6

Windows has a long-standing reputation about that, based primarily upon isolated bad experiences (everyone has a few, don't they?) which persists through major revisions that obsolete old reasons. Unfortunately, the vast majority of system administrators have never seen any of the performance tuning documents freely available from Microsoft, and even fewer have bothered to tune their systems appropriately.

Real-time critical systems can work on Windows. Look at call center solutions, for example - this is one of my areas of expertise, and I oversee several dozen servers doing exactly this. These machines can have hundreds of lines simultaneously processing voice recognition and speech synthesis at the same time, communicating with databases and programmable call routing systems. Delays in responding to the telephone company's equipment can cause some or all of those calls to be dropped or call quality to degrade severely. We still have to implement antivirus and other security measures, and these systems run.

The most important things you need to do are: * Eliminate periodic automated jobs and processes, like checking for and applying updates, disk maintenance (such as defrag operations and cleanup) and full scans, and move them to regularly scheduled downtime for maintenance. * Have enough memory so the system doesn't get bogged down with swapping * Put your swap on its own partition so fragmentation doesn't interfere with the swapfile (some of my systems don't have this and still work) * Work with the antivirus vendor to fine-tune their product such that it interferes with your server(s) as little as possible while still providing adequate protection - most antivirus software is meant for desktop use, not server use, and will require tuning * Tune your group / local security policies

In the end, UN*X systems can have the same problems if you don't administer them properly: Scheduled jobs, inadequate swap configuration, and intrusive 3rd party security software. They also get overlooked when it comes to security so often that it's no more surprising when they are compromised than when a Windows server is compromised.

You've got to have balance. Both platforms can be equally mismanaged, and both platforms can be well-tuned. If you're talking primarily to UN*X platform people, well, they have reasons they like their platform and have a lot of bias against Windows and you'll get answers that reflect that. If you're talking to Microsoft people, you'll get the same from their angle.

The most important thing when you're choosing the platform should be vendor support for the APPLICATION you're running - which one are they more invested in, and which one have they favored in their development? What has been proven to work the best, and what will continue to be available in the future?

Jasun answered 1/6, 2011 at 19:40 Comment(0)
L
2

If you want an answer, you should give us some facts to work with. Who says Windows isn't suitable for high performance servers? We have no clue, but you apparently do. So you're better qualified to answer it than we are, aren't you?

As for realtime systems? It's true. Windows isn't suitable because it's not a realtime OS. The same is true for Linux and OSX, btw. Realtime systems need some pretty specialized OS'es. And mainstream OS'es aimed at performance, throughput and responsiveness aren't going to do the trick, whether they're written by Microsoft or anyone else.

Lotz answered 1/6, 2011 at 19:5 Comment(1)
rt.wiki.kernel.org/index.php/Main_Page Unless I am missing something, the Linux kernel does do real-time, has for awhile, and had it as a patch for even longer.Heliogabalus
A
2

Real time systems typically have a requirement for a maximum response time. Windows can't provide such guarantees.

As for Windows servers doing high performance, what do you think runs StackOverflow?

Ascites answered 1/6, 2011 at 19:7 Comment(1)
@Chris: meta.stackexchange.com/questions/10369/…Ascites
E
1

The answers you received were correct: Windows simply isn't a RTOS. To be one, it would have to be able to make specific guarantees regarding scheduling. The behavior needed to do that is not particularly compatible with what's appropriate for a regular server or workstation.

As for "high performance", that's just vague. Server editions of Windows can and do run high-performance systems.

Erlin answered 1/6, 2011 at 19:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.