home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / arachne / archn170.exe / ARAMDISK.TXT < prev    next >
Encoding:
Text File  |  2001-01-14  |  10.6 KB  |  266 lines

  1. Arachne RAMDISK (and memory use) Howto               Revised  01/01/14
  2. Written by Clarence Verge
  3.  
  4. The most likely reason to consider running Arachne on a RAMDISK (RD)
  5. is to improve running speed. Another possible reason could be to run
  6. a portable install without accessing the Hard Disk.
  7.  
  8. This Howto will focus on the need for speed.
  9.  
  10. You must have a MINIMUM of 4Mb total ram to consider the use of an
  11. RD for Arachne to be a viable option.
  12. Memory must be divided between:
  13. 1) The first meg. You need this for DOS and any drivers you load high.
  14. 2) Your HD cache. The HD will be required for normal operations and
  15.    to load to, and save from, the RD.
  16. 3) Free XMS. Arachne needs XMS memory to work properly.
  17. 4) The Ramdisk itself.
  18.  
  19.  
  20. PART 1 - MAKING the ramdisk
  21.  
  22. Regardless of other considerations, the first thing needed is a way
  23. to make the RD and the necessary RD install instructions.
  24.  
  25. If you use MSDOS or Windows, you probably already have RAMDRIVE.SYS.
  26. An alternative shipped with other OSs may be VDISK.SYS (Virtual Disk)
  27. Both of the above must be installed via config.sys and cannot be
  28. re-sized or removed.
  29.  
  30. A candidate for command line install and removal is:
  31. XMSDSK:
  32. ftp://ftp.simtel.net/pub/simtelnet/msdos/ramdisk/fu_rd19i.zip
  33.  
  34. Other freeware RD drivers claim to be faster than the standard RDs.
  35. This excerpt from documentation for TDSK (Turbodsk) says it all:
  36.  
  37.                                     RAMDRIVE       VDISK      TURBODSK
  38.                                   (WINDOWS 3.1) (DR-DOS 6.0)    v2.1
  39. Maximum size                          32 Mb        32 Mb        64 Mb
  40. Conventional memory support            Yes          Yes          Yes
  41. EMS support                            Yes          Yes          Yes
  42. Extended memory driven by INT 15h:      No          Yes           No
  43. XMS memory support                     Yes           No          Yes
  44. Files in root directory               4-1024       4-512       1-65534
  45. Sector size supported               128-1024     128-512      32-2048
  46. Dynamic memory allocation               No           No          Yes
  47. Programmable cluster size               No           No          Yes
  48. 32-bit bus used with 386 and 486:       No           No          Yes
  49. Conventional mem. used MS-DOS 5.0:  1184-1232    2096-2608     432-608
  50.  
  51. MS-DOS 5.0 Data transfer rate (Kb/sec)
  52. Sectors are 512 bytes type.
  53. 386-25 MHz (no cache)  RD in XMS:     17105         6838        17095
  54. 486-25 MHz (8Kb cache) RD in XMS:     10278         7370        10278
  55.  
  56. TDISK.zip is available at:
  57. ftp://ftp.simtel.net/pub/simtelnet/msdos/ramdisk/tdsk21.zip
  58.  
  59. Usually, older and slower computers don't have as much ram as we might
  60. desire. Sometimes no more can be added.  We must be selective in not
  61. only WHAT we put on the RD, but even how MANY files and/or directories
  62. we use, because a single directory entry or a file with only one byte
  63. in it takes up a FULL cluster. So programmable cluster size is good.
  64.  
  65. *
  66. To create an RD with Ramdrive.sys, place a line similar to this in
  67. your config.sys file near the top, but after the line that specifies
  68. your expanded memory manager:
  69. device=DRV:\PATH\Ramdrive.sys 1024 512 512 /e
  70.  
  71. The first number is the size in kb allocated to the ramdisk an is the
  72. minimum suggested if you only have 4Mb total unless you COMPRESS it.
  73. The remaining 2048k can be split between HD cache and free XMS.
  74. You should have about 15 buffers assigned.  Too many will slow down
  75. the RD response.
  76.  
  77. The second number is the sector size. Changing this can't help unless
  78. cluster size is also programmable to reduce total empty space wasted
  79. by very small files.
  80.  
  81. The third number is the number of directory entries permitted in the
  82. root. A value of 512 will permit placing the main Arachne dir at root
  83. level, thus shortening the paths for some commands.
  84. There has been a problem with long path names in the past.
  85.  
  86. The last item specifies that the ramdisk be placed in extended memory.
  87. That's the only useful way to go !
  88.  
  89. *
  90. The syntax for VDISK is almost identical but some VDISKs use a very
  91. different way to claim XMS memory. These must be loaded BEFORE the
  92. memory manager and the manager only uses what remains.
  93.  
  94. The parameter /e:n is used to specify placing the Vdisk in extended
  95. memory and the :n specifies the number of sectors (1-8) to transfer
  96. as a block.
  97.  
  98.  
  99. PART 2 - LOADING the ramdisk
  100.  
  101. If you have less than 4Megs TOTAL ram, maybe only 2Megs, Arachne was
  102. designed to make use of a small TEMP dir on a ramdisk to make your
  103. Arachne install run faster.  Create a ramdisk of at least 384kb, copy
  104. command.com to the ROOT of that RD and make a subdirectory on it
  105. called \TEMP. Place these lines in the batch file that calls Arachne:
  106.  
  107. SET COMSPEC=RD:\COMMAND.COM
  108. SET ARACHNETEMP=RD:\TEMP
  109. where RD: is the name of your ramdrive.
  110. Install Arachne on your HD and in Arachne.cfg specify: Cache2TEMP Yes
  111.  
  112. This technique is also useful to make a fast computer even faster when
  113. the complete Arachne install stays on HD.  You should set your comspec
  114. back to C:\ if you want to shutdown your ramdisk.
  115.  
  116. *
  117. With a supersize RD, (6Megs) you can make the initial install directly
  118. to the ramdisk; but FIRST, create RD:\ARACHNE and RD:\ARACHNE\TEMP and
  119. put a copy of command.com in RD:\ARACHNE.   Do the install with the
  120. source file on hard disk or floppy, NOT on the ramdisk.
  121. Temporarily, SET ARACHNETEMP=RD:\ARACHNE\TEMP - this will change.
  122.  
  123. Get Arachne working properly and then exit.
  124. In Arachne.cfg set the following:
  125. Cache2TEMP Yes
  126. Hotlist HD:\ARACHNE\HOTLIST.HTM
  127. CookieFile HD:\ARACHNE\COOKIES.LST
  128. DownloadPath HD:\ARACHNE\DOWNLOAD\
  129. MailPath HD:\ARACHNE\MAIL\
  130.  
  131. Delete RD:\ARACHNE\cache.idx, history.lst, *.tmp and the contents
  132. of RD:\ARACHNE\CACHE, CACHE\HEADERS and the contents of ARACHNE\TEMP.
  133. On the HD make an ARACHNE directory and a DOWNLOAD subdirectory.
  134. Copy Hotlist.HTM and Cookies.LST from RD to HD:\ARACHNE.
  135. Delete the copies on the Ramdisk.
  136. Xcopy RD:\ARACHNE\MAIL\*.* HD:\ARACHNE\ /s /e.
  137. Deltree RD:\ARACHNE\BACKUP, \DOWNLOAD and \MAIL.
  138.  
  139. Now, from the ARACHNE directory of the ramdisk execute the line:
  140. PKZIP -rp HD:\ARACHNE\ARCN1Nn.ZIP .\*.*  (Replace 1Nn with version #)
  141. This will place a complete and hopefully working copy of your install
  142. in the ARACHNE dir of the HD.
  143. When you re-start, you will be starting with empty cache, no history.
  144. If the cache is on RD there is no need to have Cache2TEMP Yes except
  145. it will improve mail performance when the mail directory is on the HD.
  146.  
  147. Here is a batch file to load Arachne to RD and start her. If you exit
  148. and re-start, the Cache contents and history for the day will persist.
  149.  
  150. SPIDER.bat (sometimes called simply A.bat)
  151. @Echo off
  152. If not "%ARACHNETEMP%"=="" goto RERUN
  153. PKunzip -d HD:\ARACHNE\ARCN1Nn.ZIP RD:\
  154. SET ARACHNETEMP=RD:\TEMP
  155. :RERUN
  156. SET COMSPEC=RD:\COMMAND.COM
  157. RD:
  158. Call Arachne
  159. HD:
  160. SET MYIP=
  161. SET REMIP=
  162. SET NETMASK=
  163. SET PEERMRU=
  164. SET COMSPEC=HD:\COMMAND.COM
  165.  
  166. All cookies, download, and mail transactions will be made to the HD.
  167. The ramdisk and it's contents can just evaporate when you're finished.
  168.  
  169. *
  170. In the above scenario, changes made to your configuration while
  171. running will not be saved. If this is not suitable, do the following:
  172.  
  173. Prior to the initial zipup copy ARACHNE.cfg and ARACHNE.pck to HD and
  174. delete the RD copies. If you expect to create or change .ACFs, do the
  175. same to *.ACF. Add these lines to SPIDER.bat just before :RERUN.
  176. Copy >nul HD:\ARACHNE\ARACHNE.* RD:\
  177. Copy >nul HD:\ARACHNE\*.acf RD:\
  178. and just after Call Arachne add:
  179. Copy >nul RD:\ARACHNE.* HD:\ARACHNE
  180. Copy >nul RD:\*.acf HD:\ARACHNE
  181.  
  182. *
  183. All the RD installs follow the same basic procedure. As you move to
  184. smaller RDs (less than 4.5Mb) you will have to begin deleting unused
  185. or seldom used files on the RD and then move functions to the HD.
  186.  
  187. Since the Wizards only get used for setup, they will go first.
  188. In the \SYSTEM\GUI\ subdir, delete WIZ*.*.
  189. In \SYSTEM\DGI\ delete Wizard.exe.
  190. Deltree \SYSTEM\PKTDRVRS and \SYSTEM\APM.DB subdirectories.
  191. Then, for more space, delete all background .GIFs and *.ACF.
  192. Copy Arachne.cfg to the .ACF name found under it's [Profile] heading.
  193.  
  194. If you still have less than 1Meg free on the RD with empty cache then
  195. the cache dir must be moved to HD. Make this change to ARACHNE.cfg:
  196. CachePath HD:\ARACHNE\CACHE\
  197.  
  198. Then Xcopy RD:\CACHE\*.* HD:\ARACHNE\ /s /e and Deltree RD:\CACHE.
  199. Copy RD:\CACHE.idx to HD:\ARACHNE
  200.  
  201. Add this to SPIDER.bat just before :RERUN
  202. Copy >nul HD:\ARACHNE\CACHE.idx RD:\
  203. and just after Call Arachne add:
  204. Copy >nul RD:\CACHE.idx HD:\ARACHNE
  205.  
  206. *
  207. Ramdisk too small for even the initial install ?  Difficult !!
  208.  
  209. If you still want to try a Ramdisk, these instructions should help,
  210. but you will need at least 4Mb total memory for a 2152kb ramdisk and
  211. you will have to COMPRESS it with Stacker or Doublespace and allocate
  212. only 340k to disk cache leaving 576k for XMS.
  213.  
  214. Do an initial install to HD:\ARACHNE.   Zip it up into a different
  215. directory. (<--Important)   PKZIP -rp HD:\DUMMY\ARCN1Nn.ZIP .\*.*
  216.  
  217. Delete EVERYTHING mentioned above, including: deltree .\MAIL,
  218. and .\CACHE, .\DOWNLOAD, .\DOC, and .\EXAMPLES.
  219. Delete .\*.txt.  Examine the remainder for anything you are SURE
  220. you don't need and delete it.  Xcopy what remains to an RD that
  221. already has COMMAND.COM on it and nothing else - including no dirs.
  222.  
  223. The command is:  Xcopy HD:\ARACHNE\*.* RD:\ /s /e
  224. Check the space available. It will be used for TEMP. It should be
  225. greater than 384k - preferably greater than 500k. If you have the
  226. minimum, manually edit ARACHNE.cfg to this state:
  227.  
  228. [system]
  229. Hotlist HD:\ARACHNE\HOTLIST.HTM
  230. History .\HISTORY.LST
  231. CacheIndex .\CACHE.IDX
  232. CookieFile HD:\ARACHNE\COOKIES.LST
  233. CachePath HD:\ARACHNE\CACHE\
  234. Cache2TEMP Yes
  235. MailPath HD:\ARACHNE\MAIL\
  236. DownloadPath HD:\ARACHNE\DOWNLOAD\
  237.  
  238. [auto-added]
  239. POP3log No
  240. SMTPlog No
  241. KeepHTT No
  242. VFAT No
  243. CacheFonts Yes
  244. XMS4allGIFs 0
  245. XMS4oneGIF 0
  246. MinDiskSpace 128
  247.  
  248. Then in the directory HD:\ARACHNE, do deltree .\*.*  and
  249. from the ROOT directory of the ramdisk execute the line:
  250. PKZIP -rp HD:\ARACHNE\ARCN1Nn.ZIP .\*.*
  251. This will place a compressed copy of your distilled install in
  252. the ARACHNE dir of the HD.
  253.  
  254. Finally, referring to the directory containing the INITIAL install,
  255. PKunzip -d HD:\DUMMY\ARCN1Nn.ZIP HD:\ARACHNE . This makes the deleted
  256. document files available to you by surfing the HD.
  257.  
  258. Create the first SPIDER.bat shown above, but just before :RERUN add:
  259. Copy >nul HD:\ARACHNE\ARACHNE.cfg RD:\
  260. Copy >nul HD:\ARACHNE\*.pck RD:\
  261. and just after Call Arachne add:
  262. Copy >nul RD:\ARACHNE.cfg HD:\ARACHNE
  263. Copy >nul RD:\*.pck HD:\ARACHNE
  264.  
  265. Type SPIDER and if we didn't miss anything, you are off to the races!
  266.