hn-classics/_stories/2007/13260688.md

86 KiB
Raw Permalink Blame History

created_at title url author points story_text comment_text num_comments story_id story_title story_url parent_id created_at_i _tags objectID year
2016-12-27T01:19:24.000Z What was the role of MS-DOS in Windows 95? (2007) https://blogs.msdn.microsoft.com/oldnewthing/20071224-00/?p=24063 luu 142 43 1482801564
story
author_luu
story_13260688
13260688 2007

Source

What was the role of MS-DOS in Windows 95? The Old New Thing

Microsoft logo |

__

Search MSDN

Search all blogs

Search this blog

Sign in

The Old New Thing The Old New Thing

What was the role of MS-DOS in Windows 95?

★★★★★

★★★★

★★★

★★

avatar of oldnewthingRaymond Chen - MSFTDecember 24, 2007134


Welcome, Slashdot readers. Remember, this Web site is for entertainment purposes only.

Sean wants to know what the role of MS-DOS was in Windows 95. I may regret answering this question since it's clear Slashdot bait. (Even if Sean didn't intend it that way, that's what it's going to turn into.)

Here goes. Remember, what I write here may not be 100% true, but it is "true enough." (In other words, it gets the point across without getting bogged down in nitpicky details.)

MS-DOS served two purposes in Windows 95.

  • It served as the boot loader.
  • It acted as the 16-bit legacy device driver layer.

When Windows 95 started up, a customized version of MS-DOS was loaded, and it's that customized version that processed your CONFIG.SYS file, launched COMMAND.COM, which ran your AUTOEXEC.BAT and which eventually ran WIN.COM, which began the process of booting up the VMM, or the 32-bit virtual machine manager.

The customized version of MS-DOS was fully functional as far as the phrase "fully functional" can be applied to MS-DOS in the first place. It had to be, since it was all that was running when you ran Windows 95 in "single MS-DOS application mode."

The WIN.COM program started booting what most people think of as "Windows" proper. It used the copy of MS-DOS to load the virtual machine manager, read the SYSTEM.INI file, load the virtual device drivers, and then it turned off any running copy of EMM386 and switched into protected mode. It's protected mode that is what most people think of as "the real Windows."

Once in protected mode, the virtual device drivers did their magic. Among other things those drivers did was "suck the brains out of MS-DOS," transfer all that state to the 32-bit file system manager, and then shut off MS-DOS. All future file system operations would get routed to the 32-bit file system manager. If a program issued an int 21h, the 32-bit file system manager would be responsible for handling it.

And that's where the second role of MS-DOS comes into play. For you see, MS-DOS programs and device drivers loved to mess with the operating system itself. They would replace the int 21h service vector, they would patch the operating system, they would patch the low-level disk I/O services int 25h and int 26h. They would also do crazy things to the BIOS interrupts such as int 13h, the low-level disk I/O interrupt.

When a program issued an int 21h call to access MS-DOS, the call would go first to the 32-bit file system manager, who would do some preliminary munging and then, if it detected that somebody had hooked the int 21h vector, it would jump back into the 16-bit code to let the hook run. Replacing the int 21h service vector is logically analogous to subclassing a window. You get the old vector and set your new vector. When your replacement handler is called, you do some stuff, and then call the original vector to do "whatever would normally happen." After the original vector returned, you might do some more work before returning to the original caller.

One of the 16-bit drivers loaded by CONFIG.SYS was called IFSMGR.SYS. The job of this 16-bit driver was to hook MS-DOS first before the other drivers and programs got a chance! This driver was in cahoots with the 32-bit file system manager, for its job was to jump from 16-bit code back into 32-bit code to let the 32-bit file system manager continue its work.

In other words, MS-DOS was just an extremely elaborate decoy. Any 16-bit drivers and programs would patch or hook what they thought was the real MS-DOS, but which was in reality just a decoy. If the 32-bit file system manager detected that somebody bought the decoy, it told the decoy to quack.

Let's start with a system that didn't contain any "evil" drivers or programs that patched or hooked MS-DOS.

| ----- | | Program calls int 21h |
|
|

32-bit file system manager

checks that nobody has patched or hooked MS-DOS
performs the requested operation
updates the state variables inside MS-DOS
returns to caller |
| Program gets result | |

