|
|
||||||||||||||||||||||||||
NT and VMS As in UNIX and most commercial OSs, NT has two modes of execution, as Figure 2 shows. In user mode, applications execute, and OS/2, DOS, and POSIX execute and export APIs for applications to use. These components are unprivileged because NT controls them and the hardware they run on. Without NT's permission, these components cannot directly access hardware. In addition, the components and hardware cannot access each other's memory space, nor can they access the memory associated with NT's kernel. The components in user mode must call on the kernel if they want to access hardware or allocate physical or logical resources. The kernel executes in a privileged mode: It can directly access memory and hardware. The kernel consists of several Executive subsystems, which are responsible for managing resources, including the Process Manager, the I/O Manager, the Virtual Memory Manager, the Security Reference Monitor, and a microkernel that handles scheduling and interrupts. The system dynamically loads device drivers, which are kernel components that interface NT to different peripheral devices. The hardware abstraction layer (HAL) hides the specific intricacies of an underlying CPU and motherboard from NT. NT's native API is the API that user-mode applications use to speak to the kernel. This native API is mostly undocumented, because applications are supposed to speak Win32, DOS, OS/2, POSIX, or Win16, and these respective OS environments interact with the kernel on the application's behalf. VMS doesn't have different OS personalities, as NT does, but its kernel and Executive subsystems are clear predecessors to NT's. Digital developers wrote the VMS kernel almost entirely in VAX assembly language. To be portable across different CPU architectures, Microsoft developers wrote NT's kernel almost entirely in C. In developing NT, these designers rewrote VMS in C, cleaning up, tuning, tweaking, and adding some new functionality and capabilities as they went. This statement is in danger of trivializing their efforts; after all, the designers built a new API (i.e., Win32), a new file system (i.e., NTFS), and a new graphical interface subsystem and administrative environment while maintaining backward compatibility with DOS, OS/2, POSIX, and Win16. Nevertheless, the migration of VMS internals to NT was so thorough that within a few weeks of NT's release, Digital engineers noticed the striking similarities. Those similarities could fill a book. In fact, you can read sections of VAX/VMS Internals and Data Structures (Digital Press) as an accurate description of NT internals simply by translating VMS terms to NT terms. Table 1 lists a few VMS terms and their NT translations. Although I won't go into detail, I will discuss some of the major similarities and differences between Windows NT 3.1 and VMS 5.0, the last version of VMS Dave Cutler and his team might have influenced. This discussion assumes you have some familiarity with OS concepts (for background information about NT's architecture, see "Windows NT Architecture, Part 1" March 1998 and "Windows NT Architecture, Part 2" April 1998).
NT's processes are virtually the same as VMS's processes (Table 2, page 118, shows a comparison of VMS and NT processes). In NT, as in VMS, the process scheduler implements 32 priority levels. The process with the highest priority is always running, and processes with equal priority are scheduled in a round-robin pattern. The system considers the 16 high-priority levels realtime or fixed priorities, because the process scheduler doesn't manipulate priority in processes the system assigns to that range. The 16 low-priority levels (except 0, which the system reserves for the idle thread that executes when nothing else can) are dynamic because the scheduler, often with the input of device drivers, bumps priorities up in reaction to various conditions, such as when the process receives input from a device. This bumping procedure is called boosting. A defining aspect of the NT and VMS schedulers is that they never lower a process' priority below the priority level the application programmed. To handle CPU hogging, in which a process burns CPU cycles without regard to other processes in the system, the scheduler boosts the priority of starved processes that haven't executed for a defined period. Both VMS 5.0 and NT 3.1 schedulers support symmetric multiprocessing (SMP), which let them execute processes simultaneously on different CPUs in order to increase applications' performance. A major difference between NT process management and VMS process management is that NT processes contain one or more threads of execution, and NT's scheduler gives CPU time to threads, not processes. Digital didn't introduce kernel threads into VMS until version 7.0 in 1995. This addition is one of several enhancements Digital has made to VMS since NT's release that appear to be in response to NT capabilities. In turn, Microsoft added lightweight user-mode threads support to NT 4.0 in 1996, which it copied from the VMS implementation of threads. The memory managers in NT and VMS are also similar. Both OSs implement virtual memory address maps that the system splits between the currently executing application and the kernel. Both NT and VMS rely heavily on memory-mapped files, especially for mapping the code for executing applications and implementing copy-on-write functionality (because of VAX hardware limitations, VMS provides less efficient copy on demand funtionality). Physical memory management in NT and VMS relies on demand-paged virtual memory. VMS's memory manager assigns each process upper and lower limits (called working sets) for the amount of physical memory the system can assign them. This feature compartmentalizes applications so that an application with heavy memory demands minimally affects other processes. NT's memory manager incorporates working sets, along with many subtleties of the VMS working-set tuning algorithms. As with the process manager, notable differences exist between NT's and VMS's memory manager. VMS's Balance Set Manager moves entire processes' memory footprints out of memory to paging files and back to memory in response to the overall memory demands of the system. Microsoft did not carry this mechanism, known as swapping, into NT's Balance Set Manager, although some of NT's Balance Set Manager's secondary responsibilities are the same as the secondary responsibilities of VMS's Balance Set Manager. NT's I/O Manager is closely based on VMS's I/O Manager. Both OS's I/O Manager support a layered-driver model throughout the device driver stacks for different device types and implements asynchronous packet-based I/O commands, and its device drivers dynamically load and unload. Stackable and loadable drivers make NT and VMS very extensible. Either OS can divide functionality among several device drivers, with each driver implementing a different abstraction level. For example, the system can insert a fault-tolerant disk driver between a file system driver and a disk driver. This configuration lets the fault-tolerant disk driver receive a request the system sends to one logical drive (e.g., the C drive), then send the request to multiple physical drives to implement mirroring or striping. Asynchronous I/O enables applications and the kernel subsystems to initiate device requests and work while the requests are in progress, rather than wait idly for the requests to complete. NT's device driver architecture and interrupt-request priority scheme are based on VMS. Descriptions of these aspects of the I/O Manager are applicable to both OSs with little variation. As you can see by comparing Figure 2 and Figure 3, page 117, the Executive subsystems exhibit the most significant resemblance between VMS and NT. But many minor similarities exist in which it is clear that Microsoft derived NT's capabilities from VMS. For example, both NT and VMS represent resources as objects that the system manages through an Object Manager, which implements uniform reference counting and accounting. The Object Manager regulates resource allocation and calls the Executive subsystem functions that request notification of certain object operations. VMS object management is not formalized, like it is in NT, and the VMS Object Manager is just a loose connection of functions. Microsoft extended NT's Object Manager so that it provides a uniform naming model for all kernel resources. NT's security subsystem is based on objects with discretionary access control lists. DACLs determine which users can perform various operations on those objects. Digital added a DACL enhancement to VMS's security model in version 4.0 in 1984. Therefore, VMS's security implementation is the predecessor to NT's. Microsoft even included systems tools similar to VMS's in NT, including the Performance Monitor, which is based on MONITOR, the extensible VMS performance monitor. VMS included a utility called BACKUP long before Microsoft developed NT's backup utility. "Why the Fastest Chip Didn't Win" (Business Week, April 28, 1997) states that when Digital engineers noticed the similarities between VMS and NT, they brought their observations to senior management. Rather than suing, Digital cut a deal with Microsoft. In the summer of 1995, Digital announced Affinity for OpenVMS, a program that required Microsoft to help train Digital NT technicians, help promote NT and Open-VMS as two pieces of a three-tiered client/server networking solution, and promise to maintain NT support for the Alpha processor. Microsoft also paid Digital between 65 million and 100 million dollars. The Evolution of NT and VMS The saga goes on. Now that Compaq has acquired Digital, will VMS continue to evolve, or will NT seal the fate of its predecessor? One thing is certain: NT will continue to grow, leaving its origins further and further behind.
I enjoyed Mark Russinovich’s excellent “Windows NT and VMS: The Rest of the Story” (December 1998), which compared VMS and NT internals. I was hatched under VMS, and I’ve often found familiar widgets under the NT hood.
Like many manufacturing systems administrators, I was sucked into the vortex of Microsoft Office systems several years ago. Nevertheless, I must continue to provide PC access to VMS manu-
facturing files.
Do you remember which network operating system (NOS) you need to share VMS files with PC-land? (Hint: During this software’s golden era—–one Tuesday afternoon in 1992—–the software’s market share made Banyan VINES look like a sound investment.) OK, I’ll whisper it: “VMS Pathworks.”
Guess what? Thousands of VMS boxes that run manufacturing applications day and night still need Pathworks to share VMS files with a PC network. Does Compaq care? Don’t bet Grandpa’s bell-bottoms. Sure, we’ve seen Pathworks upgrades—–ones that work on only Alpha boxes running this week’s version of OpenAXP. What about all those VAX stations that Digital Equipment built to run forever?
What do administrators like me do now—–toss 10 development-years’ worth of production software in the bin and throw out our most reliable hardware? Or, dream wistfully that Compaq will develop a conscience before curtailing support for our old systems? As a Windows NT Magazine subscriber for the past 2 years, I thank you for the accurate, useful, and timely articles. Mark Russinovich’s December cover story “Windows NT and VMS: The Rest of the Story” has historical value, but this history is well known. This article seems either Microsoft-sponsored (trying to give credibility to NT by tracing its roots to DEC’s VMS and David Cutler) or akin to an academic research paper.
History cannot be changed. David and VMS are the origins of NT. But, who removed VMS’s stability from NT? What about NT’s equivalent of VMS’s Mount Verification (MV)? I am a systems administrator, and we have a VAX VMS and five NT 4.0 servers. The VAX VMS has run without a crash or problem for the past 4 years. Meanwhile, the NT servers have crashed several times in the first few months of use. Plenty of tweaking and adding extra hardware have decreased the number of crashes, but NT will never be like VMS. Will NT make it to its 20th anniversary, as VMS did in October 1998? At Last the truth is comming out about what sort of theft goes on inside the M$ Corp corridors... I am not going to say any more except that WindBlows will never regain it's strangle hold over the computing world The arrival of Linux was just the start of the onslaught against the M$ Corp Pete Pete Nikolic -May 21, 2004What was I thinking? The arrival of Linux has had little impact. VMS has a greater chance than Linux. :) Pete Nikolic -June 10, 2004Fascinating. I've just started out learning about the WinNT setup, using the "Inside Windows NT" book. (I have to - I'm hoping to start developing stuff for the MS WinNT platform as well as the Linux/*BSD, and every little bit helps. (Mono and PNet) ;) Now it looks as if it mightn't be such a bad idea to hunt down the VAX/VMS Internals and Data Structures book as well. Thanks for the info. Wesley Parish -July 04, 2004This is very amusing and new to me. Linux was written from scratch yet Microsoft claims it might face crippling patent lawsuits. We now know this is laughable as the only company with a distant chance in hell of winning a lawsuit for damages against Linux was SCO, and we all know the laughing stalk they've become. Windows NT on the other hand is a wholesale re-write of VMS, steals parts of OS2, and was written by the former employees of the people who wrote VMS in the first place! If anyone is ripe for a lawsuit then it is Microsoft. I'm sure they've got their backs covered though, and if they don't then they could buy any threatening company out with their 50 Billion in cash. Except for IBM perhaps, that would be a clash of titans. And to Pete Nikolic, yeah I guess you're right, Linux isn't a threat. That's probably why it continues marginalizing IIS into a niche and dominating the server market ;-) Anonymous User -February 08, 2005http://www.euronet.nl/users/frankvw/index.html Anonymous User -February 22, 2005The windows source code must be released to the public. Everyone than can laugh at the shoddy programming and stolen stuff in Winows NoTail. Linux is better, bugs are fix faster, but still new hardware support is sometimes a bit weird. Still more stable than winows. Anonymous User -March 06, 2005Dear Anonymous User -March 06, 2005, It already has been, look up "Windows 2000 Source" in Emule. Some Russian hackers stole the sourcecode and released it - stealing Microsoft's source is like stealing candy from a baby. It's filled with profanities and complaints about how terrible code is, quite amusing really. Anonymous User -March 08, 2005Fantastic article. I have used both VMS and Win/NT intimately for the last 20 years, and Mark's article is right on the money. Anonymous User -April 13, 2005You missed perhaps the most interersting part - the Digtal lawsuit that followed. MS was going to lose so they settled out of court. But the joke was on DEC because although they settled for $50M, it was all in forms that ultimately benefited MS. One part of the deal included MS subsiding the creation of Digital's MS Services practice and the training of DEC's personnel. But this was a move MS was going to make anyway in order to create a global enterprise-class support org such that MS could claim as many MCSE's were certified on NT and there were Unix support professionals in the market. Thus MS could be positioned as enterprise-ready and as supportable as Unix. Secondly, MS guaranteed they'd outsource a large % of their helpdesk calls to Digital call centers. Again, this was MS's model anyway. In that time period when you made a call to the MS helpdesk, and the person on the other end answerered "Hello. This is Microsoft, can I help you?" you were actaully talking to a Digital, NCR, HP, or Vanstar employee in their respective call centers. And even this arrangement was a joke because MS paid so little to DEC and other support partners on a per-incident basis (I recall the math was $25 per call which meant over 10-15 min's in length and you lost money on that particular call), and MS required so much reporting infrastructure and annual training hours, that the support vendors were left with no margin. In the end most of the big vendors finally got out of the MS desktop support business because it was a money loser. All of this came out of the theft of VMS! Even when they get caught they win. Anonymous User -June 29, 2005Everything comes from somewhere. Linux was not written from scratch. The kernel was coded from scratch, but the ideas and philosophy behind Linux can be traced back to the original AT&T UNIX system. Likewise, much of the software for Linux (C compiler, X Windows, filesystem utilities, etc.) was available on the various UNIX systems long before Linux was even a thought. The difference, of course, is that Linux *legally* used the ideas and designs already available. Microsoft cannot claim the same thing; by using VMS code in NT, they actually committed copyright infringement. If DEC patented any parts of their system, then MS would also have committed patent infringement. All in all, this was an interesting and humorous article. I never knew the history of NT either, but at least MS took the design from a stable and robust OS. The instability is not NT's fault; the stability problems come from third-party drivers and poorly written applications, which Microsoft has no control over. I can write a device driver for Linux that will crash the system (guess how I know :) ) too. Anonymous User -July 15, 2005Linux sucks big time....comparing to NT... Anonymous User -July 22, 2005We enjoyed reading it a lot and we really appreciate the work done by Cutler. rishinitin -September 25, 2006 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||
Windows IT Pro Home
Register
![]()
FAQ for Windows
WinInfo News
Europe Edition
About Us
Contact Us/Customer Service
Media Kit
Affiliates / Licensing
|
||||||||||||||
SQL Server Magazine
Office & SharePoint Pro
DevProConnections
IT Job HoundLeft-Brain.com
Technology Resource Directory
asp.netPRO
ITTV
Windows SuperSite |
||||||||||||||
|
||||||||||||||