home *** CD-ROM | disk | FTP | other *** search
/ PC & Mediji 2002 February / PCM_0202.iso / media / preizkusni / APKWIN2KTOOLS7.ZIP / APKRAMDISKINSTALL.TXT < prev    next >
Text File  |  2000-07-23  |  10KB  |  207 lines

  1. To install the driver and if needed, troubleshoot its install (this CAN 
  2. happen if your registry rights are insufficient!) THE FILES IN THIS
  3. DOCUMENT ARE COPIED BY DEFAULT TO YOUR C:\WINNT\SYSTEM32 FOLDER: 
  4. ======================================================================
  5.  
  6. 1.) Double-click the Add/Remove Hardware Wizard applet in Control Panel. 
  7. 2.) Select Add/Troubleshoot a Device. 
  8. 3.) Select Add a new device. 
  9. 4.) Select No, I Want to Select the Hardware from a list. 
  10. 5.) Select Other devices and then click Next. 
  11. 6.) Click the Have Disk button and point to the directory that contains 
  12.      Ramdisk.inf file. 
  13.  
  14. (The system copies the Ramdisk.sys file to %systemroot%\system32\drivers 
  15. directory/folder and loads the driver.)
  16.  
  17. Configuring the Ramdisk Drive (manually if you do not want to use the 
  18. APK NT Ramdisk GUI front to it & want to understand MORE about it)
  19. --------------------------------------------------------------------------------------------------------------
  20.  
  21. The Ramdisk can be configured using the registry.  The RAMDISK.INF file
  22. contains the default values for all the configurable parameters.
  23.  
  24. A brief description of each parameter follows:
  25.  
  26. BreakOnEntry        REG_DWORD   0
  27. Boolean value, which determines whether a break point will be generated 
  28. during the DriverEntry routine.  It has no effect in a free build of the driver.
  29.  
  30. DebugLevel          REG_DWORD   0
  31. This value specifies the level of diagnostic messages produced.  Larger 
  32. values result in more verbose messages. It can take values from 0 to 3.  
  33. It has no effect in a free build of the driver. 
  34.  
  35. DebugComp          REG_DWORD   0xFFFFFFFF
  36. This value specifies the components in which the debug messages to be
  37. printed. Each bit specifies the component. See Debug.h for component list. 
  38. It has no effect in a free build of the driver. 
  39.  
  40. DiskSize            REG_DWORD   0x100000 (1,048,576 1Mb)
  41. The size of the Ramdisk drive in bytes.
  42.  
  43. DriveLetter         REG_SZ      Z:
  44. The default drive letter associated with the Ramdisk drive.
  45.  
  46. RootDirEntries      REG_DWORD   512
  47. The number of entries in the root directory.
  48.  
  49. SectorsPerCluster   REG_DWORD   2
  50. The granularity of the allocation unit.
  51.  
  52. TROUBLESHOOTING SHOULD IT FAIL TO WORK DUE TO 
  53. INSUFFICIENT ACCESS RIGHTS TO YOUR REGISTRY KEYS!
  54. =====================================================
  55.  
  56. * YOU NEED ADMINSTRATIVE RIGHTS ON THE SYSTEM YOU 
  57. INSTALL THIS TO ADDTIONALLY, SO BE SURE WHO YOU
  58. ARE LOGGED ONTO Windows▓║║║ as is Adminstrator level or part of 
  59. the Admin group of users!
  60.  
  61. (YOU MAY NEED TO USE REGEDT32.EXE and GIVE YOURSELF 
  62. ACCESS RIGHTS TO THE KEY IN THE REGISTRY CALLED
  63. HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\
  64. SERVICES\RAMDISK)
  65.  
  66. ADDITIONALLY SHOULD THE TROUBLESHOOTER TAB IN THE APK
  67. NT RAMDISK CONFIGURATOR NOT WORK AND COMPLAIN OF NOT
  68. BEING ABLE TO "SET NEXT INSTANCE"  YOU MAY NEED TO USE
  69. REGEDT32.EXE to allow rights to yourself to the Registry Hive mentioned
  70. above!
  71.  
  72. ** Accomplishing that is easy though... (follow these step using the tool 
  73. Regedt32.exe from the APK NT Command Center's Trayicon Configuration
  74. menu):
  75.  
  76. 1.) In Regedt32.exe, navigate to the HKEY_LOCAL_MACHINE Hive/Folder!
  77. 2.) Once there, Go to the SYSTEM SubHive/Folder on the tree display
  78. 3.) Under that, go to SYSTEM
  79. 4.) Under that, go to CURRENTCONTROLSET
  80. 5.) Under that, go to SERVICES
  81. 6.) Under that, go to RAMDISK
  82. 7.) (Here's where the FUN BEGINS!) Hilite RAMDISK, then use the Security 
  83.      menu item at the top in Regedt32.exe
  84. 8.) Use Security, Permissions item
  85. 9.) Be sure you have READ and FULL CONTROL checked off for rights to 
  86.      it (logon as Admin to do this! and make sure Administrator user has rights
  87.      to this section of the registry!)
  88. 10.) In the Advanced button in the security permission you may also add 
  89.        yourself as the owner of that folder
  90. 11.) Then, when done, use the APK NT Ramdisk to configure its size and 
  91.        what not...
  92. 12.) Use the troubleshooter tab and click the button in it (one step easy)
  93. 13.) Set your temporary variables to the Ramdisk letter you chose as well (be
  94.        sure you made the RAMDISK LARGE ENOUGH for that temp ops work
  95.        like installations of large softwares (16mb-31mb size should do it) or unzips
  96.        and zips of large archives or sending HUGE EMAILS etc. in effect?  USE
  97.        YOUR HEAD!
  98. 14.) Done!
  99.  
  100. HERE IS A GOOD READ:
  101.  
  102. A WHITE PAPER I WROTE FOR EEC SYSTEMS/WWW.SUPERSPEED
  103. .COM WHILE HELPING THEM DEVELOP SUPERCACHE-NT's
  104. SUPERCACHE NT TUNING ENGINE & SUPERDISK SOFTWARES ABOUT
  105. RAMDISKS and HOW TO USE THEM CREATIVELY ON RAMDISK USES
  106. BELOW:
  107. ----------------------------------------------------------------------------------------------------------
  108.  
  109. Interesting Uses of RamDisk Units
  110. by Alexander Peter Kowalski
  111.  
  112. RamDisks can be utilized in various ways to improve performance and lend
  113. convenience to the Windows NT based Operating Systems like NT 3.51-4.0
  114. and Windows ▓║║║!
  115.  
  116. (Various applications such as Web Browsers and Zip/Unzip operations can 
  117. be improved dramatically. Webmasters and Database users should also take
  118. note of this technology, since Database and Website operations can be 
  119. substantially sped up as well.)
  120.  
  121. Web Browsers
  122. -------------------------
  123.  
  124. Point your temporary file and webpage cache operations to the RamDisk unit. 
  125. This allows you to have a cache cleaner at shutdown and faster re-access of
  126. cached website pages and graphics. It also allows the user to not use an 
  127. "in-memory cache" setting (like Netscape has) or as large of one saving RAM
  128. since the pages and all data are already cached to a Ramdisk at this point. 
  129. The actual size of the Ramdisk depends on your needs and RAM available
  130. online. 16MB is a fairly large size for most operations, except large databases
  131. and huge installation files like Netscape 4.73 which may require more than a 
  132. 32MB sized Ramdisk! Large Emails and Zipping/Unzipping HUGE files is also
  133. something to watch for!  The use of an Uninterruptible Power Supply (UPS) is
  134. advised so data is not lost in the event of a Power Failure! 
  135.  
  136. Zip/Unzip, and other file based operations
  137. --------------------------------------------------------------------
  138.  
  139. In your NT environment setting under the System Icon in Control Panel, set 
  140. tmp and temp variables to your newly created RAMDISK unit after making a 
  141. tmp and temp directory there (EASILY DONE IN LOGIN SCRIPTS OR BATCH
  142. FILES IN THE STARTUP GROUP). If you use Netscape and have pointed the
  143. temp operations to say, E:\TEMP (assuming E: is your newly made RAMDISK
  144. unit), then it will do so at system startup as well. The System environment will
  145. create the directory for you on your RAMDISK automatically. This 
  146. massively speeds up file zipping and unzipping operations as well as ANY 
  147. temporary file operations like installations (but be sure to create a large enough
  148. RamDisk unit to accommodate large installations such as Netscape 4.73 or it
  149. will not have enough room.  Winzip is an application also that allows you to set
  150. its working directory... set it to the RAMDRIVE and watch zips/unzips FLY!
  151.  
  152. Should you find your RAMDisk unit does not have enough room, simply 
  153. temporarily change your temporary folder in the  System Icon once more or from
  154. inside the APK RamDisk Tuning Engine to a hard disk and hit the apply button. 
  155. Once your installation is finished, you may change the  temporary file directory 
  156. back to the SuperDisk unit. 
  157.  
  158. Again, the actual size of the  newly made Ramdisk depends on your needs & 
  159. RAM available online. 16MB is a reasonably large size for most operations 
  160. except large databases and huge installation files like Netscape 4.73 which 
  161. may require more than a 16MB sized RamDisk drive unit. The use of an 
  162. Uninterruptible Power Supply (UPS) is advised so data is not lost in the 
  163. event of a Power Failure. 
  164.  
  165. Operating System
  166. -------------------------------
  167.  
  168. You may also speedup command processing by copying your cmd.exe (again, 
  169. easily done by login scripts or a batchfile running in your startup group) file to 
  170. the RamDisk as well and pointing the COMSPEC variable (IN CONTROL 
  171. PANEL SYSTEM ICON, ADVANCED TAB, ENVIRONMENT VARIABLES 
  172. BUTTON, & CHANGE YOUR USER VARIABLES FOR ADMINISTRATOR 
  173. AND SYSTEM VARIABLES FOR TMP & TEMP ADDING THEM IF NEEDED
  174. WHICH THE APK RAMDISK NT INTERFACE DOES! COMSPEC CAN ALSO
  175. BE ALTERED HERE AS WELL) to that copy of cmd.exe that resides on the
  176. RamDisk. The actual copying operation may be done from your autoexec.bat
  177. or any logon script at system start time from inside startup group. This is an old
  178. DOS based trick that helps improve performance quite a bit.  The use of an 
  179. Uninterruptible Power Supply (UPS) is advised so data is not lost in the event
  180. of a Power Failure with lazy write mode. 
  181.  
  182. Database Applications
  183. ----------------------
  184.  
  185. Users of databases like DBase may place index files onto the RAMDISKS for 
  186. faster searches and if room is available, the entire database itself may be 
  187. placed on RAMDisk.  Improving index access speed is possible for any 
  188. database including the Access based .mdb tables. In Access, data is housed
  189. in tables and indexes etc. in a single file. The file extension for this file is .mdb. 
  190. Once again, the actual size of the Ramdisk depends on your needs and RAM
  191. available online. 
  192.  
  193. Web Serving
  194. ------------
  195.  
  196. Want to serve up your site faster? Place your website onto a Ramdisk 
  197. (preferable if you do any Active Doc or IIS + SQL server work on your
  198. page) for the fastest seeks and updates possible.  This technique has been 
  199. employed by the folks at Princeton with the AltaVista Search engine and the
  200. speed of that site speaks for itself! Housing entire SQL Server Devices onto a
  201. RAMDISK is also a perfomance enhancer possibly as well!  You may instruct
  202. SQL Server to place temp table operations onto this Ramdisk unit, if you are
  203. short on RAM, and still increase speed this way. 
  204.  
  205. Alexander Peter Kowalski
  206. Win32 Senior Software Engineer
  207. Syracuse, N.Y.