This was paradise. The 32-bit file system manager was able to do all the work without having to deal with pesky drivers that did bizarro things. Note the extra step of updating the state variables inside MS-DOS. Even though we extracted the state variables from MS-DOS during the boot process, we keep those state variables in sync because drivers and programs frequently "knew" how those state variables worked and bypassed the operating system and accessed them directly. Therefore, the file system manager had to maintain the charade that MS-DOS was running the show (even though it wasn't) so that those drivers and programs saw what they wanted.

Note also that those state variables were per-VM. (I.e., each MS-DOS "box" you opened got its own copy of those state variables.) After all, each MS-DOS box had its idea of what the current directory was, what was in the file tables, that sort of thing. This was all an act, however, because the real list of open files was kept in by the 32-bit file system manager. It had to be, because disk caches had to be kept coherent, and file sharing need to be enforced globally. If one MS-DOS box opened a file for exclusive access, then an attempt by a program running in another MS-DOS box to open the file should fail with a sharing violation.

Okay, that was the easy case. The hard case is if you had a driver that hooked int 21h. I don't know what the driver does, let's say that it's a network driver that intercepts I/O to network drives and handles them in some special way. Let's suppose also that there's some TSR running in the MS-DOS box which has hooked int 21h so it can print a 1 to the screen when the int 21h is active and a 2 when the int 21h completes. Let's follow a call to a local device (not a network device, so the network driver doesn't do anything):

| ----- | | Program calls int 21h |
|
|

32-bit file system manager

notices that somebody has patched or hooked MS-DOS
jumps to the hook (which is the 16-bit TSR) |
|
|

16-bit TSR (front end)

prints a 1 to the screen
calls previous handler (which is the 16-bit network driver) |
|
|

16-bit network driver (front end)

decides that this isn't a network I/O request calls previous handler (which is the 16-bit IFSMGR hook) |
|
|

16-bit IFSMGR hook

tells 32-bit file system manager
  that it's time to make the donuts |
|
|

32-bit file system manager

regains control
performs the requested operation
updates the state variables inside MS-DOS
returns to caller |
|
|

16-bit network driver (back end)

returns to caller |
|
|

16-bit TSR (back end)

prints a 2 to the screen
returns to caller |
| Program gets result | |

Notice that all the work is still being done by the 32-bit file system manager. It's just that the call gets routed through all the 16-bit stuff to maintain the charade that 16-bit MS-DOS is still running the show. The only 16-bit code that actually ran (in red) is the stuff that the TSR and network driver installed, plus a tiny bit of glue in the 16-bit IFSMGR hook. Notice that no 16-bit MS-DOS code ran. The 32-bit file manager took over for MS-DOS.

A similar sort of "take over but let the crazy stuff happen if somebody is doing crazy stuff" dance took place when the I/O subsystem took over control of your hard drive from 16-bit device drivers. If it recognized the drivers, it would "suck their brains out" and take over all the operations, in the same way that the 32-bit file system manager took over operations from 16-bit MS-DOS. On the other hand, if the driver wasn't one that the I/O subsystem recognized, it let the driver be the one in charge of the drive. If this happened, it was said that you were going through the "real-mode mapper" since "real mode" was name for the CPU mode when protected mode was not running; in other words, the mapper was letting the 16-bit drivers do the work.

Now, if you were unlucky enough to be using the real-mode mapper, you probably noticed that system performance to that drive was pretty awful. That's because you were using the old clunky single-threaded 16-bit drivers instead of the faster, multithread-enabled 32-bit drivers. (When a 16-bit driver was running, no other I/O could happen because 16-bit drivers were not designed for multi-threading.)

This awfulness of the real-mode mapper actually came in handy in a backwards way, because it was an early indication that your computer got infected with an MS-DOS virus. After all, MS-DOS viruses did what TSRs and drivers did: They hooked interrupt vectors and took over control of your hard drive. From the I/O subsystem's point of view, they looked just like a 16-bit hard disk device driver! When people complained, "Windows suddenly started running really slow," we asked them to look at the system performance page in the control panel and see if it says that "Some drives are using MS-DOS compatiblity." If so, then it meant that the real-mode mapper was in charge, and if you didn't change hardware, it probably means a virus.

Now, there are parts of MS-DOS that are unrelated to file I/O. For example, there are functions for allocating memory, parsing a string containing potential wildcards into FCB format, that sort of thing. Those functions were still handled by MS-DOS since they were just "helper library" type functions and there was no benefit to reimplementing them in 32-bit code aside from just being able to say that you did it. The old 16-bit code worked just fine, and if you let it do the work, you preserved compatibility with programs that patched MS-DOS in order to alter the behavior of those functions.

Tags History


Comments (134)

  1. John says:

December 24, 2007 at 10:38 am

The most impressive thing is that most of the time most of this stuff actually (mostly) worked.

  1. Aaargh! says:

December 24, 2007 at 2:20 pm

I wanted to ask why this whole mess when most stuff needed to be ported to the new Win95 anyway because, like you said, the performance was horrible.

But of course , the real mystery is: why win95 at all ? Why wasnt Win95 just a home edition of Win NT 4.0 ? What justified all the effort spent on the dead-end 9x OSes when you already had the NT kernel, which is way less horrible than the whol win 9x business ?

[The fact that Windows 95 was such a success demonstrated that the “Hey everybody, abandon all your old hardware that doesnt have 32-bit drivers and switch to Windows NT” strategy wasnt working. -Raymond]

  1. Skip says:

December 24, 2007 at 2:47 pm

As far as the real-mode mapper being handy for detecting viruses, it definitely was.  I found one on my parents system that way.  They werent able to access their CD drive, and it wasnt set up with a driver and MSCDEX in config.sys, so compatibility mode meant it went away.

Of course, at that point the conversation went something like this.

Me:  "I thought I installed antivirus software, but its not running?"

Mom: "Oh, I uninstalled that it kept keeping me from opening my emails"

  1. JamesNT says:

December 24, 2007 at 2:47 pm

Finally, an explanation as to what the real deal was with MS-DOS under Windows 95.  For all these years so many people have stated that Windows 95 was just a fancy screen saver for DOS or was totally based on DOS.  

Thank you, Lord Chen, for clearing up years upon years of false speculation and rantings.

We now return you to your regularly scheduled Christmas Special of Slashdot rantings from people who claim to know more about how this stuff works than the person who actually worked on Windows 95 or sits everyday beside someone who did.

JamesNT

  1. Aaargh! says:

December 24, 2007 at 3:10 pm

“The fact that Windows 95 was such a success demonstrated that the Hey everybody, abandon all your old hardware that doesnt have 32-bit drivers and switch to Windows NT strategy wasnt working.”

No it demonstrated that Win95 had a much better marketing campaign than WinNT. NT4 home edition would have worked just as well. Most consumers had never heard of such a beast as win NT.

And what “old hardware that doesnt have 32-bit drivers” are you talking about ? The only thing this fixed is some filesystem access support and that sucked so much that it wasnt usable anyway. If you wanted windows apps to be able to use your hardware, you needed windows drivers.

[“If you wanted windows apps to be able to use your hardware, you needed windows drivers.” Not true. Windows 3.1 worked just fine with 16-bit MS-DOS drivers. -Raymond]

  1. Yuhong Bao says:

December 24, 2007 at 3:24 pm

Mom: "Oh, I uninstalled that it kept keeping me from opening my emails"

Did that email really have a virus? If not, that antivirus software is bad and should be replaced.

  1. Gazpacho says:

December 24, 2007 at 3:30 pm

When the major OEMs say "support the old/new drivers," Microsoft does it. From what Ive heard, a similar demand from the OEMs played a large part in Windows MEs problems.

  1. John Topley says:

December 24, 2007 at 3:34 pm

"But of course , the real mystery is: why win95 at all ? Why wasnt Win95 just a home edition of Win NT 4.0 ? What justified all the effort spent on the dead-end 9x OSes when you already had the NT kernel, which is way less horrible than the whol win 9x business ?"

No mystery. The hardware requirements for Windows NT at the time were just too steep (and Windows NT 4.0 wasnt around when Windows 95 development started in about 1993). The major leap forward for Windows 95 was the new shell; under the hood it was a logical continuation of the VMM technology that debuted in Windows 3.x. The whole thing was a glorious, ingenious and incredibly commercially successful hack!

  1. Nobody Real says:

December 24, 2007 at 3:46 pm

Of course, Andrew Schulmans "Unauthorized Windows 95" goes into this a great deal more detail.

The problem with the book, however, is that its misleading.  He spends 90% of pretending that Windows 95 is a shell on DOS, and then in fine print basically admits that no, its not, and theres a lot more to it than that.

Being sensational sells books, unfortunately, but the information is there in that book, if youre willing to do more than just skim it.

  1. Ken Hagan says:

December 24, 2007 at 5:11 pm

"The hardware requirements for Windows NT at the time were just too steep."

Funnily enough, I always felt that NT ran rather better than Win95 on realistic hardware. I think the "minimum hardware requirement" has always been a figment of some marketeers imagination. Every version of Windows has been almost unusable unless you had at least double the "minimum" memory.

  1. Dan says:

December 24, 2007 at 5:37 pm

"Minimum" can mean minimum needed to have a good experience, or it can mean minimum needed so the product doesnt crash on start up.

  1. Yuhong Bao says:

December 24, 2007 at 6:15 pm

"Funnily enough, I always felt that NT ran rather better than Win95 on realistic hardware."

Indeed NT ran better than 95 on Pentium Pros. SMP also requires NT.

  1. Eric TF Bat says:

December 24, 2007 at 7:32 pm

This is what I love about Old New Thing: I can be secure in the knowledge that I KNOW how things work (and I KNOW that Microsoft programmers are all slack buggers whove never done a days work in their lives) and one of your articles forces me to realise that I didnt really know — and that some MS programmers, at least, are actually so clever its scary.

Keeping stuff backwards-compatible (whether in MS software or anywhere else) reminds me of all the work the ancients put in to predict the movements of the planets in a geocentric universe.  To get the numbers right, given that they were assuming circular orbits around the earth rather than elliptical ones around the sun, they had to work out a complex system of cycles and epicycles, a marvel of pre-computer mathematical empiricism.  In a sense, having to support old versions of popular software is like having to obey the religious strictures of the geocentric universe: you can be pretty damn clever with your creations even when your foundations are less than perfect.

  1. Triangle says:

December 24, 2007 at 8:56 pm

Why was this article branded with the slashdot disclaimer?

  1. Dean Harding says:

December 24, 2007 at 10:05 pm

"If not, that antivirus software is bad and should be replaced."

Well given that he was investigating a virus infection, it looks like the email DID have a virus (or something did, anyway).

  1. Dean Harding says:

December 24, 2007 at 10:08 pm

"NT4 home edition would have worked just as well."

Ill nominate you for the Nobel Prize just as soon as you show us that time machine you seem to have.

  1. Grijan says:

December 24, 2007 at 10:09 pm

"Funnily enough, I always felt that NT ran rather better than Win95 on realistic hardware."

Lets compare. Windows 95 "required" 4 Mb of RAM and ran fine with 8 Mb. On the other hand, Windows NT 4.0 "required" 8 Mb of RAM (would boot, but it took ages), and ran fine with 16 Mb. Windows 95 gets a point.

Also, what if I had that CD-ROM drive, sound card or scanner for which there were only real mode or Windows 3.x drivers? They wouldnt work in NT 4 no matter what I did. And these were fairly common back in 1995. Windows 95 gets another point.

Result: Windows 95, two points. Windows NT 4, zero points. NT may be clean, elegant solid and fast, but if it doesnt work on your hardware, its no option. Its no surprise 95 was such a success, no matter how many gazillions Microsoft spent in marketing.

  1. Andrei says:

December 24, 2007 at 10:49 pm

@Raymond:

“Windows 3.1 worked just fine with 16-bit MS-DOS drivers”

Windows 3.1 was not OS, but a graphic shell on top of MS-DOS.  It would have been quite strange, had it not been happy with 16-bit MS-DOS drivers.

@Aaargh!:

“”The fact that Windows 95 was such a success demonstrated that the Hey everybody, abandon all your old hardware that doesnt have 32-bit drivers and switch to Windows NT strategy wasnt working.””

“No it demonstrated that Win95 had a much better marketing campaign than WinNT.”

No, Raymonds right here.  You probably have not run NT at home in those years.  Or if you did, you have not tried to run some of the games and/or applications that werent “behaving” in 32-bit environment and the VM.  I, for one, remember how your brains could be sucked totally out trying to get a Clipper app to run reliably in NTs NTVDM…

[“Windows 3.1 was not OS, but a graphic shell on top of MS-DOS.” Whether it was or not is beside the point. People ran Windows 3.1 with 16-bit MS-DOS drivers. If you want them to upgrade from Windows 3.1 to something else, you need to support those 16-bit MS-DOS drivers or convince them to abandon their old hardware. In 1995, a CD-ROM drive cost $200. You make the call. -Raymond]

  1. foxyshadis says:

December 24, 2007 at 10:57 pm

"Indeed NT ran better than 95 on Pentium Pros."

A Pentium Pro cost over $1000 at the time of Windows 95s release it really targeted 486 and Pentium. And it really did target its minimum of 4-8 mb of memory; plenty of cheapskate OEMs installed it on junkers, where NT 3.5 is almost unusable even with 16. There are also aspects of Windows 95, particularly in the GUI and shell, that far exceeded NTs capability at the time and wouldnt show up until NT 4 a year later.

Hindsight is always 20/20, as well.

  1. Mark says:

December 25, 2007 at 12:17 am

I always laugh when I read others claims of "ran better than" or "ran faster than."  More times that I can count Ive sat down at computers running this OS or that (Linux, NT, OS2) and claimed to smoke WinXX only to find them pathetically slow and unresponsive by my standards on windows.  This even though my hardware was most often the lesser and my apps most often the hungrier.

Thats not to suggest that other experiences are invalid, but to offer that often our needs and  frames of reference differ.  Win95, Win98, and Win98SE flat out smoked NT4 on every box I ever ran them on albeit the last being a PIII 450 with 512MB RAM.  They had far more stability problems, but even with the crashes and reboots they were far more enjoyable and productive for me.  I cursed NTs slowness and unresponsiveness (due to seemingly constant disk access) way more than WinXXs instability and crashing.

When I took my current development job, where the hardware is mostly older P4-2Ghz machines with 1GB RAM running XPSP2, I asked for a primary PC with Win98SE.  I took a lot of ragging from fellow developers about that but it wasnt long before my manager was giving them all hard times about not running SE.  It seemed that almost no matter what was asked of us I could perform it faster on the SE machine than they could on XP.

Of course I run XPSP2 at home on a much more modern, and very tweaked, box.  There the speed and responsiveness keep pace with me and the stability makes it worth abandoning 98SE.

  1. Joshua says:

December 25, 2007 at 2:36 am

@Aargh: [And what "old hardware that doesnt have 32-bit drivers" are you talking about ?]

You know, funny thing is, this is the same problem plaguing the transition from 32-bit and 64-bit, and probably close to the same reason Vista came out in both versions. You cant expect millions of people to go out and buy the latest hardware just to run your software… can you?

  1. Jonathan says:

December 25, 2007 at 3:00 am

Win95 did run better on 16MB machines than NT4 you had to have 32MB for NT to have a comparable level of performance. Also, NT4 had a lower level of support for DOS program, specifically games.

Being a PC technician in the late Win95 era, I found out the following path to MS-DOS compatiblity mode:

1. Computer has an Intel chipset from the late Pentium era (430VX or 430TX), and no CD drive.
2. You install Win95 on it without CDROM  probably by copying the 30MB installation dir to the HD from a temp CDROM or whatever, and then installing from it.

3. During installation, the PnP manager doesnt recognize the chipsets IDE controller (because it doesnt exist in the in-box INFs). So, the non-PnP manager recognizes the IDE controller as "Standard ESDI controller" or something. But, it only recognizes the first controller, since the second doesnt have anything connected to it. Installation completes, and everyone is happy.

4. Later, customer purchases a CDROM (as part of a "multimedia package"  CDROM, sound and speakers). Technician connects it, but Windows doesnt recognize it.

5. Technician runs the diskette that comes with the CDROM. That diskette installs a DOS CDROM driver in config.sys, and msdecx.exe in autoexec.bat.

Result: CDROM work, but in MS-DOS compatiblity mode.

This annoyed me enough to hack the new INFs into Win95: http://powerjoe.tripod.com/win95mod.html

  1. Dave says:

December 25, 2007 at 6:36 am

On the other hand, Windows NT 4.0 "required" 8 Mb of RAM

(would boot, but it took ages), and ran fine with 16 Mb.

Have you tried installing NT 4 on the recommended minimum memory?  It would actually install on the set amount, but needed the next step up in order to run.  My memory tells me the steps were 12MB to install and 16MB to run, but it was more than ten years ago so it could well have been 8 and 12.  I remember the discrepancy because we were incredibly pissed that after getting a machine theoretically capable of running it we then had to stop what we were doing and go out and buy more memory to really run it.

  1. Dave says:

December 25, 2007 at 6:38 am

Oops, it was NT 3.51 and not 4.0, which didnt come out until some time later.  Ahh, memories of feeding in a stack of floppies only to have the nth one come up with a bad sector…

  1. Ibod Catooga says:

December 25, 2007 at 7:07 am

I installed MS-DOS on my cat, but when I tried to put more memory in its pooper to run WIN95, it gave me an error.

The SIMM chips wouldnt fit in its DIMM hole.

  1. cmov says:

December 25, 2007 at 8:20 am

What is it with these people. Theres a really annoying myth among them that installing more RAM improves performance.

More pages committed to physical RAM != better performance.

Higher clock frequencys may improve performance, but if you dont see squiggles on the CPU-usage history in task manager, youll hardly notice any difference.

Faster storage media, controllers and buses improve I/O performance, but if you never see your HDD LED flashing then youll hardly notice the difference.

Only if the performance of the program you run is limited by how much paging your computer can do, more available physical memory can improve /perceived/ performance. But actually, under the hood everything is equally fast or slow. To use a bad car analogy, driving a wider road doesnt make your car faster. (It merely allows more simultaneous cars.)

  1. Thom says:

December 25, 2007 at 10:23 am

I loved and hated MS-DOS compatiblity.  The few times it alerted me to viruses on friends or families computers I loved it, but the many times a CD-ROM driver caused it I hated it.  Its nice to know the whys.

I didnt use NT until NT4 so its my only reference against win9x systems.  The latter ran considerably faster and smoother for me until I increased ram beyond 384MB.  Beyond that I liked NT better because other apps were more responsive during Visual Studio compiles.

  1. Gabe says:

December 25, 2007 at 12:34 pm

Jonathan: If you were installing Win95 on a machine without a CD-ROM drive, you were almost certainly doing it from the 13 floppy disks that it came with.

  1. Neil says:

December 25, 2007 at 1:03 pm

Even better than the above is when Windows 95 starts installing from the CD-ROM but is unable to load the protected-mode drivers for it (because the cdrom driver is still in config.sys) but cant access it in real mode either (because it removed mscdex from autoexec.bat). Windows 98 "solved" this problem with a .inf file… on the CD-ROM…

  1. BryanK says:

December 25, 2007 at 9:33 am

Ah, so thats what ifsmgr.sys was used for!

That bugged me a bit back when I last used win98; not enough to go looking for what it actually did, or try to figure out how to remove it, but enough to wonder why it was there, and why it took a couple tens of K of memory (or something like that) according to "mem /c".  Now I know.  Thanks!  :-)

  1. bcthanks says:

December 26, 2007 at 1:58 am

"You know, funny thing is, this is the same problem plaguing the transition from 32-bit and 64-bit, and probably close to the same reason Vista came out in both versions."

Theres a big difference between Win95 not being 32-bit clean and 64-bit Vista: the hardware of any Win95 computer is capable of running 32-bit clean except for the lack of drivers. Whereas there are many 32-bit computers that just canot run 64-bit code (i.e, older 32-bit only CPU)

The entire PC industry has come a long way in standardizing hardware. For example, nobody loads vendor-specific CD-ROM drivers anymore because everything is ATAPI or SCSI.

Of course there is still a ways to go, like why does every network card need a different driver?

  1. Dean Harding says:

December 26, 2007 at 4:54 am

"Whereas there are many 32-bit computers that just canot run 64-bit code"

The only difference between a 64-bit computer and a 32-bit one is the CPU. And 90% (if not 100%) of CPUs sold today are capable of 64-bit. Its like saying that you had to upgrade your 286 CPU to a 386 in order to run Windows 95. By the time Windows 95 came out, nobody was selling 286s either.

The only thing stopping adoption of 64-bit Vista is driver support (well, that and the fact that it costs more than 32-bit Vista… whats up with that?!)

  1. Inferis Mind Dump » Blog Archive » MS-DOS in Win95 says:

December 26, 2007 at 5:21 am

PingBack from http://blog.blergh.be/2007/12/26/ms-dos-in-win95/

  1. Myria says:

December 25, 2007 at 9:35 pm

"You know, funny thing is, this is the same problem plaguing the transition from 32-bit and 64-bit, and probably close to the same reason Vista came out in both versions. You cant expect millions of people to go out and buy the latest hardware just to run your software… can you?"

Its even worse with 64-bit Windows.  With Win95, the lack of drivers was only because the manufacturers didnt want to revisit an operating system released later.  With Win64, its both that and that the software/hardware manufacturers just dont care for even new products.

Guitar Hero 3s copy protection system doesnt work on Win64 because its a 32-bit kernel driver.  And Guitar Hero 3 was released in 2007!  (My guess is that a crack would work, but I havent tried.)

  1. Sean W. says:

December 25, 2007 at 10:09 pm

Now this is why I read the Old New Thing!  Thank you, Raymond, for finally and definitively demystifying something techie people have argued about for years.

And while I sometimes may argue with MSFTs design decisions, I have to say this MS-DOS fakery business was truly one of MSFTs more elegant and clever solutions.  For the exact problem posed (new memory model + full backwards compatibility), I doubt there exists better way to solve it.  Long overdue kudos on this.

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 6:10 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95/

  1. Anon says:

December 26, 2007 at 7:08 am

Thanks for these article Raymond they really are entertaining. Im one of the Slashdot stamping horde that I know you hate but I just want to say I enjoy reading them. Double thanks for links to sites explaining the references to American culture (Im European) thats a thoughtful touch.

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 7:10 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-2/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 8:10 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-3/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:10 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-4/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:15 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-5/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:20 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-6/

  1. Bryan says:

December 26, 2007 at 9:21 am

cmov:

"But actually, under the hood everything is equally fast or slow. To use a bad car analogy, driving a wider road doesnt make your car faster. (It merely allows more simultaneous cars.)"

…which is a performance improvement if you have a bottleneck of cars.

Hard Drive access is not as fast as any other type of memory access, so I dont get your "under the hood" thing.

But anyway great topic :)  I enjoyed reading this on Christmas Eve from home.

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:25 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-7/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:30 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-8/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:35 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-9/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:40 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-10/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:40 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-10/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:45 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-11/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:50 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-12/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 9:56 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-13/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:01 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-14/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:06 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-15/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:10 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-16/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:11 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-17/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:15 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-18/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:16 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-19/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:20 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-20/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:22 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-21/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:25 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-22/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:27 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-23/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:30 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-24/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:32 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-25/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:35 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-26/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:35 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-26/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:37 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-27/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:40 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-28/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:42 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-29/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:45 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-30/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:48 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-31/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:50 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-32/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 10:56 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-33/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:01 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-34/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:01 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-34/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:06 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-35/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:10 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-36/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:11 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-37/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:15 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-38/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:16 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-39/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:20 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-40/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:22 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-41/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:25 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-42/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:27 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-43/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:30 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-44/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:32 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-45/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:35 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-46/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:37 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-47/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:40 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-48/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:42 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-49/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:45 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-50/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:48 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-51/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:50 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-52/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 11:56 am

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-53/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:01 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-54/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:06 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-55/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:10 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-56/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:11 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-57/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:15 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-58/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:16 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-59/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:20 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-60/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:22 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-61/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:25 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-62/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:27 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-63/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:30 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-64/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:32 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-65/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:35 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-66/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:37 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-67/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:40 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-68/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:42 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-69/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:45 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-70/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:48 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-71/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:50 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-72/

  1. Caminews » The Old New Thing : What was the role of MS-DOS in Windows 95? says:

