Memory occupancy patterns in garbage collection systems
- 1 August 1984
- journal article
- Published by Association for Computing Machinery (ACM) in Communications of the ACM
- Vol. 27 (8) , 819-825
- https://doi.org/10.1145/358198.358226
Abstract
Some programming languages and computer systems use dynamic memory allocation with garbage collection. It would be useful to understand how the utilization of memory depends on the stochastic parameters describing the size and life distributions of the cells. We consider a class of dynamic storage allocation systems which use a first-fit strategy to allocate cells and perform noncompacting garbage collections to recover free memory space when memory becomes fully occupied. A formula is derived for the expected number of holes (available cells) in memory immediately following a garbage collection which specializes to an analogue of Knuth's 'Fifty Percent' rule for nongarbage-collection systems. Simulations confirm the rule for exponentially distributed cell lifetimes. Other lifetime distributions are discussed. The memory-size requirements for noncompacting garbage collection are also analyzed.Keywords
This publication has 7 references indexed in Scilit:
- Free Store Distribution Under Random Fit Allocation: Part 3The Computer Journal, 1983
- A Note on Sparsely Filled Dynamically Allocated MemoryThe Computer Journal, 1982
- The fifty percent rule revisitedBIT Numerical Mathematics, 1980
- Free store distribution under random fit allocation: part 2The Computer Journal, 1980
- Anomalous behavior of the fifty-percent rule in dynamic memory allocationCommunications of the ACM, 1977
- An Estimate of the Store Size Necessary for Dynamic Storage AllocationJournal of the ACM, 1971
- The Distribution Theory of RunsThe Annals of Mathematical Statistics, 1940