home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / SWAPSIZE.ZIP / SWAPSIZE.DOC < prev   
Text File  |  1992-04-18  |  4KB  |  113 lines

  1. SWAPSIZE.CMD v1.1                           Written by:  Bob Mahan
  2. ============                                             November, 1991
  3.  
  4.  
  5. Background
  6. ----------
  7. As a participant in the OS/2 2.0 Early Experience Program (EEP), I
  8. found that the OS/2 Swap file has a tendency to grow quite quickly
  9. based on the number of applications and RAM available on any given
  10. workstation.  Due to the limited amount of fixed disk space that I
  11. had available for the beta code, a close eye on the amount of free
  12. space remaining was needed to insure that I didn't over extend the
  13. virtual memory of my system.  To help accomplish this, I developed
  14. a small OS/2 REXX program.
  15.  
  16.  
  17. Description
  18. -----------
  19. SWAPSIZE.CMD is written in REXX and provides visual feedback on the
  20. status of disk swapping being performed by OS/2.  Every second (by
  21. default) the program queries the SWAPPER.DAT drive and file for size
  22. information.  This information is displayed in various colors (green,
  23. yellow, and red) to indicate the status of the system swapping.
  24.  
  25. In addition, parameters can be passed to the program to change the
  26. default amount of time spent waiting between pollings and request
  27. polling of additional drives.  Below is a syntax diagram for the
  28. SWAPSIZE.CMD program.
  29.  
  30.  
  31.  >> SWAPSIZE -.--------------------.-------------> <
  32.               `- n -.------------.-'
  33.                     `- drive(s) -'
  34.  
  35.  
  36.    Arguments:    n = number of seconds to delay between querys
  37.                      default of 1 display every second
  38.  
  39.           drive(s) = one or more drives (x:) to monitor
  40.                      default of drive with SWAPPER.DAT (5 max)
  41.  
  42. Usage
  43. -----
  44. Although there are many commercial products to perform various system
  45. monitoring tasks, this program along with the PULSE program that
  46. comes with OS/2 can be used to give a fairly good indication of the
  47. status of the operating system.  I have found that placing these two
  48. programs along with the system clock in a corner of the screen works
  49. effectively.  Below are the steps that I perform to get the CLOCK,
  50. SWAPSIZE, and PULSE set up.
  51.  
  52.   1.) Start SWAPSIZE program as an OS/2 window with a 16x5 font
  53.  
  54.   2.) Start PULSE program
  55.  
  56.   3.) Start CLOCK program
  57.  
  58.       Note:  These first 3 steps could be automatically done
  59.              when the system is started.
  60.  
  61.   4.) Move PULSE to upper right hand corner of screen and make it
  62.       just wide enough to keep the menu bar on one line.
  63.  
  64.       Note:  This step will only need to be done once, as the
  65.              PULSE program will remember its' position.
  66.  
  67.   5.) Move CLOCK to upper right hand corner of screen and make it
  68.       the same width as PULSE and just tall enough to cover the
  69.       title and menu bar of PULSE.  When this step is completed
  70.       the appearance should be a CLOCK on top with the PULSE just
  71.       below it.
  72.  
  73.       Note:  This step will only need to be done once, as the
  74.              CLOCK program will remember its' position.
  75.  
  76.   6.) Turn off the title bar for the CLOCK to increase the window
  77.       geometry.
  78.  
  79.   7.) Wait until SWAPSIZE has filled screen and begins to scroll
  80.  
  81.   8.) Size SWAPSIZE to display just 1 line of window and scroll
  82.       window to one line above bottom of window
  83.  
  84.   9.) Move SWAPSIZE to lower left side of the PULSE window so it
  85.       leaves about 1/4 to 1/3 of the graph visible (about 30
  86.       seconds worth)
  87.  
  88.  10.) Click on the CLOCK to hide the SWAPSIZE Title bar.
  89.  
  90.       These steps may seem alittle confusing so below is a very
  91.       crude drawing below.
  92.  
  93.                 .-------------------------------.
  94.                 :  1  1     1  1     1  1       :
  95.                 :  1  1  :  1  1  :  1  1  A M  :  <--- CLOCK
  96.                 :  1  1     1  1     1  1       :
  97.                 '-------------------------------'
  98.                 :                 :**    ****   :
  99.  SWAPSIZE --->  : 4.2 C:6.4 D:22  :  ** **   ** :  <--- PULSE
  100.                 :                 :   ***       :
  101.                 '-----------------'-------------'
  102.  
  103.  
  104. Disclaimer and other legal stuff
  105. --------------------------------
  106. This program can be freely copied and given to anyone.  It is Public
  107. Domain software distributed AS IS.  The user of SWAPSIZE takes full
  108. responsibility for it use and its' author cannot be held liable for
  109. any damage caused by the use or abuse the program (however unlikely)
  110. may cause.  My only request is that it is distributed along with this
  111. documentation.
  112.  
  113.