home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!uwm.edu!csd4.csd.uwm.edu!markh
- From: markh@csd4.csd.uwm.edu (Mark)
- Newsgroups: comp.programming
- Subject: Memory management models
- Date: 4 Jan 1993 20:32:58 GMT
- Organization: Computing Services Division, University of Wisconsin - Milwaukee
- Lines: 16
- Message-ID: <1ia6tqINNaps@uwm.edu>
- NNTP-Posting-Host: 129.89.7.4
-
- I'm looking for efficient models for source-level memory management that
- resolve fragmentation and allows contiguous segments of arbitrary size to be
- allocated. They should be compared to the model which I presently use:
-
- * Free lists maintained for blocks of size 2^N for each N < 32,
-
- * Allocated segment are fit into the smallest available block of
- size 2^N, using the Nth free-list if it's non-empty.
-
- Default malloc is insufficient because it doesn't normally protect against
- external fragmentation, and source-level paging is insufficient because it
- doesn't resolve the need for contiguity.
-
- The model above guarantees that fragmentation will always lie under 50%,
- that allocation will usually be a constant-time operation and that deallocation
- will always be constant time.
-