Skip to main content
Log in

The fifty percent rule revisited

  • Part I Computer Science
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

Combinatorial reasoning is applied to the analysis of two kinds of dynamic storage allocation system to derive results about the degree and characteristics of memory fragmentation. The simple first-fit scheme with immediate replacement, discussed by Knuth, is analyzed further, providinginter alia a new derivation of the “fifty percent rule”. Next a system with garbage collections is considered, and the mean and variance of the number of holes following a garbage collection are determined, along with other results. The cell distributions resulting from these two idealized policies are contrasted.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. D. E. Knuth,The Art of Computer Programming, Vol. 1,Fundamental Algorithms, Addison-Wesley Publishing Co., Reading, Mass., 1968.

    Google Scholar 

  2. J. E. Shore,Anomalous behaviour of the fifty-percent rule in dynamic memory allocation, Comm. A.C.M. 20 (Nov. 1977), 812–820.

    Google Scholar 

  3. P. J. Denning,Virtual memory, Computing Surveys 2 (Sept. 1970), 153–189.

    Article  Google Scholar 

  4. B. H. Margolin, R. P. Parmelee and M. Schatzoff,Analysis of free-storage algorithms, IBM Syst. J. 10 (1971), 283–304.

    Google Scholar 

  5. W. Feller,An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd Ed., J. Wiley & Sons, New York, 1968.

    Google Scholar 

  6. A. M. Mood,The distribution theory of runs, Annals. of Math. Statistics 11 (1940), 367–392.

    Google Scholar 

  7. N. L. Johnson and S. Kotz,Discrete Distributions, Houghton Mifflin Co., Boston, 1969.

    Google Scholar 

  8. D. J. M. Davies,POP-10 user's manual, Department of Computer Science, Computer Science Report #35, The University of Western Ontario, London, Canada, 1976 (revised 1979).

    Google Scholar 

  9. A. C. Hearn,REDUCE 2 user's manual, Report UCP-19, University of Utah, Salt Lake City, Utah, 1973.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

This research was supported in part by the National Science and Engineering Research Council of Canada under an operating grant.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Julian, D., Davies, M. The fifty percent rule revisited. BIT 20, 279–288 (1980). https://doi.org/10.1007/BF01932770

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01932770

Keywords

Navigation