home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / OS2 / MEMSIZ.ZIP / MEMSIZE.DOC < prev    next >
Encoding:
Text File  |  1992-02-17  |  3.1 KB  |  71 lines

  1. OS/2 System Resources (Swapping) - Version 1.23 - Comments
  2.  
  3.   For the longest time, my system at work, an IBM PS/2 Model 70, had only a
  4. 60 megabyte disk drive.  With OS/2 installed, along with Microsoft C 6.0,
  5. WordPerfect and 15 megabytes of data files, I didn't have much space.  What
  6. I could do was always being limited by how large the swap file was getting.
  7. To get a handle on what was going on, I created this program.  It reports
  8. the available memory (according to DosMemAvail), the size of the swap file
  9. and the amount of free space left on the swap file's disk.  It reviews
  10. everything once per second, but only updates the window as necessary.
  11.  
  12.   I've provided the source code.  Feel free to make changes, just send me a
  13. copy and leave my name (and CompuServe ID) intact.  I'm interested in your
  14. comments, especially in the support logic found in the module OBJECT.C.  This
  15. module takes care of a lot of the normal overhead in building simple PM
  16. applications.
  17.  
  18.   Two weaknesses have been pointed out already: using the DosMemAvail
  19. function, and searching DPATH for the swapper file.  Though DosMemAvail does
  20. not function very well under OS/2 1.x, it seems to work just fine under the
  21. latest OS/2 2.0 beta I've got, 6.177h.  Seems that under the older OS/2, it
  22. reports the largest free block of memory.  Under the newer version, it
  23. considers all free memory to be a single block, as it can be remapped at
  24. will by the 386 processor.
  25.  
  26.   As for using DPATH to find the swapper file, I frankly didn't even think
  27. of reading the CONFIG.SYS file to find the SWAPPATH statement.    With version
  28. 1.10, this has been fixed.
  29.  
  30.   As of version 1.10, there is now a simple CPU load meter.  Also, each
  31. display item can be enabled or disabled through the system menu.
  32.  
  33.   As of version 1.20, the free space on each disk drive (except A & B) is
  34. now available for display.
  35.  
  36.  
  37. Author:
  38.  
  39.   Rick Papo, CompuServe 72607,3111.
  40.  
  41.  
  42. History:
  43.  
  44.   1.00 - Submitted to Compuserve's OS/2 Forum, early January, 1992.
  45.  
  46.   1.01 - Added single-line border.
  47.          Removed default TaskList processing, added custom logic.
  48.  
  49.   1.10 - Added ability to hide controls.
  50.          Added ability to be moved with the mouse, independent of title bar.
  51.          Added help facility.
  52.          Removed 'exit' option from system menu (Alt+F4 or F3 does fine).
  53.      Now searches CONFIG.SYS to find SWAPPATH.
  54.      Responds to WM_PRESPARAMCHANGED messages, allowing OS/2 2.0's
  55.        font, color and color scheme palettes to work with it properly.
  56.      Added CPU load indicator.
  57.      Added ability to select which items are to be monitored.
  58.      Added ability to reset presentation parameters to default state.
  59.  
  60.   1.20 - Restructured program to make status items easier to add.
  61.      Changed 'Swap-disk free space' to 'Available swap space'.
  62.      Added disk drive free space items.
  63.      Optimized window refresh logic.
  64.      Corrected minor bugs in handling font changes.
  65.  
  66.   1.21 - Fixed bug in computing swap-file size.
  67.  
  68.   1.22 - Fixed bug in computing available swapping space.
  69.  
  70.   1.23 - Fixed bugs in initial sizing and location of CONFIG.SYS.
  71.