home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / apps / 9952 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.9 KB  |  63 lines

  1. Newsgroups: comp.os.os2.apps
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!uvo.dec.com!e2big.mko.dec.com!nntpd.lkg.dec.com!smaug.enet.dec.com!cambria
  3. From: cambria@smaug.enet.dec.com (Michael C. Cambria)
  4. Subject: Re: Does anyone know...Swap File
  5. Message-ID: <1993Jan7.144505.6099@nntpd.lkg.dec.com>
  6. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  7. Organization: Digital Equipment Corporation
  8. References: <Gary.Woodman.905.726283143@anu.edu.au> <1993Jan06.162100.29821@watson.ibm.com> <1993Jan6.204721.27215@apgea.army.mil> <1993Jan6.222411.502@njitgw.njit.edu>
  9. Date: Thu, 7 Jan 1993 13:38:04 GMT
  10. Lines: 51
  11.  
  12.  
  13. In article <1993Jan6.222411.502@njitgw.njit.edu>, dic5340@hertz.njit.edu (David Charlap) writes...
  14. >In article <1993Jan6.204721.27215@apgea.army.mil> rcmerrit@apgea.army.mil (Robert C. Merritt <rcmerrit>) writes:
  15. >>ok, the new question is: Does the swap file keep growning? I plan to run it
  16. >>24 hours aday (for my BBS) and I don't want to wake up and see a 30 meg swap
  17. >>file!!!
  18. >No.  The swap file is much like a stack.  When pages at the end of the
  19. >file are released, the file will shrink.  It grows and shrinks in 1MB
  20. >increments.  Also, pages that were swapped out don't normally get
  21. >swapped back in until they're used, so the file may not shring when
  22. >you expect it to.  Finally, compression is only done during idle time,
  23. >so periods of high activity will prevent shrinkage.
  24. >But, in general, the swap file does shrink, but never to it's
  25. >"just-booted" initial size.  Mine starts at 3MB, and usually remains
  26. >between 6MB and 10MB, depending on how many apps I've running.
  27. >>next question:
  28. >>With a 486 DX 33 and 16 megs of ram, normally running only 2 or three applica-
  29. >>tions at one time of fewer, mainly dos programs or maybe 1 os/2-windows
  30. >>program and a dos based BBS program (telegard); What size of a swap file
  31. >>should I expect to see? 
  32. >With a 16MB system, probably less than 4MB in most cases.  Remember
  33. >that DOS apps consume about 1MB each, plus any XMS or EMS memory they
  34. >choose to use.  An OS/2 BBS program will use less, since it will only
  35. >get what it needs instead of an entire virtual-8088 worth.
  36.  
  37. [.sig deleted]
  38.  
  39. I've done some testing with the memlab1.exe program supplied with 
  40. Redbook vol. I (still trying to see if os2 can see > 16MB on my
  41. Gateway 2000 386/33 ISA system.)  I grap more and more VM each 
  42. time trying to find when swapping starts.
  43.  
  44. I've allocated and written to as much as 25MB of virtual memory,
  45. causing the swap file to grow large.  The program exits, I leave
  46. the PC for one or more hours, and the swap file stays about the
  47. same.  If I do something with the machine instead of walking away
  48. for a few hours, the swap file will shrink, but not much.
  49.  
  50. However, if I run the same program, memlab1.exe, but just allocate
  51. and write to 1 32 bit word (I know that a 4K page is still allocated)
  52. and then exit, the swap file shrinks to just above the minimum value
  53. specified in config.sys.
  54.  
  55. Has anyone seen similar behavior?
  56.  
  57. /Mike
  58.