December 26, 2007 at 12:56 pm

PingBack from http://www.caminews.it/the-old-new-thing-what-was-the-role-of-ms-dos-in-windows-95-73/

  1. Larry Osterman says:

December 26, 2007 at 2:47 pm

cmov: Youre wrong.  Adding more RAM does improve performance, to a limit (and in 1995, you were always at the limit).

Committed memory needs to go somewhere, either to RAM or to the hard disk.  Since the hard disk is many orders of magnitude slower than memory, anything that reduces swapping improves performance.

  1. Inferis Mind Dump » Blog Archive » links for 2007-12-26 says:

December 26, 2007 at 5:21 pm

PingBack from http://blog.blergh.be/2007/12/26/links-for-2007-12-26/

  1. Dr. Nick says:

December 26, 2007 at 6:03 pm

I think you got pingbacked.

  1. Jimbo says:

December 26, 2007 at 7:15 pm

bcthanks sez:

"… nobody loads vendor-specific CD-ROM drivers anymore because everything is ATAPI or SCSI.

Of course there is still a ways to go, like why does every network card need a different driver?"

Youre mixing driver layers and hardware technology.  SCSI CD-ROM drives should (or, "should") accept all standard SCSI commands, hence no need for separate drivers for each drive.  In SCSI, one CD-ROM drive should (again, "should") look like the next one.

