home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / swvdisk2.zip / readme.doc next >
Text File  |  1994-04-08  |  4KB  |  108 lines

  1. Fri  94-04-08
  2. =============
  3.  
  4. Note, the original version of this program (released August, 93) was
  5. pulled just a few days after release.  It caused kernel traps in systems
  6. with moderate to heavy swapping activity.   After sitting on the shelf
  7. for many months,  I discovered that the bug was in the OS/2 kernel
  8. itself.  This updated version appears to work perfectly with the latest
  9. OS/2 service pack installed (ie: OS/2 2.11,  Syslevel XR06200).
  10.  
  11. Do not attempt to use this program with OS/2 2.0 or OS/2 2.1 (without
  12. the service pack).
  13.  
  14. If you are using OS/2 2.11 and see a kernel trap with this program, I
  15. would like to hear about it.
  16.  
  17.            =============================================
  18.  
  19. SwVdisk.sys is a modified version of OS/2 2.1's VDISK.SYS;  it uses
  20. swappable memory.
  21.  
  22. The normal VDISK.SYS allocates "fixed" memory to create a virtual disk.
  23. This is the proper way to create a Vdisk,  if you are creating it for
  24. performance reasons.  A vdisk is almost always created for this reason.
  25.  
  26. Since OS/2 has such a great disk cache (especially for HPFS) built in,
  27. it is almost always better to give memory destined for a VDISK to your
  28. disk cache.
  29.  
  30. A large vdisk,  with what you think are your most-used files copied on
  31. to it,  is nothing more than a "non-dynamic disk cache".  This procedure
  32. is,  put bluntly,  a feeble idea for OS/2 systems.  It would be better
  33. to give that memory to a good dynamic disk cache,  like the one built in
  34. to OS/2.
  35.  
  36. A large swappable vdisk,  created with intended performance gains,  is
  37. downright doltish.  The system will have to swap out (to a real disk)
  38. memory when you access the vdisk;  in the end your vdisk is stored on
  39. your hard disk.  Some people have had crazy ides for vdisk's (like
  40. storing swapper.dat on one!).
  41.  
  42. Why a swappable vdisk then?   Other vdisk uses include:
  43.  
  44.  o Temporary storage.  I place files on my vdisk all the time,  glad
  45.    that they will disappear after rebooting.
  46.  
  47.  o Transitional files. I tell some C compilers to use it for
  48.    transitional files (which the compiler frequently forgets to erase:
  49.    Compiler Turds, Keith calls them).
  50.  
  51.  o Testing.  Sometimes I install software on my vdisk,  if I don't trust
  52.    the installation process.  Sometimes I test software that I have
  53.    written myself, but don't trust yet,  on a vdisk.
  54.  
  55. Non of these reasons are performance based.
  56.  
  57. With the "fixed" memory vdisk,  I found myself not wanting to create a
  58. vdisk of more than 256kb-512kb,  since the operating system work space,
  59. or the disk cache, can put the memory to better use.  Occasionally,
  60. however, I found that I needed a larger vdisk.
  61.  
  62. I was happy that IBM included the source code for VDISK.SYS on the DDK
  63. CDROM (Device Driver Kit).  It has been rewritten to use some of the new
  64. features of OS/2 2.x,  namely,  large memory objects via VMAlloc().  It
  65. was pretty easy to change it to use swappable memory.
  66.  
  67. I now use SwVdisk.sys as a 1MB disk drive.  The 1MB does not 'steal'
  68. memory from my disk cache,  and is only used when I use the drive.
  69.  
  70. SwVdisk.sys is installed the same way VDISK.SYS is (type "HELP VDISK" at
  71. any command prompt).  You can create a vdisk as large as 8192k with it,
  72. but this is not recommended;  it will cause your system to do a lot of
  73. swapping.  Used incorrectly, SwVdisk can seriously inhibit performance.
  74.  
  75. Unless you have MEMMAN=COMMIT in config.sys,  the memory used by SwVdisk
  76. will not be reserved until you use it.  Therefore,  even if you ask for
  77. an 8MB vdisk,  you won't see your SWAPPER.DAT file grow until you start
  78. to use the vdisk.
  79.  
  80. Copyright (c) 1993 A:WARE Inc.
  81.  
  82. DISCLAIMER
  83. ----------
  84. The Program is supplied "AS IS" without any warranty of any kind,
  85. either expressed or  implied,  including, but not limited to, the
  86. implied warranties of merchantability and fitness for a particular
  87. purpose.
  88.  
  89. In  no  event  shall A:WARE INC be liable for any damages, either
  90. direct or  consequential,  caused by the use, or inability to use,
  91. this program, even  if A:WARE INC has been advised of the
  92. possibility of such damages.
  93.  
  94. There is no charge for the use of this program.
  95.  
  96. A:WARE Inc. develops custom applications, file systems, device drivers
  97. and utilities for OS/2.
  98.  
  99. A:WARE Inc.
  100. 6056 Cayeswood Ct.
  101. Mississauga Ontario
  102. Canada L5V-1B1
  103.  
  104. Voice: (905)858-3222
  105. FidoNet: 1:259/414
  106. BBS: (905)858-8488
  107.  
  108.