home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / cnfgsort.zip / cnfgsort.doc next >
Text File  |  1993-11-29  |  5KB  |  147 lines

  1. CONFIG.SYS Sorting trick    v1.0
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. I've discovered a little trick about OS/2 that improves boot up time. It's
  4. a matter of sorting your CONFIG.SYS into a form that more closely matches
  5. the way OS/2 loads various drivers on boot-up.
  6.  
  7. Applying this trick has shaved off almost a minute of boot-up time on many
  8. systems. Your results may vary.
  9.  
  10. This has only been tested on OS/2 2.1 GA, but I'd imagine it would work on
  11. OS/2 2.0 and below.
  12.  
  13. I've found this order to work the best:
  14.  
  15. --------------------------------------------------------------------------------
  16. IFS's
  17. --------------------------------------------------------------------------------
  18. BASEDEV's
  19. --------------------------------------------------------------------------------
  20. SET statements , sorted alphabetically, to "look nice"
  21. --------------------------------------------------------------------------------
  22. Any OS/2-specific commands          [PROTECTONLY, etc]
  23. --------------------------------------------------------------------------------
  24. OS/2 devices, sorted alphabetically, where applicable.
  25. --------------------------------------------------------------------------------
  26. DOS specific commands               [DOS=HIGH,UMB, etc]
  27. --------------------------------------------------------------------------------
  28. DOS devices,  sorted alphabetically, where applicable.
  29. --------------------------------------------------------------------------------
  30.  
  31. This trick will affect HPFS boot-up drives the most [like mine], since HPFS
  32. stores filenames in the directory alphabetically, if you are loading each
  33. of your device drivers in alphabetical order, less "disk-thrashing" is involved.
  34.  
  35. Certain device drivers must be loaded before others, so keep this fact in mind
  36. when you are re-arranging your CONFIG.SYS. Keep a boot-disk handy, just in 
  37. case you foul up somewhere. 
  38.  
  39. I've always kept my SET commands sorted alphabetically, just so they were a bit
  40. more organized, whether it improves boot-up time or not, I'm not sure. 
  41. [I would doubt it would make much of a difference]
  42.  
  43. If you really want to be a speed demon, store all your BASEDEV's in your root
  44. directory, since that's where OS/2 looks first for BASEDEV's. But, since 
  45. I like to keep my root directory 'tidy', I've chosen to store all mine in the
  46. C:\OS2 directory.
  47.  
  48. I'd like to hear from others about their experiences using this trick. There
  49. may be better sorting configurations, and I'd like to hear about them. It seems
  50. people with 4 megs to 6 megs of memory are helped the most. If you're ambitious,
  51. time the speed difference between your original and sorted CONFIG.SYS and send
  52. me the results, I'll include you in this document. I'll be timing my system
  53. soon, to include in this document.
  54.  
  55. Even if it's just a little comment of, "I've tried what you've described and
  56. it has decreased my boot-up time." , would be great. 
  57.  
  58. Where to contact the author:
  59. ----------------------------
  60.  
  61. By far, the easiest way to contact me is through Internet:
  62. tiensivu@student.msu.edu
  63.  
  64. I also run a BBS back at home [I'm currently away at college, with the BBS
  65. running on semi-auto-pilot], Black Horizon, 1-616-866-3717, 16.8k Dual, 24 hrs.
  66. Concentrating on OS/2 support, 210 Megs of files. 
  67.  
  68. Proud member of: Team OS/2!
  69.  
  70. FidoNet  : 1:228/74  
  71. ITC Net  : 85:871/207
  72. HellNet  : 6950:1/1
  73. PowerNet : 616:1/1
  74. NetherNet: 17:1/3
  75.  
  76. U.S. mail:
  77. Aaron Tiensivu 
  78. 522 West Holmes Hall (Michigan State University)
  79. East Lansing, Michigan 48825-1115
  80.  
  81.  
  82.  
  83.  
  84. Here is an example CONFIG.SYS, sorted:
  85.  
  86. IFS=C:\OS2\DRIVERS\IFS\HPFS.IFS /CACHE:2048 /CRECL:128 /AUTOCHECK:C
  87. IFS=C:\OS2\DRIVERS\IFS\CDFS.IFS /Q
  88. BASEDEV=OS2DASD.DMD /Q
  89. BASEDEV=PRINT01.SYS 
  90. BASEDEV=IBM1FLPY.ADD
  91. BASEDEV=IBM1S506.ADD /A:0 /U:0 /SMS
  92. BASEDEV=SBCD2.ADD /P:220
  93. BASEDEV=OS2CDROM.DMD /Q
  94. PROTSHELL=C:\OS2\PMSHELL.EXE
  95. SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS,CONNECTIONS
  96. SET BOOKSHELF=C:\OS2\BOOK;
  97. SET COMSPEC=C:\OS2\CMD.EXE
  98. SET DPATH=C:\OS2;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;C:\OS2\INSTALL;C:\;C:\OS2\BITMAP;C:\OS2\MDOS;C:\OS2\APPS;
  99. SET EPMPATH=C:\OS2\APPS;
  100. SET GLOSSARY=C:\OS2\HELP\GLOSS;
  101. SET HELP=C:\OS2\HELP;C:\OS2\HELP\TUTORIAL;
  102. SET IPF_KEYS=SBCS
  103. SET KEYS=ON
  104. SET OS2_SHELL=C:\OS2\CMD.EXE
  105. SET PATH=C:\OS2;C:\OS2\SYSTEM;C:\OS2\MDOS\WINOS2;C:\OS2\INSTALL;C:\;C:\OS2\MDOS;C:\OS2\APPS;
  106. SET PROMPT=$i[$p]
  107. SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
  108. SET SYSTEM_INI=C:\OS2\OS2SYS.INI
  109. SET USER_INI=C:\OS2\OS2.INI
  110. SET VIDEO_DEVICES=VIO_SVGA
  111. SET VIO_SVGA=DEVICE(BVHVGA,BVHSVGA)
  112. LIBPATH=.;C:\OS2\DLL;C:\OS2\MDOS;C:\;C:\OS2\APPS\DLL;
  113. PRIORITY_DISK_IO=NO
  114. THREADS=256
  115. IOPL=YES
  116. MAXWAIT=15
  117. MEMMAN=SWAP,PROTECT
  118. SWAPPATH=C:\OS2\SWAP 1024 1024
  119. PRINTMONBUFSIZE=1,0,0
  120. PROTECTONLY=NO
  121. RMSIZE=640
  122. CODEPAGE=437,850
  123. COUNTRY=001,C:\OS2\SYSTEM\COUNTRY.SYS
  124. DEVINFO=KBD,US,C:\OS2\KEYBOARD.DCP
  125. DEVINFO=SCR,VGA,C:\OS2\VIOTBL.DCP
  126. DEVICE=C:\OS2\TESTCFG.SYS
  127. DEVICE=C:\OS2\DOS.SYS
  128. DEVICE=C:\OS2\PMDD.SYS
  129. DEVICE=C:\OS2\MOUSE.SYS
  130. DEVICE=C:\OS2\POINTDD.SYS 
  131. DEVICE=C:\OS2\SIO.SYS (1:38400) (2:38400)
  132. BREAK=OFF
  133. BUFFERS=10
  134. DOS=HIGH,UMB
  135. FCBS=16,8
  136. FILES=40
  137. DEVICE=C:\OS2\MDOS\VCDROM.SYS 
  138. DEVICE=C:\OS2\MDOS\VDPMI.SYS 
  139. DEVICE=C:\OS2\MDOS\VDPX.SYS 
  140. DEVICE=C:\OS2\MDOS\VEMM.SYS 
  141. DEVICE=C:\OS2\MDOS\VMOUSE.SYS 
  142. DEVICE=C:\OS2\MDOS\VSIO.SYS
  143. DEVICE=C:\OS2\MDOS\VSVGA.SYS
  144. DEVICE=C:\OS2\MDOS\VWIN.SYS 
  145. DEVICE=C:\OS2\MDOS\VXMS.SYS /UMB
  146. SHELL=C:\OS2\MDOS\COMMAND.COM 
  147.