A weighted buddy method for dynamic storage allocation
暂无分享,去创建一个
An extension of the buddy method, called the weighted buddy method, for dynamic storage allocation is presented. The weighted buddy method allows block sizes of 2<supscrpt><italic>k</italic></supscrpt> and 3·2<supscrpt><italic>k</italic></supscrpt>, whereas the original buddy method allowed only block sizes of 2<supscrpt><italic>k</italic></supscrpt>. This extension is achieved at an additional cost of only two bits per block.
Simulation results are presented which compare this method with the buddy method. These results indicate that, for a uniform request distribution, the buddy system has less total memory fragmentation than the weighted buddy algorithm. However, the total fragmentation is smaller for the weighted buddy method when the requests are for exponentially distributed block sizes.
[1] Paul Walton Purdom,et al. Statistical Properties of the Buddy System , 1970, JACM.
[2] Kenneth C. Knowlton,et al. A fast storage allocator , 1965, CACM.
[3] Brian Randell,et al. A note on storage fragmentation and program segmentation , 1969, CACM.
[4] Donald Ervin Knuth,et al. The Art of Computer Programming , 1968 .
[5] Daniel S. Hirschberg,et al. A class of dynamic memory allocation algorithms , 1973, CACM.