However, each SCSI host adapter (the SCSI card) is different, and needs its own driver.  On NT this is called a SCSI miniport driver.  Its the go-between between MSs SCSI port driver (which the SCSI CD-ROM driver talks to) and the SCSI card hardware itself.

If youre using widely available SCSI technology (i.e. Adaptec), you dont need to install a special miniport driver because they come with the out-of-box installation.  Also, many knock-off brands are register-compatible with major vendors cards (again, Adaptec), and so the standard miniport drivers will recognize and operate with them.

So: NT understands Ethernet frames and Ethernet hardware basic principles, but doesnt know the particulars of every Ethernet card (although theres plenty of register-compatible hardware out there, i.e. NE2000-compatible).  Im not sure theyre named this way, but I suspect what youre installing are network miniport drivers, analogous to the SCSI situation.

  1. CGomez says:

December 26, 2007 at 7:49 pm

Pre Win95, I used to use DOS 6s menu option to run seperate configs for different programs and games.  I had one for Win 3.1 as well.

On Win95s release, that all went away.  I really cant think of an application I had to stop using.  At one point I didnt use those apps ever again, but that was probably around when Win2000 came out.

Win95 was a triumph, because it smoothed the transition away from DOS.  The transition wasnt happening, and this allowed it to occur.

  1. dteven says:

