home *** CD-ROM | disk | FTP | other *** search
/ Season's Greetings & Games Unlimited / UGOLD_cd2.iso / redhook / memory.txt < prev    next >
Text File  |  1995-04-01  |  6KB  |  139 lines

  1.      HOW TO GIVE YOUR COMPUTER MORE CONVENTIONAL MEMORY
  2.  
  3. One of the most common questions we receive at ImagiSOFT is
  4. "I have eight megabytes of memory in my computer, why does
  5. your program say that there isn't enough memory to run it?"
  6. The answer to this is that MS-DOS computers all have several
  7. types of memory:
  8.  
  9.    Conventional Memory, the first 640K
  10.    Upper Memory, the next 384K between 640K and 1 mega
  11.    Extended Memory (XMS), memory above 1 meg (defined with
  12.         EMM386.EXE)
  13.    Expanded Memory (EMS), memory above 1 meg (defined with
  14.         EMM386.EXE)
  15.  
  16. Sound confusing?  It is.  But the primary thing to you need
  17. to know is that Conventional Memory is the most
  18. precious--without it, few programs can run--even if you have
  19. eight megabytes of memory!  To check how much memory your
  20. computer has left, enter the command MEM /C and look for the
  21. column titled Conventional Memory.  If it says you have less
  22. than 550K free, your computer probably is not be configured
  23. properly.
  24.  
  25. The primary reason DOS 5.0 was so successful was that it
  26. provided good memory management, using a utility called
  27. HIMEM.SYS for 286 and 386 computers.  The purpose of
  28. HIMEM.SYS is to "Load High" into upper memory major portions
  29. of DOS, and other programs when you turn your computer on.
  30.  
  31. MEMMAKER
  32. ~~~~~~~~
  33. DOS 6.0 and DOS 6.2 provided a host of useful DOS utilities
  34. including SCANDISK, DEFRAG, and a real backup program.  One
  35. of the most useful utilities is a memory optimization
  36. utility called MEMMAKER which, for most people, takes care
  37. of their woes with memory.  If you have DOS 6.0 or 6.2 run
  38. MEMMAKER at your DOS prompt, and if you don't understand the
  39. questions as they appear on your screen accept the default
  40. answer. Your problems with insufficient conventional memory
  41. will likely disappear, and memory hungry programs such as
  42. Windows will run better.
  43.  
  44. ADVANCED USERS
  45. ~~~~~~~~~~~~~~
  46. If you have DOS 5.0 or if you are interested in learning
  47. what MEMMAKER is does to your computer, enter the command
  48. EDIT CONFIG.SYS at your C\> DOS prompt.  If you have a 386
  49. class computer, your CONFIG.SYS file should look similar to
  50. the following:
  51.  
  52.    buffers=20  (number can vary)
  53.    files=60    (number can vary)
  54.    device=c:\dos\himem.sys (always include this line)
  55.    device=c:\dos\emm386.exe noems (if you have 2 megs or
  56.         more and a 386 or 486)
  57.    dos=high,umb (always include this line (no umb on 286))
  58.  
  59. To optimize your memory, precede all memory resident .SYS,
  60. .EXE, and .COM programs in this file with "devicehigh = "
  61. instead of just "device =."  For example, replace
  62.    device = mouse.sys        with
  63.    devicehigh = mouse.sys.
  64. In most cases, following these few steps will increase your
  65. memory dramatically by putting these programs in upper memory
  66. instead of conventional memory.
  67.  
  68. After you are done editing CONFIG.SYS, EDIT AUTOEXEC.BAT.
  69. Your AUTOEXEC.BAT file will usually have something similar
  70. to the following:
  71.    verify on                  (optional)
  72.    set home = c:\bingo        (optional)
  73.    prompt $p$g                (could be different)
  74.    path \dos;c:\util          (probably much longer)
  75.    loadhigh \dos\mouse.com    (mouse driver)
  76.  
  77. The important thing to remember with AUTOEXEC.BAT is to use
  78. the loadhigh command on all resident .EXE and .COM programs
  79. to put these programs into upper memory.  For example,
  80. instead of loading the mouse into conventional memory with
  81. the command
  82.    \dos\mouse.com,
  83.    loadhigh \dos\mouse.com
  84. puts the mouse driver into upper memory.
  85.  
  86. When you are done making changes to CONFIG.SYS and
  87. AUTOEXEC.BAT, reboot your computer.  Enter the command
  88. MEM /C again, and you should see that your computer has much
  89. more conventional memory available.  If these simple changes
  90. don't help, try changing the order in which these programs
  91. are loaded "high" to fill any "holes" you see in your memory
  92. map listed on the screen by the MEM utility.
  93.  
  94. DESPERATION
  95. ~~~~~~~~~~~
  96. If you still need more Conventional Memory, your last option
  97. is to remove some of your memory resident programs with the
  98. "rem" statement.  EDIT CONFIG.SYS and AUTOEXEC.BAT again and
  99. insert REM in front of the .COM, .SYS, and .EXE files which
  100. you may not need.  For most users a good start is changing:
  101.  
  102.    devicehigh = c:\dos\setver.exe         to
  103.    rem devicehigh = c:\dos\setver.exe
  104.  
  105. The purpose of the SETVER utility is to make older DOS
  106. programs which must be run on a particular version of DOS,
  107. such as verion 3.3.  Few programs need this utility, and
  108. inserting the letters "rem" in front of this command removes
  109. it from your computer's memory.  If you discover that you
  110. need this program later, EDIT CONFIG.SYS again and remove
  111. the  "rem"  from the beginning of the  statement.   Removing
  112. SETVER will give you about 2K additional conventional memory.
  113.  
  114. If you do not understand what the function of a .SYS or .COM
  115. program is, use the "When in doubt, take it out" philosophy.
  116. Your computer will tell you if you remove something that it
  117. needs, such as a sound card driver or CD-ROM driver.  You
  118. might get lucky and remove an old driver that you no longer
  119. need!
  120.  
  121. SMARTDRV takes about 40K of conventional memory, and for
  122. many people, removing this program from memory makes sense.
  123. SMARTDRV speeds up your hard disk access by using part of
  124. your memory for temporary storage.  Remove it, and if you
  125. discover that some programs are much slower than they were
  126. before, especially Windows, put it back.
  127.  
  128.  
  129. Written by
  130. Mike Prestwich,
  131. ImagiSOFT, Inc.
  132.  
  133. June, 1992
  134. Revised December 1994
  135.  
  136. May be freely distributed.
  137.  
  138.  
  139.