home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 163 / QTEC9305.ZIP / VIRTMEM.TEC < prev    next >
Text File  |  1993-02-23  |  5KB  |  103 lines

  1. ID:VM DESQview/X: Virtual Memory
  2. Quarterdeck Technical Note # 130
  3. By Susan Easmon
  4. Last Revision: 23 February 1993
  5.  
  6.  
  7. WHAT IS VIRTUAL MEMORY?
  8.  
  9. Virtual memory allows a computer to work as if it has more RAM than is
  10. physically present.  This is done through memory addressing that involves
  11. storing some parts of the program on disk and other parts in memory.  When
  12. parts of the program that are not in physical memory are needed they are
  13. loaded from disk.  The operating system (OS) determines where the information
  14. is located and where it must go, in order to minimize any performance loss.
  15.  
  16.  
  17. HOW DOES DVX USE VIRTUAL MEMORY FOR ITS DISPLAY SERVERS?
  18.  
  19. The display servers use a 16-bit VMM (Virtual Memory Manager) configuration
  20. file which can be found in the \DVX\SERVER directory.  DESQview/X display
  21. servers have the ability to use your system's free disk space for virtual
  22. memory.
  23.  
  24. The 256-colour server uses XC16.VMC as its configuration file and the
  25. 16-colour server uses XB16.VMC as its configuration file.
  26.  
  27. The defaults for both .VMC files are:
  28.  
  29. minmem =  600             - The minimum amount of RAM managed by the VMM.
  30. maxmem =  1000            - The maximum amount of RAM managed by the VMM.
  31. swapmin = 128             - The size of the swapfile at startup.
  32. swapinc = 128             - The increment by which a swapfile grows (in K).
  33. swapname=tmp\server.swp   - The swapfile name and location.
  34. reservelow = 16           - Reserve 16K of low DOS memory for use by the VMM.
  35. freelow                   - Free all low memory if program does Spawn().
  36. envlow                    - Allocate environment space from low memory.
  37.  
  38. The figures on the MINMEM and MAXMEM field come from your pool of expanded
  39. memory.  The display server uses RAM (physical memory) up to the MAXMEM
  40. limit before it starts using virtual memory, i.e., before it starts to swap
  41. to disk. You can tell that virtual memory is being used when system
  42. performance degrades and your computer accesses the hard disk without one
  43. of your programs explicitly reading or writing to the hard disk (i.e. the
  44. light starts to flash continuously).
  45.  
  46. Please note that virtual memory is at least several THOUSAND times slower
  47. than physical memory.  If virtual memory becomes active, and you have
  48. sufficient expanded memory available on your system, you may wish to increase
  49. the MAXMEM parameter for the appropriate display server and restart DVX to
  50. see if this will improve the performance of your computer.
  51.  
  52. Since the 256-colour server tends to use quite a bit more RAM than the
  53. 16-colour server, it will more likely benefit from more server memory.  In
  54. any case, regardless of which server is being used, it will become obvious
  55. that virtual memory is being used when system performance degrades ie. the
  56. hard disk light starts to flash continuously.   As mentioned earlier on,
  57. depending on how much RAM you have available, you may try increasing MAXMEM
  58. to 2000; if performance does improve, you may try increasing it again to 3000
  59. to see if you get even better results. 3000 should be adequate in all but the
  60. most unusual circumstances.
  61.  
  62. It is IMPORTANT to remember that you should actually have the physical RAM
  63. available before increasing the figure in the MAXMEM field and you also need
  64. to make sure that you do have some expanded memory left over if you do run
  65. other DOS applications, in other words do NOT allocate all the expanded
  66. memory to the server, because it will use it all IF and WHEN the need arises
  67. and that will basically leave you with no memory for running DOS
  68. applications.
  69.  
  70.  
  71. THE 32-BIT VIRTUAL MEMORY FEATURE
  72.  
  73. The second virtual memory system in DESQview/X is a 32-bit VM intended for use
  74. with large applications built using the 32-bit DOS Extender. This VM is
  75. configured by setting options in the \DVX\DOS4GX.CFG file. Quarterdeck ships
  76. no applications in the current release that use this VM.
  77.  
  78. The default for the 32-bit VM is as follows:
  79.  
  80.  
  81. [VMM]
  82.  
  83. on = n                    - Enables VMM. The default is off (n).
  84. minmem = 64               - The maximum amount of RAM managed by the VMM.
  85. maxmem = 8192             - The maximum amount of RAM managed by the VMM.
  86. virtualsize = 8192        - Maximum virtual memory
  87. swapmin = 2048            - The size of swapfile at startup
  88. swapinc = 1024            - The increment by which a swapfile grows
  89.  
  90. ******************************************************************************
  91. *          Trademarks are property of their respective owners.               *
  92. *   This technical note may be copied and distributed freely as long as it   *
  93. *   is distributed in its entirety and it is not distributed for profit.     *
  94. *          Copyright (C) 1993 by Quarterdeck Office Systems                  *
  95. ************************** E N D   O F   F I L E *****************************
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.