December 27, 2007 at 12:13 am

truly one of MSFTs more elegant and clever solutions.

Microsoft didnt invent the DOS extender.  Phar Lap and Rational Systems did.

[But DOS extenders let MS-DOS do the real file system work at the end of the day. -Raymond]

  1. Grijan says:

December 26, 2007 at 10:47 pm

Dave said:

Have you tried installing NT 4 on the recommended minimum memory?

Yes, I have run Windows NT 4 for five years (from 1997 to 2002) with several different configurations, the first one being a Pentium 75 with 16 Mb of RAM. It felt reasonably responsive, unless I opened more applications than fitted in RAM and it started paging. Anyway, NT 4 was a bit slower than Windows 3.1 or 95 on the same hardware (not surprisingly), but, for me, the stability made it worth.

My Pentium 75 computer had a bug in the motherboard, and sometimes, after a reboot, it would only see the first 8 Mb of RAM, requiring a hard reset to fix it. When I didnt notice it at the POST screen, NT 4 would try to boot and it always succeeded, arriving at the desktop after several minutes of frenzy paging :-) . So, I can assure you that even if the official specs say NT 4 requires 12 Mb of RAM, it can boot with just 8 Mb.

The last configuration I ran NT 4 on, just before switching to XP, was an AMD K7 500 with 128 Mb of RAM. Each time I had to sit on a comparable Windows 98 machine, I found no noticeable difference in speed in either way, but felt that memory-intensive applications usually ran worse in 98.

  1. Aidan Thornton says:

