home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19055 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.5 KB

  1. Path: sparky!uunet!usc!hacgate!SDFSERV!johnl
  2. From: johnl@SDFSERV.hac.com (John Lee)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Does the OS recombine sections of free mem?
  5. Message-ID: <24823@hacgate.SCG.HAC.COM>
  6. Date: 21 Jan 93 21:31:15 GMT
  7. References: <1993Jan19.161330.119774@marshall.wvnet.edu>
  8. Sender: news@hacgate.SCG.HAC.COM
  9. Organization: Hughes Aircraft Company, El Segundo, CA
  10. Lines: 25
  11.  
  12. In article <1993Jan19.161330.119774@marshall.wvnet.edu> rcbi110@marshall.wvnet.edu writes:
  13. >How good a job does the OS do of merging memory that has been allocated
  14. >then deallocated?
  15. >
  16. >For instance if you have a section of unused mem, then right after that, a
  17. >section of mem being used by some program, then after that, some more
  18. >free mem, when the middle section is freed, does the OS know to recombine
  19. >the 3 areas back into one?
  20. >
  21. >Seems like I have to warmboot often because memory is fragmented.
  22.  
  23. Yes.  The OS coalesces adjacent free memory sections.  It does as good
  24. a job as possible (either you do or you don't.)  It does not compact
  25. memory, though--it can't, really.  Not with the memory access scheme
  26. used.
  27.  
  28. Memory fragmentation that needs a warm boot to clear is due to memory
  29. that's still in use (or not released properly.)
  30.  
  31. -------------------------------------------------------------------------------
  32. The crew faces deadly GURUs!  Next time on AmigaDOS: The Next Generation.
  33.     +--------+            John Lee
  34.     | HUGHES |
  35.     +--------+            Internet: jhlee@hac2arpa.hac.com    
  36. The above opinions are those of the user and not of those of this machine.
  37.