home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / osotwper.txt < prev    next >
Text File  |  1997-03-23  |  9KB  |  215 lines

  1. OSOTWPER - QUESTIONS ABOUT SWAPPER.DAT, LIBPATH, PERFORMANCE, AND MORE
  2. 02/02/96
  3.  
  4. =======================================================================
  5.       Questions about SWAPPER.DAT, LIBPATH, Performance, and More
  6.                             OS/2 Warp
  7. =======================================================================
  8.  
  9. Please Read Entire Document for Full Explanation of Procedures
  10. --------------------------------------------------------------
  11.  
  12. DESCRIPTION
  13.  
  14. This document contains frequently asked questions about the kernel in 
  15. OS/2 Warp and a few questions about the BonusPak.
  16.  
  17. RESOLUTION
  18.  
  19. Why is my SWAPPER.DAT file larger in OS/2 Warp?
  20.  
  21.   OS/2 Warp now swaps system DLLs (dynamic link libraries) to the
  22.   SWAPPER.DAT file when needed instead of just overwriting them in
  23.   memory. This makes it much quicker to recall them. A lot of
  24.   overhead is required to load a shared DLL from the file system
  25.   versus saving it and its associated system data in the SWAPPER.DAT
  26.   file.
  27.  
  28. Where is the best place to put the SWAPPER.DAT file?
  29.  
  30.   The best place for SWAPPER.DAT is in the root directory on a drive
  31.   with a good amount of free space, little disk activity, and low
  32.   fragmentation percentage. The SWAPPER.DAT file stores information in
  33.   4 KB pages, so if using the FAT file system, the normal 2 KB cluster
  34.   size is ignored, and a 4 KB cluster size is used to prevent
  35.   fragmentation of memory page frames. The system searches for the
  36.   largest amount of contiguous free space on the drive that is
  37.   specified in the SWAPPATH statement of the CONFIG.SYS file, and
  38.   creates the SWAPPER.DAT file to the initial size in that unfragmented
  39.   free space to enhance performance.
  40.  
  41. How do I use the Dynamic LIBPATH?
  42.  
  43.   The LIBPATH statement in the CONFIG.SYS file has not changed. It is
  44.   not an environmental variable, and any changes made to it do not take
  45.   effect until a shutdown and restart are done. However, there are now
  46.   two new environmental variables that the system uses when an
  47.   application is looking for a DLL (dynamic link library). They are:
  48.  
  49.   * SET BEGINLIBPATH=path
  50.   * SET ENDLIBPATH=path
  51.  
  52.   where path is the location of the DLLs.
  53.  
  54.   They are searched in the following order:
  55.  
  56.   1. BEGINLIBPATH (environmental variable)
  57.   2. LIBPATH (CONFIG.SYS)
  58.   3. ENDLIBPATH (environmental variable)
  59.  
  60. How can I improve my startup performance?
  61.  
  62.   You can do a few things to make sure your startup time is minimized:
  63.  
  64.   * Make sure the Windows Fast Load option is turned off. This loads a
  65.     DOS and Windows session in the background during startup. If you
  66.     have less than 6 MB of memory, it should be turned off. To do this:
  67.  
  68.     1. Open OS/2 System.
  69.     2. Open System Setup.
  70.     3. Select WIN-OS/2 Setup; the Settings notebook opens.
  71.     4. Make sure there is no check mark for Fast load.
  72.  
  73.   * Do not archive your Desktop on every restart. You should archive
  74.     only when your Desktop customization is just how you want it. The
  75.     Archive tab is on the Settings notebook for the Desktop.
  76.  
  77.   * Use multiple CONFIG.SYS files to load certain device drivers,
  78.     depending on what you plan to do during a particular startup
  79.     session. For example, the Internet Access Kit has several device
  80.     drivers, which in low-memory systems, can use a lot of the
  81.     available free memory, causing some swapping to occur. By having
  82.     one CONFIG.SYS file with the device drivers remarked out, and
  83.     another with the device drivers present, at startup you can choose
  84.     whether to load support for the Internet Access Kit or not.
  85.  
  86.     See the OS/2 documentation for information about creating multiple
  87.     CONFIG.SYS files and activating them in the ALT+F1 recovery menu.
  88.  
  89.   * Add the SET RESTARTOBJECTS=STARTUPFOLDERSONLY statement to the
  90.     CONFIG.SYS file. This causes the Workplace Shell to restart only
  91.     the objects you have in the Startup folder or in the STARTUP.CMD
  92.     file.
  93.  
  94. Why does OS/2 Warp run better on 4 MB systems?
  95.  
  96.   Some of the factors that contribute to OS/2 Warp running faster are:
  97.  
  98.   * A new link parameter, /EXEPACK, which was used on many system files
  99.     when OS/2 Warp was compiled, compresses resource and message files
  100.     by 20 to 30%. These files load 2 to 3% faster, on average.
  101.  
  102.   * Some page frames are "zero compressed" (similar to PKZIP) and put
  103.     in areas of memory that is already allocated but that has extra
  104.     space. This allows a page frame to be swapped from RAM to RAM
  105.     (which happens in nanoseconds) versus swapping from RAM to the hard
  106.     disk (which takes milliseconds). Up to 250 of these pages can be
  107.     moved to different areas of RAM instead of the SWAPPER.DAT file.
  108.  
  109.   * Many system DLLs (dynamic link libraries) are now being swapped out
  110.     to the hard disk. This makes it much quicker to recall them. A lot
  111.     of overhead is required to load a shared DLL from the file system
  112.     versus saving it and its associated system data in the SWAPPER.DAT
  113.     file.
  114.  
  115.   * The SWAPPER.DAT file, when initialized, is put in the largest
  116.     contiguous space of the FAT file system. Previously the system was
  117.     not concerned with swapper fragmentation.
  118.  
  119.   * The internal file system in the SWAPPER.DAT file now has a 4 KB
  120.     cluster size instead of 2 KB. This change makes swapping a 4 KB
  121.     page more efficient.
  122.  
  123.   * Some system DLLs have been merged, so less overhead is needed to
  124.     load them into memory and notify all tasks of their locations. For
  125.     example, PMMERGE.DLL contains three old system DLLs: PMGRE.DLL,
  126.     PMSHAPI.DLL, and PMWIN.DLL. Although these DLLs are still in OS/2
  127.     Warp, their function is simply to forward their calls to
  128.     PMMERGE.DLL. Some other DLLs that are merged are DOSCALL1.DLL and
  129.     MMPM.DLL.
  130.  
  131.   * A method of addressing called basing puts some system DLLs at an
  132.     absolute address to reduce the overhead of finding them in memory.
  133.  
  134. How do you create columns in the IBM Works Word Processor?
  135.  
  136.   To define columns in the BonusPak Word Processor, select the Columns
  137.   icon on the far right below the Help pull-down. From there you can
  138.   determine the number of columns and rows, as well as other options. A
  139.   Help button in the bottom-right corner of the page can further help
  140.   you in setting up the columns.
  141.  
  142. When installing IBM Works, I get an EPFIE609 error. How do I get around
  143. this problem?
  144.  
  145.   The EPFIE609 error message appears when the Install utility program
  146.   of IBM Works is unable to successfully unpack the INSTALL.IN_ file.
  147.  
  148.   If installing from diskettes:
  149.  
  150.   1. Exit the IBM Works Installation program.
  151.  
  152.   2. Type MD C:\WORKTEMP (or some other name) and press Enter to create
  153.      a temporary directory.
  154.  
  155.   3. Insert IBM Works Diskette 1 in drive A; then type the following
  156.      and press Enter:
  157.  
  158.         UNPACK A:\INSTALL.IN_ C:\WORKTEMP
  159.  
  160.   4. Type CD C:\WORKTEMP and press Enter to change to the temporary
  161.      directory.
  162.  
  163.   5. Look for the file, xxxIDLDS.EXE (xxx is any 3 characters).
  164.  
  165.   6. Execute the file by typing xxxIDLDS /4=A:\ and pressing Enter.
  166.  
  167.   7. Complete the installation.
  168.  
  169.   8. Delete the files in the temporary directory; then remove the
  170.      temporary directory.
  171.  
  172.   If installing from CD:
  173.  
  174.   1. Exit the IBM Works Installation program.
  175.  
  176.   2. Type MD C:\WORKTEMP (or some other name) and press Enter to create
  177.      a temporary directory.
  178.  
  179.   3. Insert the BonusPak CD into CD-ROM drive; then type the following
  180.      and press Enter (e is the CD-ROM drive):
  181.  
  182.         UNPACK e:\US\IBMWORKS\INSTALL.IN_ C:\WORKTEMP
  183.          
  184.   4. Type CD C:\WORKTEMP and press Enter to change to the temporary
  185.      directory.
  186.  
  187.   5. Look for the file, xxxIDLDS.EXE (xxx is any 3 characters).
  188.  
  189.   6. Execute the file by typing xxxIDLDS /4=e\US\IBMWORKS and pressing
  190.      Enter.
  191.  
  192.   7. Complete the installation.
  193.  
  194.   8. Delete the files in the temporary directory; then remove the
  195.      temporary directory.
  196.  
  197. When I select the Event Monitor in PIM (Personal Information Manager),
  198. nothing happens. What's wrong?
  199.  
  200.   If the icon has diagonal lines through it but nothing comes to the
  201.   foreground, it is working as designed. The Event Monitor has no user
  202.   interface; it is a timer that is used by the PIM mini-applications.
  203.   All functions, such as alarms, are set in the PIM mini-applications,
  204.   not in the Event Monitor.
  205.  
  206. ______________________________________________________________________
  207. IBM disclaims all warranties, whether express or implied, including 
  208. without limitation, warranties of fitness and merchantability with 
  209. respect to the information in this document. By furnishing this 
  210. document, IBM grants no licenses to any related patents or copyrights.  
  211. Copyright (c) 1994, 1996 IBM Corporation. Any trademarks and product 
  212. or brand names referenced in this document are the property of their 
  213. respective owners. Consult your product manuals for complete trademark 
  214. information. 
  215.