home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / misc / 39200 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  4.4 KB

  1. Path: sparky!uunet!ornl!rsg1.er.usgs.gov!darwin.sura.net!gatech!rpi!zaphod.mps.ohio-state.edu!wupost!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!lunic!my!omega!bjorn
  2. From: bjorn@ludd.luth.se (Bjorn Fahller)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: WPS *MUST* be optimized with regard to memory and *.ini
  5. Message-ID: <1992Dec13.163857.2762@ludd.luth.se>
  6. Date: 13 Dec 92 16:38:57 GMT
  7. Organization: Lule} Tekniska H|gskolas Datorf|rening - Ludd
  8. Lines: 91
  9.  
  10.  
  11.   I think IBM should make it top priority to optimize WPS with regards 
  12. to memory- and OS2*.INI-fragmentation. I'll tell you a horror storie in 
  13. a moment. I know that what I'm experiencing might be due to too little 
  14. memory and a somewhat unorthodox setup, but I think I shouldn't have to 
  15. experience it anyway.
  16.  
  17. Hardware:
  18. IBM PS/2 55sx (386sx/16)
  19. 6Mb RAM (4 on board, 2 on addon card)
  20. 30Mb HD (HPFS, OS/2 system only)
  21. 33Mb external SCSI HD (HPFS only 1 partition. Desktop + *.ini)
  22. Future Domain MSC-700 SCSI controller (pretty dumb, but works)
  23. Standard VGA
  24.  
  25. Software that (might) matter:
  26. OS/2 2.0 (US version) + SP
  27. 4os2 1.0 rev D
  28. AlarmPro
  29. Carlsberg tools Swap20 swapfile size monitor
  30.  
  31. The story of a swapfile that grew despite no running apps and an 
  32. OS2SYS.INI file that grew without containing anything.
  33.  
  34. Yesterday I was processing a large amount of downloads from hobbes. 
  35. 50-100 files, I think. All files located in d:\tmp. To make processing 
  36. simple, the following 4os2 command was issued:
  37.  
  38.         for %i in (*.z*;*.lzh;*.arj) do (IF NOT EXIST %@name[%i] (echo 
  39.         %i & mdcd %@name[%i] & x ..\%i & cd..))
  40.  
  41. where mdcd is an alias mdcd=`mkdir %1 & cd %1`
  42. and x is an alias that use the extention of the argument to chose which 
  43. program to unpack the archive with. In this case unzip, lh x, zoo -x or
  44. unarj x.
  45.  
  46. After this the swapfile was 5Mb (normal) and OS2SYS.INI around 2Mb (also
  47. normal).
  48.  
  49. To make the processing further simpler I have a folder (marked as a 
  50. work-area) with shadows of d:\tmp (icon view), my archive directory 
  51. (tree view) and my BIN directory (only the icon, hardly ever open it). 
  52. To prevent myself from fatal mistakes I also use a plastic bag folder 
  53. (and a template for it) instead of immediately shredding objects.
  54.  
  55. Sorting the d:\tmp folder makes every archive file sit next to a folder
  56. with the same name (except the extention, of course). Processing the 
  57. files are done this way:
  58.  
  59.         Open the folder. Decide if the content is worth saving or not.
  60.         Not worth saving:
  61.                 Close the folder and drag both folder icon and archive
  62.                 file icon to the plastic bag.
  63.         Worth saving:
  64.                 Drag the archive file folder to the appropriate place in
  65.                 the archive tree.
  66.                 Pitch the folder if it's nothing I want immediately.
  67.                 Create a program object if it's a program (or several)
  68.                 and drag the folder to the BIN folder.
  69.                 Play with the associations and object types.
  70.  
  71. After having done this with just over half the files, the system was 
  72. very sluggish. The swapfile was now 8Mb in size (not one more program 
  73. running than there was when the processing started, for which 5Mb swap 
  74. file was okay). OS2SYS.INI was roughly 6Mb in size.
  75.  
  76. I decided to shut down and restart the system. A rather brutal way of 
  77. solving a memory fragmentation problem, but it helped. The swap file was
  78. now down to 5Mb again, and the system a lot snappier. It still took an 
  79. awful long time (lots of disk access) to get the menues for all sort of
  80. objects, though.
  81.  
  82. The rest of the files were processed the same way as above. When I was 
  83. finished, I shredded the plastic bag. After all it contained nearly 16Mb
  84. of trash. After getting a new plastic bag, OS2SYS.INI was 10350232 bytes
  85. long, and OS2.INI 320905 bytes long. COPYINI pealed down OS2SYS.INI to 
  86. slim 133281 bytes (on other words there was 77 times as much garbage in 
  87. it as there was information) and OS2.INI was slimmed to 252116 bytes.
  88. The swapfile had grown to 6Mb.
  89.  
  90. I don't think this is the way it should be at all. Something really 
  91. needs to be done about this.
  92.    _
  93. /Bjorn.
  94.  
  95.  
  96. -- 
  97. Bjorn Fahller     Phone:              |The opinions above are not necessarily
  98. Trollnasvagen 3A  Intl:+46 920 226870 |those of... Hey! Wait a minute. Do you
  99. S-951 61 Lulea    Natl:0920-22 68 70  |seriously expect Me, a student, to carry
  100. Sweden            << space for rent >>|the official voice of the University?
  101.