WINDOWS 95 VIRTUAL MEMORY AND VIRTUAL CACHE-A DISCUSSION

By: Mark Stotzer


The terms "Virtual Memory" and "Virtual Cache" (vcache) are used frequently in Windows 95 newsgroup discussions. The function of both of these concepts in Windows 95 is related. At times, however, these terms are confused, abused or misused. To assist our ongoing discussions-allow me to attempt to clarify just what they are.


Virtual Memory: This feature allows part of your hard drive free space to become an extension of your RAM directly accessible by the CPU. The classic definition of "Virtual Memory" is basically the memory "address space" of the CPU. For any computer system it should be:

Total Virtual Memory=Total RAM+other memory (hard drive space, etc)

However, the term is twisted a bit by Microsoft with respect to Windows. The term "virtual memory" in most Windows notes usually means the size of the swap file. (Note: they also call it a "Page File"). So then, let me define a new term "Total Memory." In Windows 3.x running in the "386 Enhanced Mode"

Total Memory=Total RAM + size of the Permanent Swap File

In Windows 95, because it views all free drive space as a potential swap file it is:

Total Memory=Total RAM + Most of the free drive space on the swap file drive



Virtual Cache: This feature, found in Windows for WorkGroups 3.11 and Windows 95, sets aside a portion of your RAM to cache (keep a temporary copy) of any reads or writes of programs and data from/to your hard drive.

MaxFileCache=

MinFileCache=

I use Max=1024 and min=512 for my 16MB system. I'm still experimenting with the settings-as are many of you! Right now 1024/512 seems to be my system's sweet spot. Never set the Min=0! In my own testing it causes swapping to occur even sooner!


How are Virtual Memory and vcache related? If, as I suspect, the default settings for the Win95 vcache are too large (I've read Win95 tries initially to use all free RAM as the vcache) then:


Observations and Testing


For further Reading: Go to Microsoft's Knowledge Base pages and retrieve read/print these articles related to file system performance in Windows 95: Q140679 and Q138012 (This one talks about a BUG!).

Back to the Main Help Page