December 27, 2007 at 10:56 am

Myria: most copy protection schemes are evil, evil monstrosities that make dodgy assumptions, do awful things to system security and/or break at the slightest change.

Its just their nature the requirements inevitably result in nasty, evil code that does several dozen things which it has no business doing and which have serious issues. If Microsoft wanted to do the right thing, theyd pick some of the worse practices and refuse the offending software permission to use their trademarks and "compatible with xxx" logos.

The Wine devs analysed a particularly evil example recently. Apparently, it disassembled all entry points to certain system libraries and did analysis of the code. If it didnt like what it saw, it aborted execution.

This has to be a app compat experts worst nightmare, particularly since it can apparently follow several levels of jumps into non-exported code. Also, many of the criteria are statistical with a threshold for acceptance, so it probably wouldnt even need compiler changes or unusual code to trip it.

(Of course, the fact that this made the code incompatible with Linux means that Microsoft is probably more likely to reward than punish the companies involved.)

  1. cmov says:

December 27, 2007 at 3:20 pm

A RAID 0 array with 10krpm disks and a decent controller can perform really well when the memory manager is paging like if theres no tomorrow. Even though to the end user this may be totally meaningless, the computer is still pretty fast at what it does.

So Im being the hardware guy here: its a software problem. I know software people like to blame the hardware but theyre wrong. TBH Im not a hardware geek and my computers probably wont run Vista very well if at all, but its getting annoying to hear people cry that theyve installed another GiB or 2 of RAM and things arent any faster. They shouldve known better.

