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