home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / pcboard / maxdvwin.zip / MAXDVWIN.PTN < prev   
Text File  |  1993-02-16  |  14KB  |  272 lines

  1. PCBTechnote : Maximizing Memory Available To Each DESQview Window
  2.   Written by: Steve Catmull - CDC Tech Support
  3.        
  4.        Date : 02/16/93
  5.  
  6.  
  7. DISCLAIMER:  The information provided in this document is provided as is 
  8. without any warranty of any type or guarantee of fitness of use.  The 
  9. configuration detailed in this document have been tested, however 
  10. results may vary from system to system and you assume full 
  11. responsibility for trying any of the above suggestions on your system. 
  12. It is suggested that before you attempt any of the suggestions listed, 
  13. that you completely back-up your system.
  14.  
  15. PCBoard is a registered trademark of Clark Development Company, Inc. 
  16. QEMM and DESQview are trademarks of Quarterdeck Office Systems.
  17.       
  18. *****************************************************************************
  19.  
  20. One concern when running PCBoard nodes under DESQview, is the amount of 
  21. memory available in each window that you open.  If you do not have 
  22. enough memory, then you may see one of the following messages in the 
  23. upper right hand side of your screen:
  24.  
  25.    * Swapping...
  26.    * Insufficient memory to open that program...
  27.    * A non-swappable window is in the way.
  28.    
  29. NOTE:  When using communications programs like PCBoard, you should never 
  30.        see the first message (Swapping).  That message informs you that 
  31.        the program is swapping out of memory and that it *will* stop 
  32.        executing at this point.  Obviously, for a program like PCBoard 
  33.        which needs to always be running it would present a serious 
  34.        problem.  The way around this is to go into DESQview's Setup 
  35.        program, select Performance, and then set "Allow Swapping of 
  36.        Programs" to "N".
  37.        
  38. For the remainder of this document the following assumptions will be made:
  39.  
  40.     * 80386/80486 computer is being used
  41.     * VGA or SVGA video card is installed
  42.     * DESQview v2.4+ is being used
  43.     * QEMM is being used as the memory manager.
  44.       
  45.  
  46. Determining How Big Your DESQview Windows Can Be
  47. ------------------------------------------------
  48.  
  49. When you have DESQview loaded, you can open the Memory Status Window to 
  50. see how much memory you have available for each window on your system.  
  51. Below is a sample display of the Memory Status window:
  52.  
  53.  
  54.                          Total     Total       Largest
  55.                          Memory    Available   Available
  56.  
  57.    Common Memory         14336       8138        8128
  58.   
  59.    Conventional Memory    538K        71K         68K
  60.  
  61.    Expanded Memory       5024K      3456K    -=> 528K <=-
  62.                                                                   
  63.  
  64. When you are looking at this display, you should look at the two 
  65. right-hand bottom numbers.  The larger of these two numbers is the 
  66. largest size that the next DESQview window can be.  In this example, you 
  67. can see that 528K is the largest that the next window can be.
  68.  
  69. NOTE:  DESQview has a certain amount of overhead associated with each 
  70.        window that it opens.  This depends on some of the options set in 
  71.        the PIF file.  Keep this in mind when you view the Memory Status 
  72.        report. The numbers that it reports does not include any overhead 
  73.        figures.
  74.  
  75.  
  76. I Have More Memory Available At The DOS Prompt.  What Happened?
  77. ---------------------------------------------------------------
  78.  
  79. The fact that you need to keep in mind, is that you are no longer at the 
  80. DOS prompt when you are in DESQview -- You are in a multitasker.  This 
  81. is an *important* fact to remember.  What may increase the conventional 
  82. memory that you have available at bootup may actually give you LESS 
  83. memory per window in DESQview.  
  84.  
  85.  
  86. How Can I Increase The Memory Available To Each Window?
  87. -------------------------------------------------------
  88.  
  89. Ah, the age old question.  Before you go any further, you need to 
  90. understand how DESQview loads itself into memory.  DESQview will first 
  91. try to use HMA (1024K-1088K).  If it needs more, it will then proceed to 
  92. load itself into high memory (640K-1024K).  If it still needs more 
  93. memory then it will proceed to use conventional memory.  The following 
  94. list summarizes the order of memory that DESQview will use:
  95.  
  96.      1.  HMA (1024-1088K)
  97.      2.  High Memory (640K-1024K)
  98.      3.  Conventional Memory (0K-640K)
  99.      
  100. Obviously, you want DESQview to load in either HMA or high memory if at 
  101. all possible.  All totaled up, that is about 448K of memory that 
  102. DESQview could theoretically use.  However, there are other factors that 
  103. come into play.  For example, your high memory may be partially used up 
  104. by the following:
  105.  
  106.      * TSRs or device drivers loaded in AUTOEXEC.BAT and CONFIG.SYS
  107.      * ROM or Adapter RAM for the hardware in your system.
  108.      * Video memory
  109.      * EMS Page Frame
  110.      
  111. High memory is where you will want to do all of your fancy footwork.  To 
  112. begin, you will want to remove all "un-necessary" TSRs and device 
  113. drivers. Some of the perennial favorites like DOSKEY and ANSI 
  114. (DVANSI.COM) can be loaded as TSRs *after* DESQview is loaded.
  115.  
  116. If you are still need more high memory then you have to enter sacrifice 
  117. mode.  In other words, from this point on, you will have to start 
  118. sacrificing features of your machine to get more memory.  Do not worry, 
  119. it is not as bad as it sounds.
  120.  
  121. The easiest change you can make is to add FRAME=NONE on your QEMM386.SYS 
  122. command line.  This will give you an additional 64K of high memory that 
  123. you can use.  What you just sacrificed was EMS memory.  By setting no 
  124. page frame, you disable EMS memory for your applications.  However, most 
  125. applications that support EMS also support XMS which you do not need a 
  126. page frame for and consequently would still be available.
  127.  
  128. If you *still* need more high memory, the next thing you could do is 
  129. sacrifice your ability to use VGA graphics or VGA (80x50) text mode. 
  130. This would allow you to gain 64K of high memory (or 64K of conventional 
  131. memory if you use VIDRAM.EXE and the VIDRAMEMS option on your 
  132. QEMM386.SYS command line.
  133.  
  134.  
  135. I've Heard There Are Other Ways To Get More Memory
  136. --------------------------------------------------
  137.  
  138. Yes, may be able to get even more high memory by taking advantage of 
  139. QEMM 6.x's Stealth mode and performing the analysis feature of QEMM.  
  140. However, I prefer to use the methods listed before for two simple 
  141. reasons: 
  142.  
  143.    * They should work well on all 386/486 machines.
  144.    * They can be less time consuming to incorporate.
  145.    
  146. The choice is yours.  You may decide that you really need VGA 
  147. capabilities so that you can run DESQview in 30, 50, or 60 line mode.  
  148. In this case, you could not use technique that disables VGA.  Likewise, 
  149. you may have a driver or other program which exclusively uses EMS 
  150. memory.  If that was the case, then you could not get rid of your page 
  151. frame as described earlier.
  152.  
  153. NOTE:  If you do not use QEMM's Stealth mode, then take out DOS=HIGH
  154. in your CONFIG.SYS (if it is in there).  If you are using Stealth mode, 
  155. then experiment with DOS=HIGH to see if it increases or decreases your 
  156. window size.
  157.  
  158.  
  159. THE RESULTS 
  160. =============================================================================
  161.  
  162. Obviously, you are probably interested in the numbers involved.  The 
  163. following shows the maximum window size that could be opened using the 
  164. various techniques described above.
  165.  
  166.      ┌─────────────────────────────────────────────────────────────┐
  167.      │                                                             │
  168.      │  CONFIG.SYS                                                 │
  169.      │  ------------------------------------------                 │
  170.      │  DEVICE=C:\QEMM\QEMM386.SYS RAM                             │
  171.      │  SHELL=C:\DOS\COMMAND.COM C:\DOS\ /E:768                    │
  172.      │  FILES=100                                                  │
  173.      │  FCBS=1,0                                                   │
  174.      │  BUFFERS=1                                                  │
  175.      │                                                             │
  176.      │  AUTOEXEC.BAT                                               │
  177.      │  ------------------------------------------                 │
  178.      │  C:\QEMM\LOADHI /R:4 C:\QEMM\BUFFERS=4                      │
  179.      │  C:\QEMM\LOADHI /R:2 C:WINDOWS\SMARTDRV.EXE                 │
  180.      │  C:\QEMM\LOADHI /R:3 C:\DOS\SHARE                           │
  181.      │  PROMPT $P$G                                                │
  182.      │  VERIFY=OFF                                                 │
  183.      │  PATH=C:\DOS;C:\UTL;C:\PCB;C:\QEMM                          │
  184.      │  C:                                                         │
  185.      │  CD\DV                                                      │
  186.      │  XDV                                                        │
  187.      │                                                             │
  188.      │                        Total     Total       Largest        │
  189.      │                        Memory    Available   Available      │
  190.      │                                                             │
  191.      │  Common Memory         14336      10650        9324         │
  192.      │                                                             │
  193.      │  Conventional Memory    586K       579K        572K         │
  194.      │                                                             │
  195.      │  Expanded Memory       5088K      2928K    -=> 560K <=-     │
  196.      │                                                             │
  197.      │                                                             │
  198.      │  Summary:  This is our base configuration.  As you can see  │
  199.      │  there is 560K of memory available for each DESQview window │
  200.      │  that was opened.                                           │
  201.      │                                                             │      
  202.      └─────────────────────────────────────────────────────────────┘
  203.        
  204.  
  205.      ┌─────────────────────────────────────────────────────────────┐
  206.      │                                                             │
  207.      │  Adding FRAME=NONE to the QEMM386.SYS Command Line          │
  208.      │                                                             │
  209.      │                        Total     Total       Largest        │
  210.      │                        Memory    Available   Available      │
  211.      │                                                             │
  212.      │  Common Memory         14336      10698       10698         │
  213.      │                                                             │
  214.      │  Conventional Memory    616K       609K        572K         │
  215.      │                                                             │
  216.      │  Expanded Memory       5024K      2912K    -=> 560K <=-     │
  217.      │                                                             │
  218.      │                                                             │
  219.      │  Summary:  Notice that the maximum size of the window       │
  220.      │  did not change.  However, you now have 64K of additional   │
  221.      │  high memory that you could use to load CD-ROM drivers,     │
  222.      │  network drivers, etc.                                      │
  223.      │                                                             │
  224.      └─────────────────────────────────────────────────────────────┘
  225.  
  226.  
  227.      ┌─────────────────────────────────────────────────────────────┐
  228.      │                                                             │
  229.      │  Adding VIDRAMEMS to the QEMM386.SYS Command Line and       │
  230.      │  adding VIDRAM EMS ON to AUTOEXEC.BAT.                      │
  231.      │                                                             │
  232.      │                                                             │
  233.      │                        Total     Total       Largest        │
  234.      │                        Memory    Available   Available      │
  235.      │                                                             │
  236.      │  Common Memory         14336      10698       10698         │
  237.      │                                                             │
  238.      │  Conventional Memory    702K       694K        667K         │
  239.      │                                                             │
  240.      │  Expanded Memory       4960K      2848K        656K         │
  241.      │                                                             │
  242.      │                                                             │                                                                
  243.      │  Summary:  Here the amount of memory for each DESQview      │
  244.      │  window really jumped.  This is because we disabled VGA     │            
  245.      │  graphics and used VIDRAM to extend conventional memory     │
  246.      │  all of the way to 736K.  If you would rather have high     │
  247.      │  memory than the additional conventional memory, you can    │
  248.      │  just skip loading VIDRAM in your AUTOEXEC.BAT              │
  249.      │                                                             │
  250.      └─────────────────────────────────────────────────────────────┘
  251.  
  252.  
  253. Wrapping It All Up
  254. -----------------------------------------------------------------------------
  255.  
  256. There are many different ways you can increase your high memory so that
  257. DESQview loads in such a way that you get larger windows.  You need to
  258. determine the methods described earlier that will suit you best.
  259.  
  260. The suggestions listed in this document are very simple modifications 
  261. you can make to help increase your window size while still being able to 
  262. load your PCBoard nodes.  You should really contact Quarterdeck Office 
  263. Systems (the makers of DESQview and QEMM).  They would know best as far 
  264. as to what you can and cannot do with their software. 
  265.  
  266. The information that is contained in this document simply points out 
  267. some things that we have experimented with to increase DESQview's window 
  268. size.
  269.  
  270. *****************************************************************************
  271.  
  272.