To improve software performance by adding hardware is "cheating". It doesnt solve the problem, it merely works around it. Use memory profilers or at the very least plain task manager to measure memory usage, make sure there are no suprises.

To be a bit more ontopic here: A typical DOS program could run well within low memory (which was like, the famous and misquoted(?) 640kB). Ofcourse a minimal Windows program needs at least 2MiB but more realistically 5MiB, still programs should be designed to use no more memory then neccesary for its purpose.

  1. Scott says:

December 27, 2007 at 5:17 pm

@Nobody Real:

I never got the sense that Windows was a shell, reading "Schulmans Inside Windows 95".  I thought he made a rather strong case that DOS was pretty much gone.  He goes through a lot of trouble to explain all that VMM32.SYS was really the boss and not MS-DOS.  I remember a lot elaborate examples, and it wasnt the fine print.

  1. Igor Levicki says:

December 27, 2007 at 6:35 pm

"You know, funny thing is, this is the same problem plaguing the transition from 32-bit and 64-bit, and probably close to the same reason Vista came out in both versions."

Yeah… only this time situation is vastly different. You can buy 8GB of DDR2-800 for as low as $175 and 32-bit Vista cant use more than 3GB, not to mention that if you run three-way SLI with 8800GTX Ultra, those 3GB quickly go down to 1.75GB and with less than 4GB Vista is unusable anyway unless you consider using calculator and notepad as a serious computer use.

  1. Triangle says:

