home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / textinfo / alltips.arj / 1305.TXT < prev    next >
Encoding:
Text File  |  1991-11-26  |  6.0 KB  |  114 lines

  1. Document 1305
  2. MEMORY USE
  3.  
  4. Initials:
  5.     MDC
  6.         11/2/91
  7.         DRDOS 6.0
  8.         
  9. Keywords:
  10.     MEM
  11.         MEMORY
  12.         EMM386.SYS
  13.         EXTENDED
  14.         EXPANDED
  15.         LENDING
  16.         EMS
  17.         XMS
  18.         
  19. Description:
  20.         When using the EMM386.SYS device driver, you may notice that the
  21.         MEM command can display a memory report that seems to show more
  22.         memory available than exists on your computer. For example,
  23.         consider the following EMM386.SYS device driver line on a
  24.         computer with 3,072 Kbytes of Extended memory:
  25.         
  26.         DEVICE=C:\DRDOS\EMM386.SYS /F=AUTO /K=AUTO /B=FFFF /R=AUTO
  27.         
  28.         This line has the effect of converting all Extended memory into
  29.         Extended via XMS and EMS (expanded) memory. The resulting MEM
  30.         report might show that the computer has 3,072 Kbytes of Extended
  31.         memory and 3,072 Kbytes of EMS memory under the "Total Bytes"
  32.         column, with 2,864 Kbytes of Extended via XMS memory and 2,864
  33.         Kbytes of EMS memory under the "Available" column as shown below.
  34.         
  35.         / Memory Type -------- Total ---------- Available ---\
  36.         |                  |                |                |
  37.         | Conventional     |    (    60K )  |    (   626K )  |
  38.         | Upper            |    (    96K )  |    (    79K )  |
  39.         | High             |    (    64K )  |    (    18K )  |
  40.         | Extended         |    ( 3,072K )  |    (     0K )  |
  41.         | Extended via XMS |        N/A     |    ( 2,864K )  |
  42.         | EMS              |    ( 3,072K )  |    ( 2,864K )  |
  43.         \----------------------------------------------------/
  44.         
  45.         To understand this, it might be helpful to view the total
  46.         Extended memory available on a computer as comprising a dynamic
  47.         pool of memory. This memory can be viewed as dynamic because it
  48.         is available to be accessed either as Extended via XMS memory or
  49.         as EMS (expanded) memory depending on the "/K" setting on the
  50.         EMM386.SYS device driver. In the case shown above, "/K=AUTO"
  51.         tells EMM386.SYS to allow ALL of the Extended memory pool to be
  52.         accessed as Extended via XMS memory and EMS memory in equal
  53.         portions. The MEM command therefore shows both amounts of memory
  54.         as being available because you or your applications might want
  55.         to use a portion or all of the memory pool as either Extended
  56.         via XMS memory or EMS memory. The "/K" switch can be used to put
  57.         a limit on the amount of EMS memory to be created from the total
  58.         memory pool. The following EMM386.SYS device driver line on the
  59.         same computer with 3,072 Kbytes of Extended memory will limit
  60.         the amount of EMS memory to be created from the total memory
  61.         pool by setting the "/K" option to "/K=1024":
  62.         
  63.         DEVICE=C:\DRDOS\EMM386.SYS /F=AUTO /K=1024 /B=FFFF /R=AUTO
  64.         
  65.         This line will still cause EMM386.SYS to convert all of the
  66.         memory pool into Extended via XMS, but it will limit the amount
  67.         of EMS to 1,024 Kbytes. The resulting MEM report might show that
  68.         the computer has 3,072 Kbytes of Extended memory and 1,024
  69.         Kbytes of EMS memory under the "Total Bytes" column, with 2,864
  70.         Kbytes of Extended via XMS memory still available but only 896
  71.         Kbytes of EMS memory under the "Available" column as shown below.
  72.         
  73.         / Memory Type -------- Total ---------- Available ---\
  74.         |                  |                |                |
  75.         | Conventional     |    (   640K )  |    (   626K )  |
  76.         | Upper            |    (    96K )  |    (    79K )  |
  77.         | High             |    (    64K )  |    (    17K )  |
  78.         | Extended         |    ( 3,072K )  |    (     0K )  |
  79.         | Extended via XMS |        N/A     |    ( 2,864K )  |
  80.         | EMS              |    ( 1,024K )  |    (   896K )  |
  81.         \----------------------------------------------------/
  82.         
  83.         You will notice in both of the above examples, that there is a
  84.         difference between the "Total Bytes" of Extended memory and the
  85.         "Available" bytes of Extended via XMS memory and a similar
  86.         difference between the "Total Bytes" of EMS memory and the
  87.         "Available" bytes of EMS memory. This is due to the amount of
  88.         "overhead" memory used by the EMM386.SYS software to convert the
  89.         memory pool into both types of available memory.
  90.         
  91.         XMS memory is extended memory created by memory management
  92.         software which conforms to the XMS specification developed by
  93.         Lotus, Intel, and Microsoft. The DR DOS memory management
  94.         software device driver (EMM386.SYS) fully supports this
  95.         specification and, as a result, initially converts ALL of the
  96.         computer's available extended memory into XMS extended memory.
  97.         This is the reason that there is no "Extended" memory listed in
  98.         the "Available" column of the DR DOS MEM report; it has all been
  99.         converted to XMS memory by the EMM386.SYS device driver. This is
  100.         also the reason why Extended via XMS lists as "N/A" under the
  101.         "Total Bytes" column; XMS memory is created by a software device
  102.         driver and is not present at boot time.
  103.         
  104.         Note:  EMS memory is listed with a specific value under the
  105.         "Total Bytes" column by the MEM report unlike the Extended via
  106.         XMS listing. EMS memory can be created by a software device
  107.         driver (like EMM386.SYS alone) or can be created by EMS
  108.         (LIM 4.0) hardware memory boards and their accompanying device
  109.         driver. This specific value is intended to reflect this EMS
  110.         memory created by the "/K" option on the EMM386.SYS device
  111.         driver line or "hardware" EMS memory created by certain
  112.         platforms, typically non- 386/386sx/486 platforms, which
  113.         actually contain EMS (LIM 4.0) hardware.
  114.