Affiliation:
1. Naval Research Lab, Washington, DC
Abstract
Published comparisons of the external fragmentation produced by first-fit and best-fit memory allocation have not been consistent. Through simulation, a series of experiments were performed in order to obtain better data on the relative performance of first-fit and best-fit and a better understanding of the reasons underlying observed differences. The time-memory-product efficiencies of first-fit and best-fit were generally within 1 to 3 percent of each other. Except for small populations, the size of the request population had little effect on allocation efficiency. For exponential and hyperexponential distributions of requests, first-fit outperformed best-fit; but for normal and uniform distributions, and for exponential distributions distorted in various ways, best-fit out-performed first-fit. It is hypothesized that when first-fit outperforms best-fit, it does so because first-fit, by preferentially allocating toward one end of memory, encourages large blocks to grow at the other end. Sufficient contiguous space is thereby more likely to be available for relatively large requests. Results of simulation experiments supported this hypothesis and showed that the relative performance of first-fit and best-fit depends on the frequency of requests that are large compared to the average request. When the coefficient of variation of the request distribution is greater than or approximately equal to unity, first-fit outperformed best-fit.
Publisher
Association for Computing Machinery (ACM)
Cited by
39 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Optimizing Task Orchestration for Distributed Real-Time Electromagnetic Transient Simulation;IEEE Access;2024
2. Profile Dynamic Memory Allocation in Autonomous Driving Software;2023 10th International Conference on Dependable Systems and Their Applications (DSA);2023-08-10
3. ElasticFlow: An Elastic Serverless Training Platform for Distributed Deep Learning;Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2;2023-01-27
4. Delay-Optimal Scheduling of VMs in a Queueing Cloud Computing System with Heterogeneous Workloads;IEEE Transactions on Services Computing;2022-01-01
5. ∅sim: Preparing System Software for a World with Terabyte-scale Memories;Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems;2020-03-09