December 27, 2007 at 11:16 pm

Thursday, December 27, 2007 3:20 PM by cmov

" … its getting annoying to hear people cry that theyve installed another GiB or 2 of RAM and things arent any faster. They shouldve known better."

Obviously youve never met an average Windows user.

"To be a bit more ontopic here: A typical DOS program could run well within low memory (which was like, the famous and misquoted(?) 640kB). Ofcourse a minimal Windows program needs at least 2MiB but more realistically 5MiB, still programs should be designed to use no more memory then neccesary for its purpose."

That is true. However: Youre average DOS program doesnt have translucent window borders, and a very long time ago Windows gave up on being compact. The cost of RAM has dropped, so Microsoft simply doesnt seriously optimize memory usage anymore.

  1. Yuhong Bao says:

December 28, 2007 at 2:58 pm

"You can buy 8GB of DDR2-800 for as low as $175 and 32-bit Vista cant use more than 3GB, not to mention that if you run three-way SLI with 8800GTX Ultra, those 3GB quickly go down to 1.75GB"

Until you enable PAE, then the physical address space is expanded to 36-bit.

BTW, in case you are confused about the interaction between PAE and NX:

http://yuhong386.spaces.live.com/blog/cns!57E2793D0C53276F!147.entry

  1. Sam says:

December 28, 2007 at 4:38 pm

Igor: not to mention that if you run three-way SLI with 8800GTX Ultra, those 3GB quickly go down to 1.75GB

No. Whats with the myth that graphics cards map their entire video RAM into the proccessors address space?

They dont. They use an "apature" a small(ish) "window" of RAM that is mapped to the part of graphics memory that the proccessor wants to use at that particular moment.

On systems that Ive seen, this apature tends to be around 128MB, although it could be larger on high-performance systems.

  1. AlmostAlive says:

December 29, 2007 at 2:10 am

This was an awesome article — throughly enjoyed it!  

Most people complaining about Windows 95 have completely forgotten what things were like back then.  If you had a CD-ROM, you were quite likely using an MS-DOS driver to access it.  I still had plenty of DOS apps that required me to exit Windows to run (like games, demos, etc).  And I ran Windows 95 in 4MB of RAM and it worked great.  This was not a time for NT 3.51 to be in the hands of regular people!

  1. The purpose of DOS under Windows 95 « Surviving Technology says:

December 29, 2007 at 7:57 pm

PingBack from http://jamesnt.wordpress.com/2007/12/30/the-purpose-of-dos-under-windows-95/

  1. Yuhong Bao says:

December 30, 2007 at 1:44 am

Unfortuately however, even if Win32 existed since NT 3.1, Windows 95 encouraged a lot of Win32 apps that did not handle NTs security well, causing trouble when 9x was finally abandoned. Originally it was supposed to be after 98, but it was later pushed to after Me. BTW, be glad Nepture did not release, else 9x vs NT would be even more confusing.

  1. Gazpacho says:

December 30, 2007 at 1:22 pm

Warn off the Slashdot trolls, get spammed. Its a no-win situation.

  1. SRS says:

December 30, 2007 at 3:50 pm

If you think that win 3.1 was just a simple shell over DOS, its instructive to do some research on win386.exe (remember 386-Enhanced mode, anyone?). The vmm + numerous vxds inside win386.exe were a new protected mode OS that certainly wasnt DOS we just didnt know it at the time…

  1. Miral says:

December 31, 2007 at 3:53 am

"Until you enable PAE, then the physical address space is expanded to 36-bit."

Ive enabled PAE on my Vista 32-bit box with 4GB physical RAM, and it can still only see 3GB.  So Im calling shenanigans.

And BTW, Raymond, I think youre getting pingback spam.  Just a hunch.  :)

  1. /dev/null says:

January 12, 2008 at 1:38 am

I read Raymond Chens blog from time to time, somewhat because hes a really conversational writer, and somewhat because hes got lots of interesting things to say about the history of Windows. I was amused by this post about MS-DOS…

Comments are closed.

Skip to main content

Follow Us

News

Holy cow, I wrote a book

Basics

Categories

Archives

Privacy & Cookies Terms of Use Trademarks

© 2018 Microsoft